DELETE Clear any user login failures for all users This can release temporary disabled users
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/attack-detection/brute-force/users");

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/attack-detection/brute-force/users HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/attack-detection/brute-force/users');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

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

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

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

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

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

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

response = requests.delete(url)

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/attack-detection/brute-force/users/:userId
QUERY PARAMS

userId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/attack-detection/brute-force/users/:userId HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/attack-detection/brute-force/users/:userId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/attack-detection/brute-force/users/:userId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/attack-detection/brute-force/users/:userId' -Method DELETE 
import http.client

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

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

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

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

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

response = requests.delete(url)

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/attack-detection/brute-force/users/:userId
QUERY PARAMS

userId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/attack-detection/brute-force/users/:userId HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/attack-detection/brute-force/users/:userId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/attack-detection/brute-force/users/:userId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/attack-detection/brute-force/users/:userId' -Method GET 
import http.client

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

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

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

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

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

response = requests.get(url)

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/execution
QUERY PARAMS

flowAlias
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/execution" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/execution', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/flows/:flowAlias/executions/execution", payload, headers)

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/execution \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/execution \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions
BODY json

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

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"authenticatorConfig\": \"\",\n  \"authenticator\": \"\",\n  \"authenticatorFlow\": false,\n  \"requirement\": \"\",\n  \"priority\": 0,\n  \"autheticatorFlow\": false,\n  \"id\": \"\",\n  \"flowId\": \"\",\n  \"parentFlow\": \"\"\n}");

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

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

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/authentication/executions',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "authenticatorConfig": "",\n  "authenticator": "",\n  "authenticatorFlow": false,\n  "requirement": "",\n  "priority": 0,\n  "autheticatorFlow": false,\n  "id": "",\n  "flowId": "",\n  "parentFlow": ""\n}'
};

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/flow
QUERY PARAMS

flowAlias
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/flow" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/flow', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/flows/:flowAlias/executions/flow", payload, headers)

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/flow \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions/flow \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/copy
QUERY PARAMS

flowAlias
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/copy" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/copy")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/copy');
xhr.setRequestHeader('content-type', 'application/json');

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

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/flows/:flowAlias/copy", payload, headers)

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/copy \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/copy \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows
BODY json

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

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false,\n  \"builtIn\": false,\n  \"authenticationExecutions\": [\n    {\n      \"authenticatorConfig\": \"\",\n      \"authenticator\": \"\",\n      \"authenticatorFlow\": false,\n      \"requirement\": \"\",\n      \"priority\": 0,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ]\n}");

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

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

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

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

func main() {

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

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

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/authentication/flows';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","alias":"","description":"","providerId":"","topLevel":false,"builtIn":false,"authenticationExecutions":[{"authenticatorConfig":"","authenticator":"","authenticatorFlow":false,"requirement":"","priority":0,"autheticatorFlow":false,"flowAlias":"","userSetupAllowed":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}}/admin/realms/:realm/authentication/flows',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "alias": "",\n  "description": "",\n  "providerId": "",\n  "topLevel": false,\n  "builtIn": false,\n  "authenticationExecutions": [\n    {\n      "authenticatorConfig": "",\n      "authenticator": "",\n      "authenticatorFlow": false,\n      "requirement": "",\n      "priority": 0,\n      "autheticatorFlow": false,\n      "flowAlias": "",\n      "userSetupAllowed": false\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  \"id\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false,\n  \"builtIn\": false,\n  \"authenticationExecutions\": [\n    {\n      \"authenticatorConfig\": \"\",\n      \"authenticator\": \"\",\n      \"authenticatorFlow\": false,\n      \"requirement\": \"\",\n      \"priority\": 0,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  alias: '',
  description: '',
  providerId: '',
  topLevel: false,
  builtIn: false,
  authenticationExecutions: [
    {
      authenticatorConfig: '',
      authenticator: '',
      authenticatorFlow: false,
      requirement: '',
      priority: 0,
      autheticatorFlow: false,
      flowAlias: '',
      userSetupAllowed: false
    }
  ]
}));
req.end();
const request = require('request');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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()
POST Create new authenticator configuration
{{baseUrl}}/admin/realms/:realm/authentication/config
BODY json

{
  "id": "",
  "alias": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/authentication/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  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}");

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

(client/post "{{baseUrl}}/admin/realms/:realm/authentication/config" {:content-type :json
                                                                                      :form-params {:id ""
                                                                                                    :alias ""
                                                                                                    :config {}}})
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/authentication/config"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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/admin/realms/:realm/authentication/config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 45

{
  "id": "",
  "alias": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/authentication/config")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/authentication/config")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  alias: '',
  config: {}
});

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/config',
  headers: {'content-type': 'application/json'},
  data: {id: '', alias: '', config: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/authentication/config';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","alias":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/authentication/config',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "alias": "",\n  "config": {}\n}'
};

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/config',
  headers: {'content-type': 'application/json'},
  body: {id: '', alias: '', config: {}},
  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}}/admin/realms/:realm/authentication/config');

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

req.type('json');
req.send({
  id: '',
  alias: '',
  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}}/admin/realms/:realm/authentication/config',
  headers: {'content-type': 'application/json'},
  data: {id: '', alias: '', config: {}}
};

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

const url = '{{baseUrl}}/admin/realms/:realm/authentication/config';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","alias":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"alias": @"",
                              @"config": @{  } };

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

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

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

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

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

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

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

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

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

payload = "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}"

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

conn.request("POST", "/baseUrl/admin/realms/:realm/authentication/config", payload, headers)

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/config"

payload = {
    "id": "",
    "alias": "",
    "config": {}
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/authentication/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  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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/admin/realms/:realm/authentication/config') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}"
end

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

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/authentication/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()
DELETE Delete RequiredAction configuration
{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

func main() {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const req = unirest('DELETE', '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config'
};

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

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

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

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

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

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

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config")! 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 an authentication flow
{{baseUrl}}/admin/realms/:realm/authentication/flows/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:id" in

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

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

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

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:id
http DELETE {{baseUrl}}/admin/realms/:realm/authentication/flows/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/flows/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/config/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/config/:id" in

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

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

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

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/config/:id
http DELETE {{baseUrl}}/admin/realms/:realm/authentication/config/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/config/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId
QUERY PARAMS

executionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId" in

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

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

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

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId
http DELETE {{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/required-actions/:alias HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response = requests.delete(url)

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 RequiredAction configuration
{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config")
require "http/client"

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

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

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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/admin/realms/:realm/authentication/required-actions/:alias/config HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config")
  .get()
  .build()

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

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

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

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

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

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

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/required-actions/:alias/config")

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

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

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

response = requests.get(url)

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

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

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

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

url = URI("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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/admin/realms/:realm/authentication/required-actions/:alias/config') do |req|
end

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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 RequiredAction provider configuration description
{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config-description
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config-description");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config-description")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/config-description");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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/admin/realms/:realm/authentication/required-actions/:alias/config-description HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config-description'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/config-description" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config-description');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/required-actions/:alias/config-description")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config-description"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config-description"

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

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

url = URI("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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/admin/realms/:realm/authentication/required-actions/:alias/config-description') do |req|
end

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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 Single Execution
{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId
QUERY PARAMS

executionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId" in

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions
QUERY PARAMS

flowAlias
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:id" in

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

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

puts response.status
puts response.body
use reqwest;

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

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

CURL *hnd = curl_easy_init();

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

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

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

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

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows" in

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/config/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/config/:id")
require "http/client"

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

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/config/:id" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/config/:id")

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

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

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

response = requests.get(url)

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

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

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 provider's configuration description
{{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId
QUERY PARAMS

providerId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/config-description/:providerId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/config-description/:providerId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/config-description/:providerId")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/config-description/:providerId
http GET {{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/config-description/:providerId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 authenticator providers Returns a stream of authenticator providers.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/authenticator-providers");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/authenticator-providers")
require "http/client"

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

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/authentication/authenticator-providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/authenticator-providers'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/authenticator-providers" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/authenticator-providers');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/authenticator-providers")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/authenticator-providers"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/:realm/authentication/authenticator-providers"

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 client authenticator providers Returns a stream of client authenticator providers.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/client-authenticator-providers");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/client-authenticator-providers")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/client-authenticator-providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/authentication/client-authenticator-providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/client-authenticator-providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/client-authenticator-providers" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/client-authenticator-providers');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/client-authenticator-providers")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/client-authenticator-providers"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/client-authenticator-providers
http GET {{baseUrl}}/admin/realms/:realm/authentication/client-authenticator-providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/client-authenticator-providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/per-client-config-description");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/per-client-config-description")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/per-client-config-description HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/authentication/per-client-config-description")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/per-client-config-description'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/per-client-config-description" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/per-client-config-description');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/per-client-config-description")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/per-client-config-description"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/per-client-config-description
http GET {{baseUrl}}/admin/realms/:realm/authentication/per-client-config-description
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/per-client-config-description
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 execution's configuration
{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config/:id
QUERY PARAMS

executionId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/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}}/admin/realms/:realm/authentication/executions/:executionId/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}}/admin/realms/:realm/authentication/executions/:executionId/config/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

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

func main() {

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

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

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

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

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

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

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/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/admin/realms/:realm/authentication/executions/:executionId/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}}/admin/realms/:realm/authentication/executions/:executionId/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}}/admin/realms/:realm/authentication/executions/:executionId/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}}/admin/realms/:realm/authentication/executions/:executionId/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}}/admin/realms/:realm/authentication/executions/:executionId/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}}/admin/realms/:realm/authentication/executions/:executionId/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}}/admin/realms/:realm/authentication/executions/:executionId/config/:id" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/executions/:executionId/config/:id")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config/:id"

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/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 form action providers Returns a stream of form action providers.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/form-action-providers");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/form-action-providers")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/form-action-providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/authentication/form-action-providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/form-action-providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/form-action-providers" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/form-action-providers');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/form-action-providers")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/form-action-providers"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/form-action-providers
http GET {{baseUrl}}/admin/realms/:realm/authentication/form-action-providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/form-action-providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 stream of form providers.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/form-providers");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/form-providers")
require "http/client"

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

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/authentication/form-providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/form-providers'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/form-providers" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/form-providers');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/form-providers")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/form-providers"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/:realm/authentication/form-providers"

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/required-actions/:alias HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

response = requests.get(url)

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 stream of required actions.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/required-actions")
require "http/client"

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

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/required-actions")

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

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

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

response = requests.get(url)

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

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

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

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

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

puts response.status
puts response.body
use reqwest;

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 stream of unregistered required actions.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/unregistered-required-actions");

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

(client/get "{{baseUrl}}/admin/realms/:realm/authentication/unregistered-required-actions")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/unregistered-required-actions HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/unregistered-required-actions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/unregistered-required-actions" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/unregistered-required-actions');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/admin/realms/:realm/authentication/unregistered-required-actions")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/unregistered-required-actions"

response = requests.get(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/unregistered-required-actions
http GET {{baseUrl}}/admin/realms/:realm/authentication/unregistered-required-actions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/unregistered-required-actions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority
QUERY PARAMS

executionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority");

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

(client/post "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/executions/:executionId/lower-priority HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

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

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

conn.request("POST", "/baseUrl/admin/realms/:realm/authentication/executions/:executionId/lower-priority")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority"

response = requests.post(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority
http POST {{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/lower-priority
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority");

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

(client/post "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/required-actions/:alias/lower-priority HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/admin/realms/:realm/authentication/required-actions/:alias/lower-priority")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority"

response = requests.post(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority
http POST {{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/lower-priority
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority
QUERY PARAMS

executionId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority");

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

(client/post "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/executions/:executionId/raise-priority HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

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

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

conn.request("POST", "/baseUrl/admin/realms/:realm/authentication/executions/:executionId/raise-priority")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority"

response = requests.post(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority
http POST {{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/raise-priority
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority");

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

(client/post "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/required-actions/:alias/raise-priority HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority' -Method POST 
import http.client

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

conn.request("POST", "/baseUrl/admin/realms/:realm/authentication/required-actions/:alias/raise-priority")

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

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

url = "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority"

response = requests.post(url)

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

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority
http POST {{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/raise-priority
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/register-required-action" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/register-required-action")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/register-required-action');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/register-required-action', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/authentication/register-required-action", payload, headers)

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

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

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/authentication/register-required-action \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/authentication/register-required-action \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/admin/realms/: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}}/admin/realms/: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 RequiredAction configuration
{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config
QUERY PARAMS

alias
BODY json

{
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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  \"config\": {}\n}");

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

(client/put "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config" {:content-type :json
                                                                                                             :form-params {:config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"config\": {}\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}}/admin/realms/:realm/authentication/required-actions/:alias/config"),
    Content = new StringContent("{\n  \"config\": {}\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}}/admin/realms/:realm/authentication/required-actions/:alias/config");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"config\": {}\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/admin/realms/:realm/authentication/required-actions/:alias/config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 18

{
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

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

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config")
  .header("content-type", "application/json")
  .body("{\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  config: {}
});

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

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

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config',
  headers: {'content-type': 'application/json'},
  data: {config: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "config": {}\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}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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/admin/realms/:realm/authentication/required-actions/:alias/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({config: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config',
  headers: {'content-type': 'application/json'},
  body: {config: {}},
  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}}/admin/realms/:realm/authentication/required-actions/:alias/config');

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

req.type('json');
req.send({
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config',
  headers: {'content-type': 'application/json'},
  data: {config: {}}
};

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

const url = '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"config":{}}'
};

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

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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}}/admin/realms/:realm/authentication/required-actions/:alias/config" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"config\": {}\n}" in

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

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

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

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

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

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

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

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

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

conn.request("PUT", "/baseUrl/admin/realms/:realm/authentication/required-actions/:alias/config", payload, headers)

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

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

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

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

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

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

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

payload <- "{\n  \"config\": {}\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}}/admin/realms/:realm/authentication/required-actions/:alias/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  \"config\": {}\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/admin/realms/:realm/authentication/required-actions/:alias/config') do |req|
  req.body = "{\n  \"config\": {}\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}}/admin/realms/:realm/authentication/required-actions/:alias/config";

    let payload = json!({"config": 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}}/admin/realms/:realm/authentication/required-actions/:alias/config \
  --header 'content-type: application/json' \
  --data '{
  "config": {}
}'
echo '{
  "config": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/config
import Foundation

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias/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 an authentication flow
{{baseUrl}}/admin/realms/:realm/authentication/flows/:id
QUERY PARAMS

id
BODY json

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

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false,\n  \"builtIn\": false,\n  \"authenticationExecutions\": [\n    {\n      \"authenticatorConfig\": \"\",\n      \"authenticator\": \"\",\n      \"authenticatorFlow\": false,\n      \"requirement\": \"\",\n      \"priority\": 0,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ]\n}");

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

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

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

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

func main() {

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

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

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

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

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

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

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

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/authentication/flows/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","alias":"","description":"","providerId":"","topLevel":false,"builtIn":false,"authenticationExecutions":[{"authenticatorConfig":"","authenticator":"","authenticatorFlow":false,"requirement":"","priority":0,"autheticatorFlow":false,"flowAlias":"","userSetupAllowed":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}}/admin/realms/:realm/authentication/flows/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "alias": "",\n  "description": "",\n  "providerId": "",\n  "topLevel": false,\n  "builtIn": false,\n  "authenticationExecutions": [\n    {\n      "authenticatorConfig": "",\n      "authenticator": "",\n      "authenticatorFlow": false,\n      "requirement": "",\n      "priority": 0,\n      "autheticatorFlow": false,\n      "flowAlias": "",\n      "userSetupAllowed": false\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  \"id\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"providerId\": \"\",\n  \"topLevel\": false,\n  \"builtIn\": false,\n  \"authenticationExecutions\": [\n    {\n      \"authenticatorConfig\": \"\",\n      \"authenticator\": \"\",\n      \"authenticatorFlow\": false,\n      \"requirement\": \"\",\n      \"priority\": 0,\n      \"autheticatorFlow\": false,\n      \"flowAlias\": \"\",\n      \"userSetupAllowed\": false\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  alias: '',
  description: '',
  providerId: '',
  topLevel: false,
  builtIn: false,
  authenticationExecutions: [
    {
      authenticatorConfig: '',
      authenticator: '',
      authenticatorFlow: false,
      requirement: '',
      priority: 0,
      autheticatorFlow: false,
      flowAlias: '',
      userSetupAllowed: false
    }
  ]
}));
req.end();
const request = require('request');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

conn.request("PUT", "/baseUrl/admin/realms/:realm/authentication/flows/:id", payload, headers)

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

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

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

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

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

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

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

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

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

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

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions
QUERY PARAMS

flowAlias
BODY json

{
  "id": "",
  "requirement": "",
  "displayName": "",
  "alias": "",
  "description": "",
  "requirementChoices": [],
  "configurable": false,
  "authenticationFlow": false,
  "providerId": "",
  "authenticationConfig": "",
  "flowId": "",
  "level": 0,
  "index": 0,
  "priority": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\n}");

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

(client/put "{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions" {:content-type :json
                                                                                                          :form-params {:id ""
                                                                                                                        :requirement ""
                                                                                                                        :displayName ""
                                                                                                                        :alias ""
                                                                                                                        :description ""
                                                                                                                        :requirementChoices []
                                                                                                                        :configurable false
                                                                                                                        :authenticationFlow false
                                                                                                                        :providerId ""
                                                                                                                        :authenticationConfig ""
                                                                                                                        :flowId ""
                                                                                                                        :level 0
                                                                                                                        :index 0
                                                                                                                        :priority 0}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\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/admin/realms/:realm/authentication/flows/:flowAlias/executions HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 287

{
  "id": "",
  "requirement": "",
  "displayName": "",
  "alias": "",
  "description": "",
  "requirementChoices": [],
  "configurable": false,
  "authenticationFlow": false,
  "providerId": "",
  "authenticationConfig": "",
  "flowId": "",
  "level": 0,
  "index": 0,
  "priority": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 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  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  requirement: '',
  displayName: '',
  alias: '',
  description: '',
  requirementChoices: [],
  configurable: false,
  authenticationFlow: false,
  providerId: '',
  authenticationConfig: '',
  flowId: '',
  level: 0,
  index: 0,
  priority: 0
});

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

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

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    requirement: '',
    displayName: '',
    alias: '',
    description: '',
    requirementChoices: [],
    configurable: false,
    authenticationFlow: false,
    providerId: '',
    authenticationConfig: '',
    flowId: '',
    level: 0,
    index: 0,
    priority: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","requirement":"","displayName":"","alias":"","description":"","requirementChoices":[],"configurable":false,"authenticationFlow":false,"providerId":"","authenticationConfig":"","flowId":"","level":0,"index":0,"priority":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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "requirement": "",\n  "displayName": "",\n  "alias": "",\n  "description": "",\n  "requirementChoices": [],\n  "configurable": false,\n  "authenticationFlow": false,\n  "providerId": "",\n  "authenticationConfig": "",\n  "flowId": "",\n  "level": 0,\n  "index": 0,\n  "priority": 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  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  requirement: '',
  displayName: '',
  alias: '',
  description: '',
  requirementChoices: [],
  configurable: false,
  authenticationFlow: false,
  providerId: '',
  authenticationConfig: '',
  flowId: '',
  level: 0,
  index: 0,
  priority: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    requirement: '',
    displayName: '',
    alias: '',
    description: '',
    requirementChoices: [],
    configurable: false,
    authenticationFlow: false,
    providerId: '',
    authenticationConfig: '',
    flowId: '',
    level: 0,
    index: 0,
    priority: 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('PUT', '{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions');

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

req.type('json');
req.send({
  id: '',
  requirement: '',
  displayName: '',
  alias: '',
  description: '',
  requirementChoices: [],
  configurable: false,
  authenticationFlow: false,
  providerId: '',
  authenticationConfig: '',
  flowId: '',
  level: 0,
  index: 0,
  priority: 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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    requirement: '',
    displayName: '',
    alias: '',
    description: '',
    requirementChoices: [],
    configurable: false,
    authenticationFlow: false,
    providerId: '',
    authenticationConfig: '',
    flowId: '',
    level: 0,
    index: 0,
    priority: 0
  }
};

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

const url = '{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","requirement":"","displayName":"","alias":"","description":"","requirementChoices":[],"configurable":false,"authenticationFlow":false,"providerId":"","authenticationConfig":"","flowId":"","level":0,"index":0,"priority":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 = @{ @"id": @"",
                              @"requirement": @"",
                              @"displayName": @"",
                              @"alias": @"",
                              @"description": @"",
                              @"requirementChoices": @[  ],
                              @"configurable": @NO,
                              @"authenticationFlow": @NO,
                              @"providerId": @"",
                              @"authenticationConfig": @"",
                              @"flowId": @"",
                              @"level": @0,
                              @"index": @0,
                              @"priority": @0 };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'requirement' => '',
    'displayName' => '',
    'alias' => '',
    'description' => '',
    'requirementChoices' => [
        
    ],
    'configurable' => null,
    'authenticationFlow' => null,
    'providerId' => '',
    'authenticationConfig' => '',
    'flowId' => '',
    'level' => 0,
    'index' => 0,
    'priority' => 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('PUT', '{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions', [
  'body' => '{
  "id": "",
  "requirement": "",
  "displayName": "",
  "alias": "",
  "description": "",
  "requirementChoices": [],
  "configurable": false,
  "authenticationFlow": false,
  "providerId": "",
  "authenticationConfig": "",
  "flowId": "",
  "level": 0,
  "index": 0,
  "priority": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'requirement' => '',
  'displayName' => '',
  'alias' => '',
  'description' => '',
  'requirementChoices' => [
    
  ],
  'configurable' => null,
  'authenticationFlow' => null,
  'providerId' => '',
  'authenticationConfig' => '',
  'flowId' => '',
  'level' => 0,
  'index' => 0,
  'priority' => 0
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'requirement' => '',
  'displayName' => '',
  'alias' => '',
  'description' => '',
  'requirementChoices' => [
    
  ],
  'configurable' => null,
  'authenticationFlow' => null,
  'providerId' => '',
  'authenticationConfig' => '',
  'flowId' => '',
  'level' => 0,
  'index' => 0,
  'priority' => 0
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "requirement": "",
  "displayName": "",
  "alias": "",
  "description": "",
  "requirementChoices": [],
  "configurable": false,
  "authenticationFlow": false,
  "providerId": "",
  "authenticationConfig": "",
  "flowId": "",
  "level": 0,
  "index": 0,
  "priority": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "requirement": "",
  "displayName": "",
  "alias": "",
  "description": "",
  "requirementChoices": [],
  "configurable": false,
  "authenticationFlow": false,
  "providerId": "",
  "authenticationConfig": "",
  "flowId": "",
  "level": 0,
  "index": 0,
  "priority": 0
}'
import http.client

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

payload = "{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\n}"

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

conn.request("PUT", "/baseUrl/admin/realms/:realm/authentication/flows/:flowAlias/executions", payload, headers)

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

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

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

payload = {
    "id": "",
    "requirement": "",
    "displayName": "",
    "alias": "",
    "description": "",
    "requirementChoices": [],
    "configurable": False,
    "authenticationFlow": False,
    "providerId": "",
    "authenticationConfig": "",
    "flowId": "",
    "level": 0,
    "index": 0,
    "priority": 0
}
headers = {"content-type": "application/json"}

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

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

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

payload <- "{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\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}}/admin/realms/: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  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 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.put('/baseUrl/admin/realms/:realm/authentication/flows/:flowAlias/executions') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"requirement\": \"\",\n  \"displayName\": \"\",\n  \"alias\": \"\",\n  \"description\": \"\",\n  \"requirementChoices\": [],\n  \"configurable\": false,\n  \"authenticationFlow\": false,\n  \"providerId\": \"\",\n  \"authenticationConfig\": \"\",\n  \"flowId\": \"\",\n  \"level\": 0,\n  \"index\": 0,\n  \"priority\": 0\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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions";

    let payload = json!({
        "id": "",
        "requirement": "",
        "displayName": "",
        "alias": "",
        "description": "",
        "requirementChoices": (),
        "configurable": false,
        "authenticationFlow": false,
        "providerId": "",
        "authenticationConfig": "",
        "flowId": "",
        "level": 0,
        "index": 0,
        "priority": 0
    });

    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}}/admin/realms/:realm/authentication/flows/:flowAlias/executions \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "requirement": "",
  "displayName": "",
  "alias": "",
  "description": "",
  "requirementChoices": [],
  "configurable": false,
  "authenticationFlow": false,
  "providerId": "",
  "authenticationConfig": "",
  "flowId": "",
  "level": 0,
  "index": 0,
  "priority": 0
}'
echo '{
  "id": "",
  "requirement": "",
  "displayName": "",
  "alias": "",
  "description": "",
  "requirementChoices": [],
  "configurable": false,
  "authenticationFlow": false,
  "providerId": "",
  "authenticationConfig": "",
  "flowId": "",
  "level": 0,
  "index": 0,
  "priority": 0
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "requirement": "",\n  "displayName": "",\n  "alias": "",\n  "description": "",\n  "requirementChoices": [],\n  "configurable": false,\n  "authenticationFlow": false,\n  "providerId": "",\n  "authenticationConfig": "",\n  "flowId": "",\n  "level": 0,\n  "index": 0,\n  "priority": 0\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/flows/:flowAlias/executions
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "requirement": "",
  "displayName": "",
  "alias": "",
  "description": "",
  "requirementChoices": [],
  "configurable": false,
  "authenticationFlow": false,
  "providerId": "",
  "authenticationConfig": "",
  "flowId": "",
  "level": 0,
  "index": 0,
  "priority": 0
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/config/:id
QUERY PARAMS

id
BODY json

{
  "id": "",
  "alias": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}");

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

(client/put "{{baseUrl}}/admin/realms/:realm/authentication/config/:id" {:content-type :json
                                                                                         :form-params {:id ""
                                                                                                       :alias ""
                                                                                                       :config {}}})
require "http/client"

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

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

func main() {

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

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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/admin/realms/:realm/authentication/config/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 45

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

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

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

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

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/authentication/config/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/config/:id',
  headers: {'content-type': 'application/json'},
  data: {id: '', alias: '', config: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/authentication/config/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","alias":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/authentication/config/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "alias": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({id: '', alias: '', config: {}}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/config/:id',
  headers: {'content-type': 'application/json'},
  body: {id: '', alias: '', config: {}},
  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}}/admin/realms/:realm/authentication/config/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  alias: '',
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/config/:id',
  headers: {'content-type': 'application/json'},
  data: {id: '', alias: '', config: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/authentication/config/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","alias":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"alias": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/config/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'alias' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/authentication/config/:id', [
  'body' => '{
  "id": "",
  "alias": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/config/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'alias' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'alias' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/config/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "alias": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/authentication/config/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "alias": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/authentication/config/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/authentication/config/:id"

payload = {
    "id": "",
    "alias": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/authentication/config/:id"

payload <- "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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/admin/realms/:realm/authentication/config/:id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/authentication/config/:id";

    let payload = json!({
        "id": "",
        "alias": "",
        "config": 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}}/admin/realms/:realm/authentication/config/:id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "alias": "",
  "config": {}
}'
echo '{
  "id": "",
  "alias": "",
  "config": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/authentication/config/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "alias": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/config/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "alias": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/config
QUERY PARAMS

executionId
BODY json

{
  "id": "",
  "alias": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config" {:content-type :json
                                                                                                              :form-params {:id ""
                                                                                                                            :alias ""
                                                                                                                            :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/authentication/executions/:executionId/config"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/authentication/executions/:executionId/config");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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/admin/realms/:realm/authentication/executions/:executionId/config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 45

{
  "id": "",
  "alias": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  alias: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config',
  headers: {'content-type': 'application/json'},
  data: {id: '', alias: '', config: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","alias":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "alias": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({id: '', alias: '', config: {}}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config',
  headers: {'content-type': 'application/json'},
  body: {id: '', alias: '', config: {}},
  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}}/admin/realms/:realm/authentication/executions/:executionId/config');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  alias: '',
  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}}/admin/realms/:realm/authentication/executions/:executionId/config',
  headers: {'content-type': 'application/json'},
  data: {id: '', alias: '', config: {}}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","alias":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"alias": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'alias' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/authentication/executions/:executionId/config', [
  'body' => '{
  "id": "",
  "alias": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'alias' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'alias' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/executions/:executionId/config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "alias": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "alias": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/authentication/executions/:executionId/config", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config"

payload = {
    "id": "",
    "alias": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config"

payload <- "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\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/admin/realms/:realm/authentication/executions/:executionId/config') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"alias\": \"\",\n  \"config\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config";

    let payload = json!({
        "id": "",
        "alias": "",
        "config": 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}}/admin/realms/:realm/authentication/executions/:executionId/config \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "alias": "",
  "config": {}
}'
echo '{
  "id": "",
  "alias": "",
  "config": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "alias": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/executions/:executionId/config
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "alias": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias
QUERY PARAMS

alias
BODY json

{
  "alias": "",
  "name": "",
  "providerId": "",
  "enabled": false,
  "defaultAction": false,
  "priority": 0,
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias" {:content-type :json
                                                                                                      :form-params {:alias ""
                                                                                                                    :name ""
                                                                                                                    :providerId ""
                                                                                                                    :enabled false
                                                                                                                    :defaultAction false
                                                                                                                    :priority 0
                                                                                                                    :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\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}}/admin/realms/:realm/authentication/required-actions/:alias"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\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}}/admin/realms/:realm/authentication/required-actions/:alias");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\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/admin/realms/:realm/authentication/required-actions/:alias HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 130

{
  "alias": "",
  "name": "",
  "providerId": "",
  "enabled": false,
  "defaultAction": false,
  "priority": 0,
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\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  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  name: '',
  providerId: '',
  enabled: false,
  defaultAction: false,
  priority: 0,
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    name: '',
    providerId: '',
    enabled: false,
    defaultAction: false,
    priority: 0,
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","name":"","providerId":"","enabled":false,"defaultAction":false,"priority":0,"config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "name": "",\n  "providerId": "",\n  "enabled": false,\n  "defaultAction": false,\n  "priority": 0,\n  "config": {}\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  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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: '',
  name: '',
  providerId: '',
  enabled: false,
  defaultAction: false,
  priority: 0,
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias',
  headers: {'content-type': 'application/json'},
  body: {
    alias: '',
    name: '',
    providerId: '',
    enabled: false,
    defaultAction: false,
    priority: 0,
    config: {}
  },
  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}}/admin/realms/:realm/authentication/required-actions/:alias');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  alias: '',
  name: '',
  providerId: '',
  enabled: false,
  defaultAction: false,
  priority: 0,
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    name: '',
    providerId: '',
    enabled: false,
    defaultAction: false,
    priority: 0,
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","name":"","providerId":"","enabled":false,"defaultAction":false,"priority":0,"config":{}}'
};

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": @"",
                              @"name": @"",
                              @"providerId": @"",
                              @"enabled": @NO,
                              @"defaultAction": @NO,
                              @"priority": @0,
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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' => '',
    'name' => '',
    'providerId' => '',
    'enabled' => null,
    'defaultAction' => null,
    'priority' => 0,
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/authentication/required-actions/:alias', [
  'body' => '{
  "alias": "",
  "name": "",
  "providerId": "",
  "enabled": false,
  "defaultAction": false,
  "priority": 0,
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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' => '',
  'name' => '',
  'providerId' => '',
  'enabled' => null,
  'defaultAction' => null,
  'priority' => 0,
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'name' => '',
  'providerId' => '',
  'enabled' => null,
  'defaultAction' => null,
  'priority' => 0,
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/authentication/required-actions/:alias' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "name": "",
  "providerId": "",
  "enabled": false,
  "defaultAction": false,
  "priority": 0,
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "name": "",
  "providerId": "",
  "enabled": false,
  "defaultAction": false,
  "priority": 0,
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/authentication/required-actions/:alias", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias"

payload = {
    "alias": "",
    "name": "",
    "providerId": "",
    "enabled": False,
    "defaultAction": False,
    "priority": 0,
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias"

payload <- "{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\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}}/admin/realms/: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  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\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/admin/realms/:realm/authentication/required-actions/:alias') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"defaultAction\": false,\n  \"priority\": 0,\n  \"config\": {}\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}}/admin/realms/:realm/authentication/required-actions/:alias";

    let payload = json!({
        "alias": "",
        "name": "",
        "providerId": "",
        "enabled": false,
        "defaultAction": false,
        "priority": 0,
        "config": 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}}/admin/realms/:realm/authentication/required-actions/:alias \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "name": "",
  "providerId": "",
  "enabled": false,
  "defaultAction": false,
  "priority": 0,
  "config": {}
}'
echo '{
  "alias": "",
  "name": "",
  "providerId": "",
  "enabled": false,
  "defaultAction": false,
  "priority": 0,
  "config": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "name": "",\n  "providerId": "",\n  "enabled": false,\n  "defaultAction": false,\n  "priority": 0,\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/authentication/required-actions/:alias
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "name": "",
  "providerId": "",
  "enabled": false,
  "defaultAction": false,
  "priority": 0,
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate
http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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. Only generated public certificate is saved in Keycloak DB - the private key is not.
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download
BODY json

{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download" {:content-type :json
                                                                                                                              :form-params {:realmCertificate false
                                                                                                                                            :storePassword ""
                                                                                                                                            :keyPassword ""
                                                                                                                                            :keyAlias ""
                                                                                                                                            :realmAlias ""
                                                                                                                                            :format ""
                                                                                                                                            :keySize 0
                                                                                                                                            :validity 0}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download"),
    Content = new StringContent("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download"

	payload := strings.NewReader("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 162

{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download")
  .header("content-type", "application/json")
  .body("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}")
  .asString();
const data = JSON.stringify({
  realmCertificate: false,
  storePassword: '',
  keyPassword: '',
  keyAlias: '',
  realmAlias: '',
  format: '',
  keySize: 0,
  validity: 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download',
  headers: {'content-type': 'application/json'},
  data: {
    realmCertificate: false,
    storePassword: '',
    keyPassword: '',
    keyAlias: '',
    realmAlias: '',
    format: '',
    keySize: 0,
    validity: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"realmCertificate":false,"storePassword":"","keyPassword":"","keyAlias":"","realmAlias":"","format":"","keySize":0,"validity":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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "realmCertificate": false,\n  "storePassword": "",\n  "keyPassword": "",\n  "keyAlias": "",\n  "realmAlias": "",\n  "format": "",\n  "keySize": 0,\n  "validity": 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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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({
  realmCertificate: false,
  storePassword: '',
  keyPassword: '',
  keyAlias: '',
  realmAlias: '',
  format: '',
  keySize: 0,
  validity: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download',
  headers: {'content-type': 'application/json'},
  body: {
    realmCertificate: false,
    storePassword: '',
    keyPassword: '',
    keyAlias: '',
    realmAlias: '',
    format: '',
    keySize: 0,
    validity: 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  realmCertificate: false,
  storePassword: '',
  keyPassword: '',
  keyAlias: '',
  realmAlias: '',
  format: '',
  keySize: 0,
  validity: 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download',
  headers: {'content-type': 'application/json'},
  data: {
    realmCertificate: false,
    storePassword: '',
    keyPassword: '',
    keyAlias: '',
    realmAlias: '',
    format: '',
    keySize: 0,
    validity: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"realmCertificate":false,"storePassword":"","keyPassword":"","keyAlias":"","realmAlias":"","format":"","keySize":0,"validity":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 = @{ @"realmCertificate": @NO,
                              @"storePassword": @"",
                              @"keyPassword": @"",
                              @"keyAlias": @"",
                              @"realmAlias": @"",
                              @"format": @"",
                              @"keySize": @0,
                              @"validity": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    'realmCertificate' => null,
    'storePassword' => '',
    'keyPassword' => '',
    'keyAlias' => '',
    'realmAlias' => '',
    'format' => '',
    'keySize' => 0,
    'validity' => 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download', [
  'body' => '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'realmCertificate' => null,
  'storePassword' => '',
  'keyPassword' => '',
  'keyAlias' => '',
  'realmAlias' => '',
  'format' => '',
  'keySize' => 0,
  'validity' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'realmCertificate' => null,
  'storePassword' => '',
  'keyPassword' => '',
  'keyAlias' => '',
  'realmAlias' => '',
  'format' => '',
  'keySize' => 0,
  'validity' => 0
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download"

payload = {
    "realmCertificate": False,
    "storePassword": "",
    "keyPassword": "",
    "keyAlias": "",
    "realmAlias": "",
    "format": "",
    "keySize": 0,
    "validity": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download"

payload <- "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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}}/admin/realms/:realm/clients/:client-uuid/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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download') do |req|
  req.body = "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download";

    let payload = json!({
        "realmCertificate": false,
        "storePassword": "",
        "keyPassword": "",
        "keyAlias": "",
        "realmAlias": "",
        "format": "",
        "keySize": 0,
        "validity": 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download \
  --header 'content-type: application/json' \
  --data '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}'
echo '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "realmCertificate": false,\n  "storePassword": "",\n  "keyPassword": "",\n  "keyAlias": "",\n  "realmAlias": "",\n  "format": "",\n  "keySize": 0,\n  "validity": 0\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/generate-and-download
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download
BODY json

{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download" {:content-type :json
                                                                                                                 :form-params {:realmCertificate false
                                                                                                                               :storePassword ""
                                                                                                                               :keyPassword ""
                                                                                                                               :keyAlias ""
                                                                                                                               :realmAlias ""
                                                                                                                               :format ""
                                                                                                                               :keySize 0
                                                                                                                               :validity 0}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download"),
    Content = new StringContent("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download"

	payload := strings.NewReader("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 162

{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download")
  .header("content-type", "application/json")
  .body("{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}")
  .asString();
const data = JSON.stringify({
  realmCertificate: false,
  storePassword: '',
  keyPassword: '',
  keyAlias: '',
  realmAlias: '',
  format: '',
  keySize: 0,
  validity: 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download',
  headers: {'content-type': 'application/json'},
  data: {
    realmCertificate: false,
    storePassword: '',
    keyPassword: '',
    keyAlias: '',
    realmAlias: '',
    format: '',
    keySize: 0,
    validity: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"realmCertificate":false,"storePassword":"","keyPassword":"","keyAlias":"","realmAlias":"","format":"","keySize":0,"validity":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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "realmCertificate": false,\n  "storePassword": "",\n  "keyPassword": "",\n  "keyAlias": "",\n  "realmAlias": "",\n  "format": "",\n  "keySize": 0,\n  "validity": 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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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({
  realmCertificate: false,
  storePassword: '',
  keyPassword: '',
  keyAlias: '',
  realmAlias: '',
  format: '',
  keySize: 0,
  validity: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download',
  headers: {'content-type': 'application/json'},
  body: {
    realmCertificate: false,
    storePassword: '',
    keyPassword: '',
    keyAlias: '',
    realmAlias: '',
    format: '',
    keySize: 0,
    validity: 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  realmCertificate: false,
  storePassword: '',
  keyPassword: '',
  keyAlias: '',
  realmAlias: '',
  format: '',
  keySize: 0,
  validity: 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download',
  headers: {'content-type': 'application/json'},
  data: {
    realmCertificate: false,
    storePassword: '',
    keyPassword: '',
    keyAlias: '',
    realmAlias: '',
    format: '',
    keySize: 0,
    validity: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"realmCertificate":false,"storePassword":"","keyPassword":"","keyAlias":"","realmAlias":"","format":"","keySize":0,"validity":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 = @{ @"realmCertificate": @NO,
                              @"storePassword": @"",
                              @"keyPassword": @"",
                              @"keyAlias": @"",
                              @"realmAlias": @"",
                              @"format": @"",
                              @"keySize": @0,
                              @"validity": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    'realmCertificate' => null,
    'storePassword' => '',
    'keyPassword' => '',
    'keyAlias' => '',
    'realmAlias' => '',
    'format' => '',
    'keySize' => 0,
    'validity' => 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download', [
  'body' => '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'realmCertificate' => null,
  'storePassword' => '',
  'keyPassword' => '',
  'keyAlias' => '',
  'realmAlias' => '',
  'format' => '',
  'keySize' => 0,
  'validity' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'realmCertificate' => null,
  'storePassword' => '',
  'keyPassword' => '',
  'keyAlias' => '',
  'realmAlias' => '',
  'format' => '',
  'keySize' => 0,
  'validity' => 0
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download"

payload = {
    "realmCertificate": False,
    "storePassword": "",
    "keyPassword": "",
    "keyAlias": "",
    "realmAlias": "",
    "format": "",
    "keySize": 0,
    "validity": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download"

payload <- "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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}}/admin/realms/:realm/clients/:client-uuid/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  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download') do |req|
  req.body = "{\n  \"realmCertificate\": false,\n  \"storePassword\": \"\",\n  \"keyPassword\": \"\",\n  \"keyAlias\": \"\",\n  \"realmAlias\": \"\",\n  \"format\": \"\",\n  \"keySize\": 0,\n  \"validity\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download";

    let payload = json!({
        "realmCertificate": false,
        "storePassword": "",
        "keyPassword": "",
        "keyAlias": "",
        "realmAlias": "",
        "format": "",
        "keySize": 0,
        "validity": 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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download \
  --header 'content-type: application/json' \
  --data '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}'
echo '{
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "realmCertificate": false,\n  "storePassword": "",\n  "keyPassword": "",\n  "keyAlias": "",\n  "realmAlias": "",\n  "format": "",\n  "keySize": 0,\n  "validity": 0\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/download
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "realmCertificate": false,
  "storePassword": "",
  "keyPassword": "",
  "keyAlias": "",
  "realmAlias": "",
  "format": "",
  "keySize": 0,
  "validity": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/certificates/:attr HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/certificates/:attr")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/certificates/:attr') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload
http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate
http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/certificates/:attr/upload-certificate
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients-initial-access
BODY json

{
  "expiration": 0,
  "count": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"expiration\": 0,\n  \"count\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients-initial-access" {:content-type :json
                                                                                       :form-params {:expiration 0
                                                                                                     :count 0}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients-initial-access"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"expiration\": 0,\n  \"count\": 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}}/admin/realms/:realm/clients-initial-access"),
    Content = new StringContent("{\n  \"expiration\": 0,\n  \"count\": 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}}/admin/realms/:realm/clients-initial-access");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"expiration\": 0,\n  \"count\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients-initial-access"

	payload := strings.NewReader("{\n  \"expiration\": 0,\n  \"count\": 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/admin/realms/:realm/clients-initial-access HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 35

{
  "expiration": 0,
  "count": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients-initial-access")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"expiration\": 0,\n  \"count\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients-initial-access"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"expiration\": 0,\n  \"count\": 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  \"expiration\": 0,\n  \"count\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients-initial-access")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients-initial-access")
  .header("content-type", "application/json")
  .body("{\n  \"expiration\": 0,\n  \"count\": 0\n}")
  .asString();
const data = JSON.stringify({
  expiration: 0,
  count: 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}}/admin/realms/:realm/clients-initial-access');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients-initial-access',
  headers: {'content-type': 'application/json'},
  data: {expiration: 0, count: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients-initial-access';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"expiration":0,"count":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}}/admin/realms/:realm/clients-initial-access',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "expiration": 0,\n  "count": 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  \"expiration\": 0,\n  \"count\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({expiration: 0, count: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients-initial-access',
  headers: {'content-type': 'application/json'},
  body: {expiration: 0, count: 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}}/admin/realms/:realm/clients-initial-access');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  expiration: 0,
  count: 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}}/admin/realms/:realm/clients-initial-access',
  headers: {'content-type': 'application/json'},
  data: {expiration: 0, count: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients-initial-access';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"expiration":0,"count":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 = @{ @"expiration": @0,
                              @"count": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"expiration\": 0,\n  \"count\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'expiration' => 0,
    'count' => 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}}/admin/realms/:realm/clients-initial-access', [
  'body' => '{
  "expiration": 0,
  "count": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients-initial-access');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'expiration' => 0,
  'count' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'expiration' => 0,
  'count' => 0
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "expiration": 0,
  "count": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients-initial-access' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "expiration": 0,
  "count": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"expiration\": 0,\n  \"count\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients-initial-access", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients-initial-access"

payload = {
    "expiration": 0,
    "count": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients-initial-access"

payload <- "{\n  \"expiration\": 0,\n  \"count\": 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}}/admin/realms/: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  \"expiration\": 0,\n  \"count\": 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/admin/realms/:realm/clients-initial-access') do |req|
  req.body = "{\n  \"expiration\": 0,\n  \"count\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients-initial-access";

    let payload = json!({
        "expiration": 0,
        "count": 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}}/admin/realms/:realm/clients-initial-access \
  --header 'content-type: application/json' \
  --data '{
  "expiration": 0,
  "count": 0
}'
echo '{
  "expiration": 0,
  "count": 0
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients-initial-access \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "expiration": 0,\n  "count": 0\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients-initial-access
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "expiration": 0,
  "count": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-clients-initial-access--id
{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/clients-initial-access/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients-initial-access/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients-initial-access/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access/:id
http DELETE {{baseUrl}}/admin/realms/:realm/clients-initial-access/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients-initial-access/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-clients-initial-access
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients-initial-access")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/clients-initial-access HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients-initial-access")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients-initial-access'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients-initial-access');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients-initial-access');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients-initial-access' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients-initial-access' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients-initial-access")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients-initial-access"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients-initial-access"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/clients-initial-access') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients-initial-access
http GET {{baseUrl}}/admin/realms/:realm/clients-initial-access
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients-initial-access
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/client-registration-policy/providers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-registration-policy/providers")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/client-registration-policy/providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-registration-policy/providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-registration-policy/providers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-registration-policy/providers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-registration-policy/providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/client-registration-policy/providers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-registration-policy/providers');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-registration-policy/providers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-registration-policy/providers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-registration-policy/providers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-registration-policy/providers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-registration-policy/providers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-registration-policy/providers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/client-registration-policy/providers
http GET {{baseUrl}}/admin/realms/:realm/client-registration-policy/providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-registration-policy/providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 or group role mapping (POST)
{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id" {:content-type :json
                                                                                                                :form-params [{:id ""
                                                                                                                               :name ""
                                                                                                                               :description ""
                                                                                                                               :scopeParamRequired false
                                                                                                                               :composite false
                                                                                                                               :composites {:realm []
                                                                                                                                            :client {}
                                                                                                                                            :application {}}
                                                                                                                               :clientRole false
                                                                                                                               :containerId ""
                                                                                                                               :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"]
                                                       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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id",
  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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');
$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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")

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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")! 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 or group role mapping
{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id" {:content-type :json
                                                                                                                  :form-params [{:id ""
                                                                                                                                 :name ""
                                                                                                                                 :description ""
                                                                                                                                 :scopeParamRequired false
                                                                                                                                 :composite false
                                                                                                                                 :composites {:realm []
                                                                                                                                              :client {}
                                                                                                                                              :application {}}
                                                                                                                                 :clientRole false
                                                                                                                                 :containerId ""
                                                                                                                                 :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"]
                                                       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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id",
  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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');
$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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")

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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")! 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 or group role mapping (DELETE)
{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id" {:content-type :json
                                                                                                                  :form-params [{:id ""
                                                                                                                                 :name ""
                                                                                                                                 :description ""
                                                                                                                                 :scopeParamRequired false
                                                                                                                                 :composite false
                                                                                                                                 :composites {:realm []
                                                                                                                                              :client {}
                                                                                                                                              :application {}}
                                                                                                                                 :clientRole false
                                                                                                                                 :containerId ""
                                                                                                                                 :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"]
                                                       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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id",
  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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');
$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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")

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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")! 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 or group role mapping
{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id" {:content-type :json
                                                                                                                    :form-params [{:id ""
                                                                                                                                   :name ""
                                                                                                                                   :description ""
                                                                                                                                   :scopeParamRequired false
                                                                                                                                   :composite false
                                                                                                                                   :composites {:realm []
                                                                                                                                                :client {}
                                                                                                                                                :application {}}
                                                                                                                                   :clientRole false
                                                                                                                                   :containerId ""
                                                                                                                                   :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"]
                                                       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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id",
  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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');
$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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")

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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")! 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 or group (GET)
{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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 or group
{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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 or group, and the app (GET)
{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-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 role mappings for the user or group, and the app
{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-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 effective client-level role mappings This recurses any composite roles (GET)
{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/clients/:client-id/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! (POST)
{{baseUrl}}/admin/realms/:realm/client-templates
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates");

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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-templates" {:content-type :json
                                                                                 :form-params {:id ""
                                                                                               :name ""
                                                                                               :description ""
                                                                                               :protocol ""
                                                                                               :attributes {}
                                                                                               :protocolMappers [{:id ""
                                                                                                                  :name ""
                                                                                                                  :protocol ""
                                                                                                                  :protocolMapper ""
                                                                                                                  :consentRequired false
                                                                                                                  :consentText ""
                                                                                                                  :config {}}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-templates"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-templates");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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/admin/realms/:realm/client-templates HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 287

{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-templates")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-templates")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-templates');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "protocol": "",\n  "attributes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates")
  .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/admin/realms/:realm/client-templates',
  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({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  },
  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}}/admin/realms/:realm/client-templates');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      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}}/admin/realms/:realm/client-templates',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"protocol": @"",
                              @"attributes": @{  },
                              @"protocolMappers": @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates"]
                                                       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}}/admin/realms/:realm/client-templates" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates",
  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([
    'id' => '',
    'name' => '',
    'description' => '',
    'protocol' => '',
    'attributes' => [
        
    ],
    'protocolMappers' => [
        [
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => '',
                'consentRequired' => null,
                'consentText' => '',
                'config' => [
                                
                ]
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-templates', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'protocol' => '',
  'attributes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'protocol' => '',
  'attributes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates');
$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}}/admin/realms/:realm/client-templates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-templates", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "protocol": "",
    "attributes": {},
    "protocolMappers": [
        {
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": False,
            "consentText": "",
            "config": {}
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-templates")

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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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/admin/realms/:realm/client-templates') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-templates";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "protocol": "",
        "attributes": json!({}),
        "protocolMappers": (
            json!({
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": "",
                "consentRequired": false,
                "consentText": "",
                "config": 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}}/admin/realms/:realm/client-templates \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-templates \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "protocol": "",\n  "attributes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": [],
  "protocolMappers": [
    [
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": []
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates")! 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 client scope Client Scope’s name must be unique!
{{baseUrl}}/admin/realms/:realm/client-scopes
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-scopes" {:content-type :json
                                                                              :form-params {:id ""
                                                                                            :name ""
                                                                                            :description ""
                                                                                            :protocol ""
                                                                                            :attributes {}
                                                                                            :protocolMappers [{:id ""
                                                                                                               :name ""
                                                                                                               :protocol ""
                                                                                                               :protocolMapper ""
                                                                                                               :consentRequired false
                                                                                                               :consentText ""
                                                                                                               :config {}}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-scopes"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-scopes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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/admin/realms/:realm/client-scopes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 287

{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-scopes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-scopes")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-scopes');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "protocol": "",\n  "attributes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  },
  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}}/admin/realms/:realm/client-scopes');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      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}}/admin/realms/:realm/client-scopes',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"protocol": @"",
                              @"attributes": @{  },
                              @"protocolMappers": @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-scopes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'description' => '',
    'protocol' => '',
    'attributes' => [
        
    ],
    'protocolMappers' => [
        [
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => '',
                'consentRequired' => null,
                'consentText' => '',
                'config' => [
                                
                ]
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'protocol' => '',
  'attributes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'protocol' => '',
  'attributes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-scopes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-scopes", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "protocol": "",
    "attributes": {},
    "protocolMappers": [
        {
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": False,
            "consentText": "",
            "config": {}
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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/admin/realms/:realm/client-scopes') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-scopes";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "protocol": "",
        "attributes": json!({}),
        "protocolMappers": (
            json!({
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": "",
                "consentRequired": false,
                "consentText": "",
                "config": 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}}/admin/realms/:realm/client-scopes \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-scopes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "protocol": "",\n  "attributes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": [],
  "protocolMappers": [
    [
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": []
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 (DELETE)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id
http DELETE {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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 client scope
{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id
http DELETE {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (GET)
{{baseUrl}}/admin/realms/:realm/client-templates
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates"

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}}/admin/realms/:realm/client-templates"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-templates");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates"

	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/admin/realms/:realm/client-templates HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates"))
    .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}}/admin/realms/:realm/client-templates")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates")
  .asString();
const 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}}/admin/realms/:realm/client-templates');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates';
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}}/admin/realms/:realm/client-templates',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/client-templates',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/client-templates'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/client-templates');

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}}/admin/realms/:realm/client-templates'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates';
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}}/admin/realms/:realm/client-templates"]
                                                       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}}/admin/realms/:realm/client-templates" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates",
  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}}/admin/realms/:realm/client-templates');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-templates")

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/admin/realms/:realm/client-templates') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates";

    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}}/admin/realms/:realm/client-templates
http GET {{baseUrl}}/admin/realms/:realm/client-templates
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates")! 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 scopes belonging to the realm Returns a list of client scopes belonging to the realm
{{baseUrl}}/admin/realms/:realm/client-scopes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/client-scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-scopes
http GET {{baseUrl}}/admin/realms/:realm/client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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 representation of the client scope
{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (PUT)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id" {:content-type :json
                                                                                                 :form-params {:id ""
                                                                                                               :name ""
                                                                                                               :description ""
                                                                                                               :protocol ""
                                                                                                               :attributes {}
                                                                                                               :protocolMappers [{:id ""
                                                                                                                                  :name ""
                                                                                                                                  :protocol ""
                                                                                                                                  :protocolMapper ""
                                                                                                                                  :consentRequired false
                                                                                                                                  :consentText ""
                                                                                                                                  :config {}}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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/admin/realms/:realm/client-templates/:client-scope-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 287

{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "protocol": "",\n  "attributes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  },
  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}}/admin/realms/:realm/client-templates/:client-scope-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"protocol": @"",
                              @"attributes": @{  },
                              @"protocolMappers": @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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([
    'id' => '',
    'name' => '',
    'description' => '',
    'protocol' => '',
    'attributes' => [
        
    ],
    'protocolMappers' => [
        [
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => '',
                'consentRequired' => null,
                'consentText' => '',
                'config' => [
                                
                ]
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-templates/:client-scope-id', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'protocol' => '',
  'attributes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'protocol' => '',
  'attributes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "protocol": "",
    "attributes": {},
    "protocolMappers": [
        {
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": False,
            "consentText": "",
            "config": {}
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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/admin/realms/:realm/client-templates/:client-scope-id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "protocol": "",
        "attributes": json!({}),
        "protocolMappers": (
            json!({
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": "",
                "consentRequired": false,
                "consentText": "",
                "config": 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}}/admin/realms/:realm/client-templates/:client-scope-id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "protocol": "",\n  "attributes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": [],
  "protocolMappers": [
    [
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": []
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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 client scope
{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id" {:content-type :json
                                                                                              :form-params {:id ""
                                                                                                            :name ""
                                                                                                            :description ""
                                                                                                            :protocol ""
                                                                                                            :attributes {}
                                                                                                            :protocolMappers [{:id ""
                                                                                                                               :name ""
                                                                                                                               :protocol ""
                                                                                                                               :protocolMapper ""
                                                                                                                               :consentRequired false
                                                                                                                               :consentText ""
                                                                                                                               :config {}}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 287

{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "protocol": "",\n  "attributes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  },
  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}}/admin/realms/:realm/client-scopes/:client-scope-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  protocol: '',
  attributes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    protocol: '',
    attributes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"protocol": @"",
                              @"attributes": @{  },
                              @"protocolMappers": @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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([
    'id' => '',
    'name' => '',
    'description' => '',
    'protocol' => '',
    'attributes' => [
        
    ],
    'protocolMappers' => [
        [
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => '',
                'consentRequired' => null,
                'consentText' => '',
                'config' => [
                                
                ]
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes/:client-scope-id', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'protocol' => '',
  'attributes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'protocol' => '',
  'attributes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "protocol": "",
    "attributes": {},
    "protocolMappers": [
        {
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": False,
            "consentText": "",
            "config": {}
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "protocol": "",
        "attributes": json!({}),
        "protocolMappers": (
            json!({
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": "",
                "consentRequired": false,
                "consentText": "",
                "config": 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}}/admin/realms/:realm/client-scopes/:client-scope-id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ]
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "protocol": "",\n  "attributes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "protocol": "",
  "attributes": [],
  "protocolMappers": [
    [
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": []
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-access-token
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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()
GET Create JSON with payload of example id token
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-token
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-id-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()
GET Create JSON with payload of example user info
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo"

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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo"

	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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo"))
    .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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo';
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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo');

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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo';
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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo",
  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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo")

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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo";

    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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/generate-example-userinfo")! 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}}/admin/realms/:realm/clients
BODY json

{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients" {:content-type :json
                                                                        :form-params {:id ""
                                                                                      :clientId ""
                                                                                      :name ""
                                                                                      :description ""
                                                                                      :type ""
                                                                                      :rootUrl ""
                                                                                      :adminUrl ""
                                                                                      :baseUrl ""
                                                                                      :surrogateAuthRequired false
                                                                                      :enabled false
                                                                                      :alwaysDisplayInConsole false
                                                                                      :clientAuthenticatorType ""
                                                                                      :secret ""
                                                                                      :registrationAccessToken ""
                                                                                      :defaultRoles []
                                                                                      :redirectUris []
                                                                                      :webOrigins []
                                                                                      :notBefore 0
                                                                                      :bearerOnly false
                                                                                      :consentRequired false
                                                                                      :standardFlowEnabled false
                                                                                      :implicitFlowEnabled false
                                                                                      :directAccessGrantsEnabled false
                                                                                      :serviceAccountsEnabled false
                                                                                      :authorizationServicesEnabled false
                                                                                      :directGrantsOnly false
                                                                                      :publicClient false
                                                                                      :frontchannelLogout false
                                                                                      :protocol ""
                                                                                      :attributes {}
                                                                                      :authenticationFlowBindingOverrides {}
                                                                                      :fullScopeAllowed false
                                                                                      :nodeReRegistrationTimeout 0
                                                                                      :registeredNodes {}
                                                                                      :protocolMappers [{:id ""
                                                                                                         :name ""
                                                                                                         :protocol ""
                                                                                                         :protocolMapper ""
                                                                                                         :consentRequired false
                                                                                                         :consentText ""
                                                                                                         :config {}}]
                                                                                      :clientTemplate ""
                                                                                      :useTemplateConfig false
                                                                                      :useTemplateScope false
                                                                                      :useTemplateMappers false
                                                                                      :defaultClientScopes []
                                                                                      :optionalClientScopes []
                                                                                      :authorizationSettings {:id ""
                                                                                                              :clientId ""
                                                                                                              :name ""
                                                                                                              :allowRemoteResourceManagement false
                                                                                                              :policyEnforcementMode ""
                                                                                                              :resources [{:_id ""
                                                                                                                           :name ""
                                                                                                                           :uris []
                                                                                                                           :type ""
                                                                                                                           :scopes [{:id ""
                                                                                                                                     :name ""
                                                                                                                                     :iconUri ""
                                                                                                                                     :policies [{:id ""
                                                                                                                                                 :name ""
                                                                                                                                                 :description ""
                                                                                                                                                 :type ""
                                                                                                                                                 :policies []
                                                                                                                                                 :resources []
                                                                                                                                                 :scopes []
                                                                                                                                                 :logic ""
                                                                                                                                                 :decisionStrategy ""
                                                                                                                                                 :owner ""
                                                                                                                                                 :resourceType ""
                                                                                                                                                 :resourcesData []
                                                                                                                                                 :scopesData []
                                                                                                                                                 :config {}}]
                                                                                                                                     :resources []
                                                                                                                                     :displayName ""}]
                                                                                                                           :icon_uri ""
                                                                                                                           :owner {}
                                                                                                                           :ownerManagedAccess false
                                                                                                                           :displayName ""
                                                                                                                           :attributes {}
                                                                                                                           :uri ""
                                                                                                                           :scopesUma [{}]}]
                                                                                                              :policies [{}]
                                                                                                              :scopes [{}]
                                                                                                              :decisionStrategy ""
                                                                                                              :authorizationSchema {:resourceTypes {}}}
                                                                                      :access {}
                                                                                      :origin ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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}}/admin/realms/:realm/clients"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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}}/admin/realms/:realm/clients");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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/admin/realms/:realm/clients HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2618

{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  clientId: '',
  name: '',
  description: '',
  type: '',
  rootUrl: '',
  adminUrl: '',
  baseUrl: '',
  surrogateAuthRequired: false,
  enabled: false,
  alwaysDisplayInConsole: false,
  clientAuthenticatorType: '',
  secret: '',
  registrationAccessToken: '',
  defaultRoles: [],
  redirectUris: [],
  webOrigins: [],
  notBefore: 0,
  bearerOnly: false,
  consentRequired: false,
  standardFlowEnabled: false,
  implicitFlowEnabled: false,
  directAccessGrantsEnabled: false,
  serviceAccountsEnabled: false,
  authorizationServicesEnabled: false,
  directGrantsOnly: false,
  publicClient: false,
  frontchannelLogout: false,
  protocol: '',
  attributes: {},
  authenticationFlowBindingOverrides: {},
  fullScopeAllowed: false,
  nodeReRegistrationTimeout: 0,
  registeredNodes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  clientTemplate: '',
  useTemplateConfig: false,
  useTemplateScope: false,
  useTemplateMappers: false,
  defaultClientScopes: [],
  optionalClientScopes: [],
  authorizationSettings: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [
          {}
        ]
      }
    ],
    policies: [
      {}
    ],
    scopes: [
      {}
    ],
    decisionStrategy: '',
    authorizationSchema: {
      resourceTypes: {}
    }
  },
  access: {},
  origin: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [{}]
        }
      ],
      policies: [{}],
      scopes: [{}],
      decisionStrategy: '',
      authorizationSchema: {resourceTypes: {}}
    },
    access: {},
    origin: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","clientId":"","name":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}},"access":{},"origin":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "clientId": "",\n  "name": "",\n  "description": "",\n  "type": "",\n  "rootUrl": "",\n  "adminUrl": "",\n  "baseUrl": "",\n  "surrogateAuthRequired": false,\n  "enabled": false,\n  "alwaysDisplayInConsole": false,\n  "clientAuthenticatorType": "",\n  "secret": "",\n  "registrationAccessToken": "",\n  "defaultRoles": [],\n  "redirectUris": [],\n  "webOrigins": [],\n  "notBefore": 0,\n  "bearerOnly": false,\n  "consentRequired": false,\n  "standardFlowEnabled": false,\n  "implicitFlowEnabled": false,\n  "directAccessGrantsEnabled": false,\n  "serviceAccountsEnabled": false,\n  "authorizationServicesEnabled": false,\n  "directGrantsOnly": false,\n  "publicClient": false,\n  "frontchannelLogout": false,\n  "protocol": "",\n  "attributes": {},\n  "authenticationFlowBindingOverrides": {},\n  "fullScopeAllowed": false,\n  "nodeReRegistrationTimeout": 0,\n  "registeredNodes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\n    }\n  ],\n  "clientTemplate": "",\n  "useTemplateConfig": false,\n  "useTemplateScope": false,\n  "useTemplateMappers": false,\n  "defaultClientScopes": [],\n  "optionalClientScopes": [],\n  "authorizationSettings": {\n    "id": "",\n    "clientId": "",\n    "name": "",\n    "allowRemoteResourceManagement": false,\n    "policyEnforcementMode": "",\n    "resources": [\n      {\n        "_id": "",\n        "name": "",\n        "uris": [],\n        "type": "",\n        "scopes": [\n          {\n            "id": "",\n            "name": "",\n            "iconUri": "",\n            "policies": [\n              {\n                "id": "",\n                "name": "",\n                "description": "",\n                "type": "",\n                "policies": [],\n                "resources": [],\n                "scopes": [],\n                "logic": "",\n                "decisionStrategy": "",\n                "owner": "",\n                "resourceType": "",\n                "resourcesData": [],\n                "scopesData": [],\n                "config": {}\n              }\n            ],\n            "resources": [],\n            "displayName": ""\n          }\n        ],\n        "icon_uri": "",\n        "owner": {},\n        "ownerManagedAccess": false,\n        "displayName": "",\n        "attributes": {},\n        "uri": "",\n        "scopesUma": [\n          {}\n        ]\n      }\n    ],\n    "policies": [\n      {}\n    ],\n    "scopes": [\n      {}\n    ],\n    "decisionStrategy": "",\n    "authorizationSchema": {\n      "resourceTypes": {}\n    }\n  },\n  "access": {},\n  "origin": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  clientId: '',
  name: '',
  description: '',
  type: '',
  rootUrl: '',
  adminUrl: '',
  baseUrl: '',
  surrogateAuthRequired: false,
  enabled: false,
  alwaysDisplayInConsole: false,
  clientAuthenticatorType: '',
  secret: '',
  registrationAccessToken: '',
  defaultRoles: [],
  redirectUris: [],
  webOrigins: [],
  notBefore: 0,
  bearerOnly: false,
  consentRequired: false,
  standardFlowEnabled: false,
  implicitFlowEnabled: false,
  directAccessGrantsEnabled: false,
  serviceAccountsEnabled: false,
  authorizationServicesEnabled: false,
  directGrantsOnly: false,
  publicClient: false,
  frontchannelLogout: false,
  protocol: '',
  attributes: {},
  authenticationFlowBindingOverrides: {},
  fullScopeAllowed: false,
  nodeReRegistrationTimeout: 0,
  registeredNodes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  clientTemplate: '',
  useTemplateConfig: false,
  useTemplateScope: false,
  useTemplateMappers: false,
  defaultClientScopes: [],
  optionalClientScopes: [],
  authorizationSettings: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    policies: [{}],
    scopes: [{}],
    decisionStrategy: '',
    authorizationSchema: {resourceTypes: {}}
  },
  access: {},
  origin: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [{}]
        }
      ],
      policies: [{}],
      scopes: [{}],
      decisionStrategy: '',
      authorizationSchema: {resourceTypes: {}}
    },
    access: {},
    origin: ''
  },
  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}}/admin/realms/:realm/clients');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  clientId: '',
  name: '',
  description: '',
  type: '',
  rootUrl: '',
  adminUrl: '',
  baseUrl: '',
  surrogateAuthRequired: false,
  enabled: false,
  alwaysDisplayInConsole: false,
  clientAuthenticatorType: '',
  secret: '',
  registrationAccessToken: '',
  defaultRoles: [],
  redirectUris: [],
  webOrigins: [],
  notBefore: 0,
  bearerOnly: false,
  consentRequired: false,
  standardFlowEnabled: false,
  implicitFlowEnabled: false,
  directAccessGrantsEnabled: false,
  serviceAccountsEnabled: false,
  authorizationServicesEnabled: false,
  directGrantsOnly: false,
  publicClient: false,
  frontchannelLogout: false,
  protocol: '',
  attributes: {},
  authenticationFlowBindingOverrides: {},
  fullScopeAllowed: false,
  nodeReRegistrationTimeout: 0,
  registeredNodes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  clientTemplate: '',
  useTemplateConfig: false,
  useTemplateScope: false,
  useTemplateMappers: false,
  defaultClientScopes: [],
  optionalClientScopes: [],
  authorizationSettings: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [
          {}
        ]
      }
    ],
    policies: [
      {}
    ],
    scopes: [
      {}
    ],
    decisionStrategy: '',
    authorizationSchema: {
      resourceTypes: {}
    }
  },
  access: {},
  origin: ''
});

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}}/admin/realms/:realm/clients',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [{}]
        }
      ],
      policies: [{}],
      scopes: [{}],
      decisionStrategy: '',
      authorizationSchema: {resourceTypes: {}}
    },
    access: {},
    origin: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","clientId":"","name":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}},"access":{},"origin":""}'
};

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 = @{ @"id": @"",
                              @"clientId": @"",
                              @"name": @"",
                              @"description": @"",
                              @"type": @"",
                              @"rootUrl": @"",
                              @"adminUrl": @"",
                              @"baseUrl": @"",
                              @"surrogateAuthRequired": @NO,
                              @"enabled": @NO,
                              @"alwaysDisplayInConsole": @NO,
                              @"clientAuthenticatorType": @"",
                              @"secret": @"",
                              @"registrationAccessToken": @"",
                              @"defaultRoles": @[  ],
                              @"redirectUris": @[  ],
                              @"webOrigins": @[  ],
                              @"notBefore": @0,
                              @"bearerOnly": @NO,
                              @"consentRequired": @NO,
                              @"standardFlowEnabled": @NO,
                              @"implicitFlowEnabled": @NO,
                              @"directAccessGrantsEnabled": @NO,
                              @"serviceAccountsEnabled": @NO,
                              @"authorizationServicesEnabled": @NO,
                              @"directGrantsOnly": @NO,
                              @"publicClient": @NO,
                              @"frontchannelLogout": @NO,
                              @"protocol": @"",
                              @"attributes": @{  },
                              @"authenticationFlowBindingOverrides": @{  },
                              @"fullScopeAllowed": @NO,
                              @"nodeReRegistrationTimeout": @0,
                              @"registeredNodes": @{  },
                              @"protocolMappers": @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ],
                              @"clientTemplate": @"",
                              @"useTemplateConfig": @NO,
                              @"useTemplateScope": @NO,
                              @"useTemplateMappers": @NO,
                              @"defaultClientScopes": @[  ],
                              @"optionalClientScopes": @[  ],
                              @"authorizationSettings": @{ @"id": @"", @"clientId": @"", @"name": @"", @"allowRemoteResourceManagement": @NO, @"policyEnforcementMode": @"", @"resources": @[ @{ @"_id": @"", @"name": @"", @"uris": @[  ], @"type": @"", @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ], @"icon_uri": @"", @"owner": @{  }, @"ownerManagedAccess": @NO, @"displayName": @"", @"attributes": @{  }, @"uri": @"", @"scopesUma": @[ @{  } ] } ], @"policies": @[ @{  } ], @"scopes": @[ @{  } ], @"decisionStrategy": @"", @"authorizationSchema": @{ @"resourceTypes": @{  } } },
                              @"access": @{  },
                              @"origin": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'clientId' => '',
    'name' => '',
    'description' => '',
    'type' => '',
    'rootUrl' => '',
    'adminUrl' => '',
    'baseUrl' => '',
    'surrogateAuthRequired' => null,
    'enabled' => null,
    'alwaysDisplayInConsole' => null,
    'clientAuthenticatorType' => '',
    'secret' => '',
    'registrationAccessToken' => '',
    'defaultRoles' => [
        
    ],
    'redirectUris' => [
        
    ],
    'webOrigins' => [
        
    ],
    'notBefore' => 0,
    'bearerOnly' => null,
    'consentRequired' => null,
    'standardFlowEnabled' => null,
    'implicitFlowEnabled' => null,
    'directAccessGrantsEnabled' => null,
    'serviceAccountsEnabled' => null,
    'authorizationServicesEnabled' => null,
    'directGrantsOnly' => null,
    'publicClient' => null,
    'frontchannelLogout' => null,
    'protocol' => '',
    'attributes' => [
        
    ],
    'authenticationFlowBindingOverrides' => [
        
    ],
    'fullScopeAllowed' => null,
    'nodeReRegistrationTimeout' => 0,
    'registeredNodes' => [
        
    ],
    'protocolMappers' => [
        [
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => '',
                'consentRequired' => null,
                'consentText' => '',
                'config' => [
                                
                ]
        ]
    ],
    'clientTemplate' => '',
    'useTemplateConfig' => null,
    'useTemplateScope' => null,
    'useTemplateMappers' => null,
    'defaultClientScopes' => [
        
    ],
    'optionalClientScopes' => [
        
    ],
    'authorizationSettings' => [
        'id' => '',
        'clientId' => '',
        'name' => '',
        'allowRemoteResourceManagement' => null,
        'policyEnforcementMode' => '',
        'resources' => [
                [
                                '_id' => '',
                                'name' => '',
                                'uris' => [
                                                                
                                ],
                                'type' => '',
                                'scopes' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'iconUri' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayName' => ''
                                                                ]
                                ],
                                'icon_uri' => '',
                                'owner' => [
                                                                
                                ],
                                'ownerManagedAccess' => null,
                                'displayName' => '',
                                'attributes' => [
                                                                
                                ],
                                'uri' => '',
                                'scopesUma' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'policies' => [
                [
                                
                ]
        ],
        'scopes' => [
                [
                                
                ]
        ],
        'decisionStrategy' => '',
        'authorizationSchema' => [
                'resourceTypes' => [
                                
                ]
        ]
    ],
    'access' => [
        
    ],
    'origin' => ''
  ]),
  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}}/admin/realms/:realm/clients', [
  'body' => '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'clientId' => '',
  'name' => '',
  'description' => '',
  'type' => '',
  'rootUrl' => '',
  'adminUrl' => '',
  'baseUrl' => '',
  'surrogateAuthRequired' => null,
  'enabled' => null,
  'alwaysDisplayInConsole' => null,
  'clientAuthenticatorType' => '',
  'secret' => '',
  'registrationAccessToken' => '',
  'defaultRoles' => [
    
  ],
  'redirectUris' => [
    
  ],
  'webOrigins' => [
    
  ],
  'notBefore' => 0,
  'bearerOnly' => null,
  'consentRequired' => null,
  'standardFlowEnabled' => null,
  'implicitFlowEnabled' => null,
  'directAccessGrantsEnabled' => null,
  'serviceAccountsEnabled' => null,
  'authorizationServicesEnabled' => null,
  'directGrantsOnly' => null,
  'publicClient' => null,
  'frontchannelLogout' => null,
  'protocol' => '',
  'attributes' => [
    
  ],
  'authenticationFlowBindingOverrides' => [
    
  ],
  'fullScopeAllowed' => null,
  'nodeReRegistrationTimeout' => 0,
  'registeredNodes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ],
  'clientTemplate' => '',
  'useTemplateConfig' => null,
  'useTemplateScope' => null,
  'useTemplateMappers' => null,
  'defaultClientScopes' => [
    
  ],
  'optionalClientScopes' => [
    
  ],
  'authorizationSettings' => [
    'id' => '',
    'clientId' => '',
    'name' => '',
    'allowRemoteResourceManagement' => null,
    'policyEnforcementMode' => '',
    'resources' => [
        [
                '_id' => '',
                'name' => '',
                'uris' => [
                                
                ],
                'type' => '',
                'scopes' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'iconUri' => '',
                                                                'policies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => ''
                                ]
                ],
                'icon_uri' => '',
                'owner' => [
                                
                ],
                'ownerManagedAccess' => null,
                'displayName' => '',
                'attributes' => [
                                
                ],
                'uri' => '',
                'scopesUma' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'policies' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ],
    'decisionStrategy' => '',
    'authorizationSchema' => [
        'resourceTypes' => [
                
        ]
    ]
  ],
  'access' => [
    
  ],
  'origin' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'clientId' => '',
  'name' => '',
  'description' => '',
  'type' => '',
  'rootUrl' => '',
  'adminUrl' => '',
  'baseUrl' => '',
  'surrogateAuthRequired' => null,
  'enabled' => null,
  'alwaysDisplayInConsole' => null,
  'clientAuthenticatorType' => '',
  'secret' => '',
  'registrationAccessToken' => '',
  'defaultRoles' => [
    
  ],
  'redirectUris' => [
    
  ],
  'webOrigins' => [
    
  ],
  'notBefore' => 0,
  'bearerOnly' => null,
  'consentRequired' => null,
  'standardFlowEnabled' => null,
  'implicitFlowEnabled' => null,
  'directAccessGrantsEnabled' => null,
  'serviceAccountsEnabled' => null,
  'authorizationServicesEnabled' => null,
  'directGrantsOnly' => null,
  'publicClient' => null,
  'frontchannelLogout' => null,
  'protocol' => '',
  'attributes' => [
    
  ],
  'authenticationFlowBindingOverrides' => [
    
  ],
  'fullScopeAllowed' => null,
  'nodeReRegistrationTimeout' => 0,
  'registeredNodes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ],
  'clientTemplate' => '',
  'useTemplateConfig' => null,
  'useTemplateScope' => null,
  'useTemplateMappers' => null,
  'defaultClientScopes' => [
    
  ],
  'optionalClientScopes' => [
    
  ],
  'authorizationSettings' => [
    'id' => '',
    'clientId' => '',
    'name' => '',
    'allowRemoteResourceManagement' => null,
    'policyEnforcementMode' => '',
    'resources' => [
        [
                '_id' => '',
                'name' => '',
                'uris' => [
                                
                ],
                'type' => '',
                'scopes' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'iconUri' => '',
                                                                'policies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => ''
                                ]
                ],
                'icon_uri' => '',
                'owner' => [
                                
                ],
                'ownerManagedAccess' => null,
                'displayName' => '',
                'attributes' => [
                                
                ],
                'uri' => '',
                'scopesUma' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'policies' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ],
    'decisionStrategy' => '',
    'authorizationSchema' => [
        'resourceTypes' => [
                
        ]
    ]
  ],
  'access' => [
    
  ],
  'origin' => ''
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients"

payload = {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": False,
    "enabled": False,
    "alwaysDisplayInConsole": False,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": False,
    "consentRequired": False,
    "standardFlowEnabled": False,
    "implicitFlowEnabled": False,
    "directAccessGrantsEnabled": False,
    "serviceAccountsEnabled": False,
    "authorizationServicesEnabled": False,
    "directGrantsOnly": False,
    "publicClient": False,
    "frontchannelLogout": False,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": False,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
        {
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": False,
            "consentText": "",
            "config": {}
        }
    ],
    "clientTemplate": "",
    "useTemplateConfig": False,
    "useTemplateScope": False,
    "useTemplateMappers": False,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
        "id": "",
        "clientId": "",
        "name": "",
        "allowRemoteResourceManagement": False,
        "policyEnforcementMode": "",
        "resources": [
            {
                "_id": "",
                "name": "",
                "uris": [],
                "type": "",
                "scopes": [
                    {
                        "id": "",
                        "name": "",
                        "iconUri": "",
                        "policies": [
                            {
                                "id": "",
                                "name": "",
                                "description": "",
                                "type": "",
                                "policies": [],
                                "resources": [],
                                "scopes": [],
                                "logic": "",
                                "decisionStrategy": "",
                                "owner": "",
                                "resourceType": "",
                                "resourcesData": [],
                                "scopesData": [],
                                "config": {}
                            }
                        ],
                        "resources": [],
                        "displayName": ""
                    }
                ],
                "icon_uri": "",
                "owner": {},
                "ownerManagedAccess": False,
                "displayName": "",
                "attributes": {},
                "uri": "",
                "scopesUma": [{}]
            }
        ],
        "policies": [{}],
        "scopes": [{}],
        "decisionStrategy": "",
        "authorizationSchema": { "resourceTypes": {} }
    },
    "access": {},
    "origin": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients"

payload <- "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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}}/admin/realms/: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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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/admin/realms/:realm/clients') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients";

    let payload = json!({
        "id": "",
        "clientId": "",
        "name": "",
        "description": "",
        "type": "",
        "rootUrl": "",
        "adminUrl": "",
        "baseUrl": "",
        "surrogateAuthRequired": false,
        "enabled": false,
        "alwaysDisplayInConsole": false,
        "clientAuthenticatorType": "",
        "secret": "",
        "registrationAccessToken": "",
        "defaultRoles": (),
        "redirectUris": (),
        "webOrigins": (),
        "notBefore": 0,
        "bearerOnly": false,
        "consentRequired": false,
        "standardFlowEnabled": false,
        "implicitFlowEnabled": false,
        "directAccessGrantsEnabled": false,
        "serviceAccountsEnabled": false,
        "authorizationServicesEnabled": false,
        "directGrantsOnly": false,
        "publicClient": false,
        "frontchannelLogout": false,
        "protocol": "",
        "attributes": json!({}),
        "authenticationFlowBindingOverrides": json!({}),
        "fullScopeAllowed": false,
        "nodeReRegistrationTimeout": 0,
        "registeredNodes": json!({}),
        "protocolMappers": (
            json!({
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": "",
                "consentRequired": false,
                "consentText": "",
                "config": json!({})
            })
        ),
        "clientTemplate": "",
        "useTemplateConfig": false,
        "useTemplateScope": false,
        "useTemplateMappers": false,
        "defaultClientScopes": (),
        "optionalClientScopes": (),
        "authorizationSettings": json!({
            "id": "",
            "clientId": "",
            "name": "",
            "allowRemoteResourceManagement": false,
            "policyEnforcementMode": "",
            "resources": (
                json!({
                    "_id": "",
                    "name": "",
                    "uris": (),
                    "type": "",
                    "scopes": (
                        json!({
                            "id": "",
                            "name": "",
                            "iconUri": "",
                            "policies": (
                                json!({
                                    "id": "",
                                    "name": "",
                                    "description": "",
                                    "type": "",
                                    "policies": (),
                                    "resources": (),
                                    "scopes": (),
                                    "logic": "",
                                    "decisionStrategy": "",
                                    "owner": "",
                                    "resourceType": "",
                                    "resourcesData": (),
                                    "scopesData": (),
                                    "config": json!({})
                                })
                            ),
                            "resources": (),
                            "displayName": ""
                        })
                    ),
                    "icon_uri": "",
                    "owner": json!({}),
                    "ownerManagedAccess": false,
                    "displayName": "",
                    "attributes": json!({}),
                    "uri": "",
                    "scopesUma": (json!({}))
                })
            ),
            "policies": (json!({})),
            "scopes": (json!({})),
            "decisionStrategy": "",
            "authorizationSchema": json!({"resourceTypes": json!({})})
        }),
        "access": json!({}),
        "origin": ""
    });

    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}}/admin/realms/:realm/clients \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}'
echo '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "clientId": "",\n  "name": "",\n  "description": "",\n  "type": "",\n  "rootUrl": "",\n  "adminUrl": "",\n  "baseUrl": "",\n  "surrogateAuthRequired": false,\n  "enabled": false,\n  "alwaysDisplayInConsole": false,\n  "clientAuthenticatorType": "",\n  "secret": "",\n  "registrationAccessToken": "",\n  "defaultRoles": [],\n  "redirectUris": [],\n  "webOrigins": [],\n  "notBefore": 0,\n  "bearerOnly": false,\n  "consentRequired": false,\n  "standardFlowEnabled": false,\n  "implicitFlowEnabled": false,\n  "directAccessGrantsEnabled": false,\n  "serviceAccountsEnabled": false,\n  "authorizationServicesEnabled": false,\n  "directGrantsOnly": false,\n  "publicClient": false,\n  "frontchannelLogout": false,\n  "protocol": "",\n  "attributes": {},\n  "authenticationFlowBindingOverrides": {},\n  "fullScopeAllowed": false,\n  "nodeReRegistrationTimeout": 0,\n  "registeredNodes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\n    }\n  ],\n  "clientTemplate": "",\n  "useTemplateConfig": false,\n  "useTemplateScope": false,\n  "useTemplateMappers": false,\n  "defaultClientScopes": [],\n  "optionalClientScopes": [],\n  "authorizationSettings": {\n    "id": "",\n    "clientId": "",\n    "name": "",\n    "allowRemoteResourceManagement": false,\n    "policyEnforcementMode": "",\n    "resources": [\n      {\n        "_id": "",\n        "name": "",\n        "uris": [],\n        "type": "",\n        "scopes": [\n          {\n            "id": "",\n            "name": "",\n            "iconUri": "",\n            "policies": [\n              {\n                "id": "",\n                "name": "",\n                "description": "",\n                "type": "",\n                "policies": [],\n                "resources": [],\n                "scopes": [],\n                "logic": "",\n                "decisionStrategy": "",\n                "owner": "",\n                "resourceType": "",\n                "resourcesData": [],\n                "scopesData": [],\n                "config": {}\n              }\n            ],\n            "resources": [],\n            "displayName": ""\n          }\n        ],\n        "icon_uri": "",\n        "owner": {},\n        "ownerManagedAccess": false,\n        "displayName": "",\n        "attributes": {},\n        "uri": "",\n        "scopesUma": [\n          {}\n        ]\n      }\n    ],\n    "policies": [\n      {}\n    ],\n    "scopes": [\n      {}\n    ],\n    "decisionStrategy": "",\n    "authorizationSchema": {\n      "resourceTypes": {}\n    }\n  },\n  "access": {},\n  "origin": ""\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": [],
  "authenticationFlowBindingOverrides": [],
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": [],
  "protocolMappers": [
    [
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": []
    ]
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": [
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      [
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          [
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              [
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": []
              ]
            ],
            "resources": [],
            "displayName": ""
          ]
        ],
        "icon_uri": "",
        "owner": [],
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": [],
        "uri": "",
        "scopesUma": [[]]
      ]
    ],
    "policies": [[]],
    "scopes": [[]],
    "decisionStrategy": "",
    "authorizationSchema": ["resourceTypes": []]
  ],
  "access": [],
  "origin": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

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}}/admin/realms/:realm/clients/:client-uuid"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

	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/admin/realms/:realm/clients/:client-uuid HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"))
    .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}}/admin/realms/:realm/clients/:client-uuid")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid';
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}}/admin/realms/:realm/clients/:client-uuid',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');

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}}/admin/realms/:realm/clients/:client-uuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid';
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}}/admin/realms/:realm/clients/:client-uuid"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid",
  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}}/admin/realms/:realm/clients/:client-uuid');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")

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/admin/realms/:realm/clients/:client-uuid') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid";

    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}}/admin/realms/:realm/clients/:client-uuid
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")! 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}}/admin/realms/:realm/clients/:client-uuid/registration-access-token
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/registration-access-token HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/registration-access-token")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/registration-access-token');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/registration-access-token',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/registration-access-token" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/registration-access-token');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/registration-access-token")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/registration-access-token') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/registration-access-token
http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/registration-access-token
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/client-secret HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/client-secret")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/client-secret') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret
http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/service-account-user
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/service-account-user HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/service-account-user")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/service-account-user');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/service-account-user',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/service-account-user" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/service-account-user');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/service-account-user")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/service-account-user') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/service-account-user
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/service-account-user
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-session-count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/offline-session-count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-session-count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-session-count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-session-count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-session-count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-session-count');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/offline-session-count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/offline-session-count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-session-count
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-session-count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/session-count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/session-count");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/session-count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/session-count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/session-count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/session-count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/session-count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/session-count');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/session-count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/session-count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/session-count
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/session-count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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.
{{baseUrl}}/admin/realms/:realm/clients
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/clients");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm/clients HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/admin/realms/:realm/clients'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/clients" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/clients') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients
http GET {{baseUrl}}/admin/realms/:realm/clients
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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. Only name and ids are returned.
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/default-client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/default-client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/default-client-scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/granted
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-sessions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-sessions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/offline-sessions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-sessions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-sessions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-sessions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-sessions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-sessions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/offline-sessions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/offline-sessions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/offline-sessions
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/offline-sessions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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. Only name and ids are returned.
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/optional-client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/optional-client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/optional-client-scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

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}}/admin/realms/:realm/clients/:client-uuid"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

	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/admin/realms/:realm/clients/:client-uuid HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"))
    .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}}/admin/realms/:realm/clients/:client-uuid")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid';
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}}/admin/realms/:realm/clients/:client-uuid',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');

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}}/admin/realms/:realm/clients/:client-uuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid';
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}}/admin/realms/:realm/clients/:client-uuid"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid",
  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}}/admin/realms/:realm/clients/:client-uuid');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")

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/admin/realms/:realm/clients/:client-uuid') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid";

    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}}/admin/realms/:realm/clients/:client-uuid
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")! 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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/scope-mappings/:roleContainerId/not-granted
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/client-secret HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/client-secret")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/client-secret') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/client-secret
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 the rotated client secret
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"

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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"

	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/admin/realms/:realm/clients/:client-uuid/client-secret/rotated HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"))
    .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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated';
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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/client-secret/rotated',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');

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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated';
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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated",
  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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")

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/admin/realms/:realm/clients/:client-uuid/client-secret/rotated') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated";

    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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")! 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}}/admin/realms/:realm/clients/:client-uuid/user-sessions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/user-sessions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/user-sessions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/user-sessions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/user-sessions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/user-sessions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/user-sessions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/user-sessions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/user-sessions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/user-sessions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/user-sessions
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/user-sessions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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()
DELETE Invalidate the rotated secret for the client
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"

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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"

	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/admin/realms/:realm/clients/:client-uuid/client-secret/rotated HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"))
    .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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated';
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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/client-secret/rotated',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');

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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated';
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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated",
  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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")

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/admin/realms/:realm/clients/:client-uuid/client-secret/rotated') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated";

    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}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/client-secret/rotated")! 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 Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it.
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/push-revocation");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/push-revocation HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/push-revocation")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/push-revocation');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/push-revocation',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/push-revocation" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/push-revocation');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/push-revocation")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/push-revocation') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/push-revocation
http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/push-revocation
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/nodes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/nodes", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/evaluate-scopes/protocol-mappers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions" {:content-type :json
                                                                                                           :form-params {:enabled false
                                                                                                                         :resource ""
                                                                                                                         :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/management/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/management/permissions
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/test-nodes-available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/test-nodes-available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/test-nodes-available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/test-nodes-available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes/:node
QUERY PARAMS

node
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes/:node");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/nodes/:node HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes/:node")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes/:node');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes/:node',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes/:node" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes/:node');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/nodes/:node")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/nodes/:node
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/nodes/:node
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid
BODY json

{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid");

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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid" {:content-type :json
                                                                                    :form-params {:id ""
                                                                                                  :clientId ""
                                                                                                  :name ""
                                                                                                  :description ""
                                                                                                  :type ""
                                                                                                  :rootUrl ""
                                                                                                  :adminUrl ""
                                                                                                  :baseUrl ""
                                                                                                  :surrogateAuthRequired false
                                                                                                  :enabled false
                                                                                                  :alwaysDisplayInConsole false
                                                                                                  :clientAuthenticatorType ""
                                                                                                  :secret ""
                                                                                                  :registrationAccessToken ""
                                                                                                  :defaultRoles []
                                                                                                  :redirectUris []
                                                                                                  :webOrigins []
                                                                                                  :notBefore 0
                                                                                                  :bearerOnly false
                                                                                                  :consentRequired false
                                                                                                  :standardFlowEnabled false
                                                                                                  :implicitFlowEnabled false
                                                                                                  :directAccessGrantsEnabled false
                                                                                                  :serviceAccountsEnabled false
                                                                                                  :authorizationServicesEnabled false
                                                                                                  :directGrantsOnly false
                                                                                                  :publicClient false
                                                                                                  :frontchannelLogout false
                                                                                                  :protocol ""
                                                                                                  :attributes {}
                                                                                                  :authenticationFlowBindingOverrides {}
                                                                                                  :fullScopeAllowed false
                                                                                                  :nodeReRegistrationTimeout 0
                                                                                                  :registeredNodes {}
                                                                                                  :protocolMappers [{:id ""
                                                                                                                     :name ""
                                                                                                                     :protocol ""
                                                                                                                     :protocolMapper ""
                                                                                                                     :consentRequired false
                                                                                                                     :consentText ""
                                                                                                                     :config {}}]
                                                                                                  :clientTemplate ""
                                                                                                  :useTemplateConfig false
                                                                                                  :useTemplateScope false
                                                                                                  :useTemplateMappers false
                                                                                                  :defaultClientScopes []
                                                                                                  :optionalClientScopes []
                                                                                                  :authorizationSettings {:id ""
                                                                                                                          :clientId ""
                                                                                                                          :name ""
                                                                                                                          :allowRemoteResourceManagement false
                                                                                                                          :policyEnforcementMode ""
                                                                                                                          :resources [{:_id ""
                                                                                                                                       :name ""
                                                                                                                                       :uris []
                                                                                                                                       :type ""
                                                                                                                                       :scopes [{:id ""
                                                                                                                                                 :name ""
                                                                                                                                                 :iconUri ""
                                                                                                                                                 :policies [{:id ""
                                                                                                                                                             :name ""
                                                                                                                                                             :description ""
                                                                                                                                                             :type ""
                                                                                                                                                             :policies []
                                                                                                                                                             :resources []
                                                                                                                                                             :scopes []
                                                                                                                                                             :logic ""
                                                                                                                                                             :decisionStrategy ""
                                                                                                                                                             :owner ""
                                                                                                                                                             :resourceType ""
                                                                                                                                                             :resourcesData []
                                                                                                                                                             :scopesData []
                                                                                                                                                             :config {}}]
                                                                                                                                                 :resources []
                                                                                                                                                 :displayName ""}]
                                                                                                                                       :icon_uri ""
                                                                                                                                       :owner {}
                                                                                                                                       :ownerManagedAccess false
                                                                                                                                       :displayName ""
                                                                                                                                       :attributes {}
                                                                                                                                       :uri ""
                                                                                                                                       :scopesUma [{}]}]
                                                                                                                          :policies [{}]
                                                                                                                          :scopes [{}]
                                                                                                                          :decisionStrategy ""
                                                                                                                          :authorizationSchema {:resourceTypes {}}}
                                                                                                  :access {}
                                                                                                  :origin ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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/admin/realms/:realm/clients/:client-uuid HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2618

{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  clientId: '',
  name: '',
  description: '',
  type: '',
  rootUrl: '',
  adminUrl: '',
  baseUrl: '',
  surrogateAuthRequired: false,
  enabled: false,
  alwaysDisplayInConsole: false,
  clientAuthenticatorType: '',
  secret: '',
  registrationAccessToken: '',
  defaultRoles: [],
  redirectUris: [],
  webOrigins: [],
  notBefore: 0,
  bearerOnly: false,
  consentRequired: false,
  standardFlowEnabled: false,
  implicitFlowEnabled: false,
  directAccessGrantsEnabled: false,
  serviceAccountsEnabled: false,
  authorizationServicesEnabled: false,
  directGrantsOnly: false,
  publicClient: false,
  frontchannelLogout: false,
  protocol: '',
  attributes: {},
  authenticationFlowBindingOverrides: {},
  fullScopeAllowed: false,
  nodeReRegistrationTimeout: 0,
  registeredNodes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  clientTemplate: '',
  useTemplateConfig: false,
  useTemplateScope: false,
  useTemplateMappers: false,
  defaultClientScopes: [],
  optionalClientScopes: [],
  authorizationSettings: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [
          {}
        ]
      }
    ],
    policies: [
      {}
    ],
    scopes: [
      {}
    ],
    decisionStrategy: '',
    authorizationSchema: {
      resourceTypes: {}
    }
  },
  access: {},
  origin: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [{}]
        }
      ],
      policies: [{}],
      scopes: [{}],
      decisionStrategy: '',
      authorizationSchema: {resourceTypes: {}}
    },
    access: {},
    origin: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","clientId":"","name":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}},"access":{},"origin":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "clientId": "",\n  "name": "",\n  "description": "",\n  "type": "",\n  "rootUrl": "",\n  "adminUrl": "",\n  "baseUrl": "",\n  "surrogateAuthRequired": false,\n  "enabled": false,\n  "alwaysDisplayInConsole": false,\n  "clientAuthenticatorType": "",\n  "secret": "",\n  "registrationAccessToken": "",\n  "defaultRoles": [],\n  "redirectUris": [],\n  "webOrigins": [],\n  "notBefore": 0,\n  "bearerOnly": false,\n  "consentRequired": false,\n  "standardFlowEnabled": false,\n  "implicitFlowEnabled": false,\n  "directAccessGrantsEnabled": false,\n  "serviceAccountsEnabled": false,\n  "authorizationServicesEnabled": false,\n  "directGrantsOnly": false,\n  "publicClient": false,\n  "frontchannelLogout": false,\n  "protocol": "",\n  "attributes": {},\n  "authenticationFlowBindingOverrides": {},\n  "fullScopeAllowed": false,\n  "nodeReRegistrationTimeout": 0,\n  "registeredNodes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\n    }\n  ],\n  "clientTemplate": "",\n  "useTemplateConfig": false,\n  "useTemplateScope": false,\n  "useTemplateMappers": false,\n  "defaultClientScopes": [],\n  "optionalClientScopes": [],\n  "authorizationSettings": {\n    "id": "",\n    "clientId": "",\n    "name": "",\n    "allowRemoteResourceManagement": false,\n    "policyEnforcementMode": "",\n    "resources": [\n      {\n        "_id": "",\n        "name": "",\n        "uris": [],\n        "type": "",\n        "scopes": [\n          {\n            "id": "",\n            "name": "",\n            "iconUri": "",\n            "policies": [\n              {\n                "id": "",\n                "name": "",\n                "description": "",\n                "type": "",\n                "policies": [],\n                "resources": [],\n                "scopes": [],\n                "logic": "",\n                "decisionStrategy": "",\n                "owner": "",\n                "resourceType": "",\n                "resourcesData": [],\n                "scopesData": [],\n                "config": {}\n              }\n            ],\n            "resources": [],\n            "displayName": ""\n          }\n        ],\n        "icon_uri": "",\n        "owner": {},\n        "ownerManagedAccess": false,\n        "displayName": "",\n        "attributes": {},\n        "uri": "",\n        "scopesUma": [\n          {}\n        ]\n      }\n    ],\n    "policies": [\n      {}\n    ],\n    "scopes": [\n      {}\n    ],\n    "decisionStrategy": "",\n    "authorizationSchema": {\n      "resourceTypes": {}\n    }\n  },\n  "access": {},\n  "origin": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")
  .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/admin/realms/:realm/clients/:client-uuid',
  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({
  id: '',
  clientId: '',
  name: '',
  description: '',
  type: '',
  rootUrl: '',
  adminUrl: '',
  baseUrl: '',
  surrogateAuthRequired: false,
  enabled: false,
  alwaysDisplayInConsole: false,
  clientAuthenticatorType: '',
  secret: '',
  registrationAccessToken: '',
  defaultRoles: [],
  redirectUris: [],
  webOrigins: [],
  notBefore: 0,
  bearerOnly: false,
  consentRequired: false,
  standardFlowEnabled: false,
  implicitFlowEnabled: false,
  directAccessGrantsEnabled: false,
  serviceAccountsEnabled: false,
  authorizationServicesEnabled: false,
  directGrantsOnly: false,
  publicClient: false,
  frontchannelLogout: false,
  protocol: '',
  attributes: {},
  authenticationFlowBindingOverrides: {},
  fullScopeAllowed: false,
  nodeReRegistrationTimeout: 0,
  registeredNodes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  clientTemplate: '',
  useTemplateConfig: false,
  useTemplateScope: false,
  useTemplateMappers: false,
  defaultClientScopes: [],
  optionalClientScopes: [],
  authorizationSettings: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    policies: [{}],
    scopes: [{}],
    decisionStrategy: '',
    authorizationSchema: {resourceTypes: {}}
  },
  access: {},
  origin: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [{}]
        }
      ],
      policies: [{}],
      scopes: [{}],
      decisionStrategy: '',
      authorizationSchema: {resourceTypes: {}}
    },
    access: {},
    origin: ''
  },
  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}}/admin/realms/:realm/clients/:client-uuid');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  clientId: '',
  name: '',
  description: '',
  type: '',
  rootUrl: '',
  adminUrl: '',
  baseUrl: '',
  surrogateAuthRequired: false,
  enabled: false,
  alwaysDisplayInConsole: false,
  clientAuthenticatorType: '',
  secret: '',
  registrationAccessToken: '',
  defaultRoles: [],
  redirectUris: [],
  webOrigins: [],
  notBefore: 0,
  bearerOnly: false,
  consentRequired: false,
  standardFlowEnabled: false,
  implicitFlowEnabled: false,
  directAccessGrantsEnabled: false,
  serviceAccountsEnabled: false,
  authorizationServicesEnabled: false,
  directGrantsOnly: false,
  publicClient: false,
  frontchannelLogout: false,
  protocol: '',
  attributes: {},
  authenticationFlowBindingOverrides: {},
  fullScopeAllowed: false,
  nodeReRegistrationTimeout: 0,
  registeredNodes: {},
  protocolMappers: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  clientTemplate: '',
  useTemplateConfig: false,
  useTemplateScope: false,
  useTemplateMappers: false,
  defaultClientScopes: [],
  optionalClientScopes: [],
  authorizationSettings: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [
          {}
        ]
      }
    ],
    policies: [
      {}
    ],
    scopes: [
      {}
    ],
    decisionStrategy: '',
    authorizationSchema: {
      resourceTypes: {}
    }
  },
  access: {},
  origin: ''
});

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}}/admin/realms/:realm/clients/:client-uuid',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [{}]
        }
      ],
      policies: [{}],
      scopes: [{}],
      decisionStrategy: '',
      authorizationSchema: {resourceTypes: {}}
    },
    access: {},
    origin: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","clientId":"","name":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}},"access":{},"origin":""}'
};

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 = @{ @"id": @"",
                              @"clientId": @"",
                              @"name": @"",
                              @"description": @"",
                              @"type": @"",
                              @"rootUrl": @"",
                              @"adminUrl": @"",
                              @"baseUrl": @"",
                              @"surrogateAuthRequired": @NO,
                              @"enabled": @NO,
                              @"alwaysDisplayInConsole": @NO,
                              @"clientAuthenticatorType": @"",
                              @"secret": @"",
                              @"registrationAccessToken": @"",
                              @"defaultRoles": @[  ],
                              @"redirectUris": @[  ],
                              @"webOrigins": @[  ],
                              @"notBefore": @0,
                              @"bearerOnly": @NO,
                              @"consentRequired": @NO,
                              @"standardFlowEnabled": @NO,
                              @"implicitFlowEnabled": @NO,
                              @"directAccessGrantsEnabled": @NO,
                              @"serviceAccountsEnabled": @NO,
                              @"authorizationServicesEnabled": @NO,
                              @"directGrantsOnly": @NO,
                              @"publicClient": @NO,
                              @"frontchannelLogout": @NO,
                              @"protocol": @"",
                              @"attributes": @{  },
                              @"authenticationFlowBindingOverrides": @{  },
                              @"fullScopeAllowed": @NO,
                              @"nodeReRegistrationTimeout": @0,
                              @"registeredNodes": @{  },
                              @"protocolMappers": @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ],
                              @"clientTemplate": @"",
                              @"useTemplateConfig": @NO,
                              @"useTemplateScope": @NO,
                              @"useTemplateMappers": @NO,
                              @"defaultClientScopes": @[  ],
                              @"optionalClientScopes": @[  ],
                              @"authorizationSettings": @{ @"id": @"", @"clientId": @"", @"name": @"", @"allowRemoteResourceManagement": @NO, @"policyEnforcementMode": @"", @"resources": @[ @{ @"_id": @"", @"name": @"", @"uris": @[  ], @"type": @"", @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ], @"icon_uri": @"", @"owner": @{  }, @"ownerManagedAccess": @NO, @"displayName": @"", @"attributes": @{  }, @"uri": @"", @"scopesUma": @[ @{  } ] } ], @"policies": @[ @{  } ], @"scopes": @[ @{  } ], @"decisionStrategy": @"", @"authorizationSchema": @{ @"resourceTypes": @{  } } },
                              @"access": @{  },
                              @"origin": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid",
  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([
    'id' => '',
    'clientId' => '',
    'name' => '',
    'description' => '',
    'type' => '',
    'rootUrl' => '',
    'adminUrl' => '',
    'baseUrl' => '',
    'surrogateAuthRequired' => null,
    'enabled' => null,
    'alwaysDisplayInConsole' => null,
    'clientAuthenticatorType' => '',
    'secret' => '',
    'registrationAccessToken' => '',
    'defaultRoles' => [
        
    ],
    'redirectUris' => [
        
    ],
    'webOrigins' => [
        
    ],
    'notBefore' => 0,
    'bearerOnly' => null,
    'consentRequired' => null,
    'standardFlowEnabled' => null,
    'implicitFlowEnabled' => null,
    'directAccessGrantsEnabled' => null,
    'serviceAccountsEnabled' => null,
    'authorizationServicesEnabled' => null,
    'directGrantsOnly' => null,
    'publicClient' => null,
    'frontchannelLogout' => null,
    'protocol' => '',
    'attributes' => [
        
    ],
    'authenticationFlowBindingOverrides' => [
        
    ],
    'fullScopeAllowed' => null,
    'nodeReRegistrationTimeout' => 0,
    'registeredNodes' => [
        
    ],
    'protocolMappers' => [
        [
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => '',
                'consentRequired' => null,
                'consentText' => '',
                'config' => [
                                
                ]
        ]
    ],
    'clientTemplate' => '',
    'useTemplateConfig' => null,
    'useTemplateScope' => null,
    'useTemplateMappers' => null,
    'defaultClientScopes' => [
        
    ],
    'optionalClientScopes' => [
        
    ],
    'authorizationSettings' => [
        'id' => '',
        'clientId' => '',
        'name' => '',
        'allowRemoteResourceManagement' => null,
        'policyEnforcementMode' => '',
        'resources' => [
                [
                                '_id' => '',
                                'name' => '',
                                'uris' => [
                                                                
                                ],
                                'type' => '',
                                'scopes' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'iconUri' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayName' => ''
                                                                ]
                                ],
                                'icon_uri' => '',
                                'owner' => [
                                                                
                                ],
                                'ownerManagedAccess' => null,
                                'displayName' => '',
                                'attributes' => [
                                                                
                                ],
                                'uri' => '',
                                'scopesUma' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'policies' => [
                [
                                
                ]
        ],
        'scopes' => [
                [
                                
                ]
        ],
        'decisionStrategy' => '',
        'authorizationSchema' => [
                'resourceTypes' => [
                                
                ]
        ]
    ],
    'access' => [
        
    ],
    'origin' => ''
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid', [
  'body' => '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'clientId' => '',
  'name' => '',
  'description' => '',
  'type' => '',
  'rootUrl' => '',
  'adminUrl' => '',
  'baseUrl' => '',
  'surrogateAuthRequired' => null,
  'enabled' => null,
  'alwaysDisplayInConsole' => null,
  'clientAuthenticatorType' => '',
  'secret' => '',
  'registrationAccessToken' => '',
  'defaultRoles' => [
    
  ],
  'redirectUris' => [
    
  ],
  'webOrigins' => [
    
  ],
  'notBefore' => 0,
  'bearerOnly' => null,
  'consentRequired' => null,
  'standardFlowEnabled' => null,
  'implicitFlowEnabled' => null,
  'directAccessGrantsEnabled' => null,
  'serviceAccountsEnabled' => null,
  'authorizationServicesEnabled' => null,
  'directGrantsOnly' => null,
  'publicClient' => null,
  'frontchannelLogout' => null,
  'protocol' => '',
  'attributes' => [
    
  ],
  'authenticationFlowBindingOverrides' => [
    
  ],
  'fullScopeAllowed' => null,
  'nodeReRegistrationTimeout' => 0,
  'registeredNodes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ],
  'clientTemplate' => '',
  'useTemplateConfig' => null,
  'useTemplateScope' => null,
  'useTemplateMappers' => null,
  'defaultClientScopes' => [
    
  ],
  'optionalClientScopes' => [
    
  ],
  'authorizationSettings' => [
    'id' => '',
    'clientId' => '',
    'name' => '',
    'allowRemoteResourceManagement' => null,
    'policyEnforcementMode' => '',
    'resources' => [
        [
                '_id' => '',
                'name' => '',
                'uris' => [
                                
                ],
                'type' => '',
                'scopes' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'iconUri' => '',
                                                                'policies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => ''
                                ]
                ],
                'icon_uri' => '',
                'owner' => [
                                
                ],
                'ownerManagedAccess' => null,
                'displayName' => '',
                'attributes' => [
                                
                ],
                'uri' => '',
                'scopesUma' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'policies' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ],
    'decisionStrategy' => '',
    'authorizationSchema' => [
        'resourceTypes' => [
                
        ]
    ]
  ],
  'access' => [
    
  ],
  'origin' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'clientId' => '',
  'name' => '',
  'description' => '',
  'type' => '',
  'rootUrl' => '',
  'adminUrl' => '',
  'baseUrl' => '',
  'surrogateAuthRequired' => null,
  'enabled' => null,
  'alwaysDisplayInConsole' => null,
  'clientAuthenticatorType' => '',
  'secret' => '',
  'registrationAccessToken' => '',
  'defaultRoles' => [
    
  ],
  'redirectUris' => [
    
  ],
  'webOrigins' => [
    
  ],
  'notBefore' => 0,
  'bearerOnly' => null,
  'consentRequired' => null,
  'standardFlowEnabled' => null,
  'implicitFlowEnabled' => null,
  'directAccessGrantsEnabled' => null,
  'serviceAccountsEnabled' => null,
  'authorizationServicesEnabled' => null,
  'directGrantsOnly' => null,
  'publicClient' => null,
  'frontchannelLogout' => null,
  'protocol' => '',
  'attributes' => [
    
  ],
  'authenticationFlowBindingOverrides' => [
    
  ],
  'fullScopeAllowed' => null,
  'nodeReRegistrationTimeout' => 0,
  'registeredNodes' => [
    
  ],
  'protocolMappers' => [
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ],
  'clientTemplate' => '',
  'useTemplateConfig' => null,
  'useTemplateScope' => null,
  'useTemplateMappers' => null,
  'defaultClientScopes' => [
    
  ],
  'optionalClientScopes' => [
    
  ],
  'authorizationSettings' => [
    'id' => '',
    'clientId' => '',
    'name' => '',
    'allowRemoteResourceManagement' => null,
    'policyEnforcementMode' => '',
    'resources' => [
        [
                '_id' => '',
                'name' => '',
                'uris' => [
                                
                ],
                'type' => '',
                'scopes' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'iconUri' => '',
                                                                'policies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => ''
                                ]
                ],
                'icon_uri' => '',
                'owner' => [
                                
                ],
                'ownerManagedAccess' => null,
                'displayName' => '',
                'attributes' => [
                                
                ],
                'uri' => '',
                'scopesUma' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'policies' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ],
    'decisionStrategy' => '',
    'authorizationSchema' => [
        'resourceTypes' => [
                
        ]
    ]
  ],
  'access' => [
    
  ],
  'origin' => ''
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid');
$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}}/admin/realms/:realm/clients/:client-uuid' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/clients/:client-uuid", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

payload = {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": False,
    "enabled": False,
    "alwaysDisplayInConsole": False,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": False,
    "consentRequired": False,
    "standardFlowEnabled": False,
    "implicitFlowEnabled": False,
    "directAccessGrantsEnabled": False,
    "serviceAccountsEnabled": False,
    "authorizationServicesEnabled": False,
    "directGrantsOnly": False,
    "publicClient": False,
    "frontchannelLogout": False,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": False,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
        {
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": False,
            "consentText": "",
            "config": {}
        }
    ],
    "clientTemplate": "",
    "useTemplateConfig": False,
    "useTemplateScope": False,
    "useTemplateMappers": False,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
        "id": "",
        "clientId": "",
        "name": "",
        "allowRemoteResourceManagement": False,
        "policyEnforcementMode": "",
        "resources": [
            {
                "_id": "",
                "name": "",
                "uris": [],
                "type": "",
                "scopes": [
                    {
                        "id": "",
                        "name": "",
                        "iconUri": "",
                        "policies": [
                            {
                                "id": "",
                                "name": "",
                                "description": "",
                                "type": "",
                                "policies": [],
                                "resources": [],
                                "scopes": [],
                                "logic": "",
                                "decisionStrategy": "",
                                "owner": "",
                                "resourceType": "",
                                "resourcesData": [],
                                "scopesData": [],
                                "config": {}
                            }
                        ],
                        "resources": [],
                        "displayName": ""
                    }
                ],
                "icon_uri": "",
                "owner": {},
                "ownerManagedAccess": False,
                "displayName": "",
                "attributes": {},
                "uri": "",
                "scopesUma": [{}]
            }
        ],
        "policies": [{}],
        "scopes": [{}],
        "decisionStrategy": "",
        "authorizationSchema": { "resourceTypes": {} }
    },
    "access": {},
    "origin": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid"

payload <- "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid")

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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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/admin/realms/:realm/clients/:client-uuid') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"type\": \"\",\n  \"rootUrl\": \"\",\n  \"adminUrl\": \"\",\n  \"baseUrl\": \"\",\n  \"surrogateAuthRequired\": false,\n  \"enabled\": false,\n  \"alwaysDisplayInConsole\": false,\n  \"clientAuthenticatorType\": \"\",\n  \"secret\": \"\",\n  \"registrationAccessToken\": \"\",\n  \"defaultRoles\": [],\n  \"redirectUris\": [],\n  \"webOrigins\": [],\n  \"notBefore\": 0,\n  \"bearerOnly\": false,\n  \"consentRequired\": false,\n  \"standardFlowEnabled\": false,\n  \"implicitFlowEnabled\": false,\n  \"directAccessGrantsEnabled\": false,\n  \"serviceAccountsEnabled\": false,\n  \"authorizationServicesEnabled\": false,\n  \"directGrantsOnly\": false,\n  \"publicClient\": false,\n  \"frontchannelLogout\": false,\n  \"protocol\": \"\",\n  \"attributes\": {},\n  \"authenticationFlowBindingOverrides\": {},\n  \"fullScopeAllowed\": false,\n  \"nodeReRegistrationTimeout\": 0,\n  \"registeredNodes\": {},\n  \"protocolMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"protocol\": \"\",\n      \"protocolMapper\": \"\",\n      \"consentRequired\": false,\n      \"consentText\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"clientTemplate\": \"\",\n  \"useTemplateConfig\": false,\n  \"useTemplateScope\": false,\n  \"useTemplateMappers\": false,\n  \"defaultClientScopes\": [],\n  \"optionalClientScopes\": [],\n  \"authorizationSettings\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"allowRemoteResourceManagement\": false,\n    \"policyEnforcementMode\": \"\",\n    \"resources\": [\n      {\n        \"_id\": \"\",\n        \"name\": \"\",\n        \"uris\": [],\n        \"type\": \"\",\n        \"scopes\": [\n          {\n            \"id\": \"\",\n            \"name\": \"\",\n            \"iconUri\": \"\",\n            \"policies\": [\n              {\n                \"id\": \"\",\n                \"name\": \"\",\n                \"description\": \"\",\n                \"type\": \"\",\n                \"policies\": [],\n                \"resources\": [],\n                \"scopes\": [],\n                \"logic\": \"\",\n                \"decisionStrategy\": \"\",\n                \"owner\": \"\",\n                \"resourceType\": \"\",\n                \"resourcesData\": [],\n                \"scopesData\": [],\n                \"config\": {}\n              }\n            ],\n            \"resources\": [],\n            \"displayName\": \"\"\n          }\n        ],\n        \"icon_uri\": \"\",\n        \"owner\": {},\n        \"ownerManagedAccess\": false,\n        \"displayName\": \"\",\n        \"attributes\": {},\n        \"uri\": \"\",\n        \"scopesUma\": [\n          {}\n        ]\n      }\n    ],\n    \"policies\": [\n      {}\n    ],\n    \"scopes\": [\n      {}\n    ],\n    \"decisionStrategy\": \"\",\n    \"authorizationSchema\": {\n      \"resourceTypes\": {}\n    }\n  },\n  \"access\": {},\n  \"origin\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid";

    let payload = json!({
        "id": "",
        "clientId": "",
        "name": "",
        "description": "",
        "type": "",
        "rootUrl": "",
        "adminUrl": "",
        "baseUrl": "",
        "surrogateAuthRequired": false,
        "enabled": false,
        "alwaysDisplayInConsole": false,
        "clientAuthenticatorType": "",
        "secret": "",
        "registrationAccessToken": "",
        "defaultRoles": (),
        "redirectUris": (),
        "webOrigins": (),
        "notBefore": 0,
        "bearerOnly": false,
        "consentRequired": false,
        "standardFlowEnabled": false,
        "implicitFlowEnabled": false,
        "directAccessGrantsEnabled": false,
        "serviceAccountsEnabled": false,
        "authorizationServicesEnabled": false,
        "directGrantsOnly": false,
        "publicClient": false,
        "frontchannelLogout": false,
        "protocol": "",
        "attributes": json!({}),
        "authenticationFlowBindingOverrides": json!({}),
        "fullScopeAllowed": false,
        "nodeReRegistrationTimeout": 0,
        "registeredNodes": json!({}),
        "protocolMappers": (
            json!({
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": "",
                "consentRequired": false,
                "consentText": "",
                "config": json!({})
            })
        ),
        "clientTemplate": "",
        "useTemplateConfig": false,
        "useTemplateScope": false,
        "useTemplateMappers": false,
        "defaultClientScopes": (),
        "optionalClientScopes": (),
        "authorizationSettings": json!({
            "id": "",
            "clientId": "",
            "name": "",
            "allowRemoteResourceManagement": false,
            "policyEnforcementMode": "",
            "resources": (
                json!({
                    "_id": "",
                    "name": "",
                    "uris": (),
                    "type": "",
                    "scopes": (
                        json!({
                            "id": "",
                            "name": "",
                            "iconUri": "",
                            "policies": (
                                json!({
                                    "id": "",
                                    "name": "",
                                    "description": "",
                                    "type": "",
                                    "policies": (),
                                    "resources": (),
                                    "scopes": (),
                                    "logic": "",
                                    "decisionStrategy": "",
                                    "owner": "",
                                    "resourceType": "",
                                    "resourcesData": (),
                                    "scopesData": (),
                                    "config": json!({})
                                })
                            ),
                            "resources": (),
                            "displayName": ""
                        })
                    ),
                    "icon_uri": "",
                    "owner": json!({}),
                    "ownerManagedAccess": false,
                    "displayName": "",
                    "attributes": json!({}),
                    "uri": "",
                    "scopesUma": (json!({}))
                })
            ),
            "policies": (json!({})),
            "scopes": (json!({})),
            "decisionStrategy": "",
            "authorizationSchema": json!({"resourceTypes": json!({})})
        }),
        "access": json!({}),
        "origin": ""
    });

    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}}/admin/realms/:realm/clients/:client-uuid \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}'
echo '{
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": {},
  "authenticationFlowBindingOverrides": {},
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": {},
  "protocolMappers": [
    {
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": {}
    }
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      {
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              {
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": {}
              }
            ],
            "resources": [],
            "displayName": ""
          }
        ],
        "icon_uri": "",
        "owner": {},
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": {},
        "uri": "",
        "scopesUma": [
          {}
        ]
      }
    ],
    "policies": [
      {}
    ],
    "scopes": [
      {}
    ],
    "decisionStrategy": "",
    "authorizationSchema": {
      "resourceTypes": {}
    }
  },
  "access": {},
  "origin": ""
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "clientId": "",\n  "name": "",\n  "description": "",\n  "type": "",\n  "rootUrl": "",\n  "adminUrl": "",\n  "baseUrl": "",\n  "surrogateAuthRequired": false,\n  "enabled": false,\n  "alwaysDisplayInConsole": false,\n  "clientAuthenticatorType": "",\n  "secret": "",\n  "registrationAccessToken": "",\n  "defaultRoles": [],\n  "redirectUris": [],\n  "webOrigins": [],\n  "notBefore": 0,\n  "bearerOnly": false,\n  "consentRequired": false,\n  "standardFlowEnabled": false,\n  "implicitFlowEnabled": false,\n  "directAccessGrantsEnabled": false,\n  "serviceAccountsEnabled": false,\n  "authorizationServicesEnabled": false,\n  "directGrantsOnly": false,\n  "publicClient": false,\n  "frontchannelLogout": false,\n  "protocol": "",\n  "attributes": {},\n  "authenticationFlowBindingOverrides": {},\n  "fullScopeAllowed": false,\n  "nodeReRegistrationTimeout": 0,\n  "registeredNodes": {},\n  "protocolMappers": [\n    {\n      "id": "",\n      "name": "",\n      "protocol": "",\n      "protocolMapper": "",\n      "consentRequired": false,\n      "consentText": "",\n      "config": {}\n    }\n  ],\n  "clientTemplate": "",\n  "useTemplateConfig": false,\n  "useTemplateScope": false,\n  "useTemplateMappers": false,\n  "defaultClientScopes": [],\n  "optionalClientScopes": [],\n  "authorizationSettings": {\n    "id": "",\n    "clientId": "",\n    "name": "",\n    "allowRemoteResourceManagement": false,\n    "policyEnforcementMode": "",\n    "resources": [\n      {\n        "_id": "",\n        "name": "",\n        "uris": [],\n        "type": "",\n        "scopes": [\n          {\n            "id": "",\n            "name": "",\n            "iconUri": "",\n            "policies": [\n              {\n                "id": "",\n                "name": "",\n                "description": "",\n                "type": "",\n                "policies": [],\n                "resources": [],\n                "scopes": [],\n                "logic": "",\n                "decisionStrategy": "",\n                "owner": "",\n                "resourceType": "",\n                "resourcesData": [],\n                "scopesData": [],\n                "config": {}\n              }\n            ],\n            "resources": [],\n            "displayName": ""\n          }\n        ],\n        "icon_uri": "",\n        "owner": {},\n        "ownerManagedAccess": false,\n        "displayName": "",\n        "attributes": {},\n        "uri": "",\n        "scopesUma": [\n          {}\n        ]\n      }\n    ],\n    "policies": [\n      {}\n    ],\n    "scopes": [\n      {}\n    ],\n    "decisionStrategy": "",\n    "authorizationSchema": {\n      "resourceTypes": {}\n    }\n  },\n  "access": {},\n  "origin": ""\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "clientId": "",
  "name": "",
  "description": "",
  "type": "",
  "rootUrl": "",
  "adminUrl": "",
  "baseUrl": "",
  "surrogateAuthRequired": false,
  "enabled": false,
  "alwaysDisplayInConsole": false,
  "clientAuthenticatorType": "",
  "secret": "",
  "registrationAccessToken": "",
  "defaultRoles": [],
  "redirectUris": [],
  "webOrigins": [],
  "notBefore": 0,
  "bearerOnly": false,
  "consentRequired": false,
  "standardFlowEnabled": false,
  "implicitFlowEnabled": false,
  "directAccessGrantsEnabled": false,
  "serviceAccountsEnabled": false,
  "authorizationServicesEnabled": false,
  "directGrantsOnly": false,
  "publicClient": false,
  "frontchannelLogout": false,
  "protocol": "",
  "attributes": [],
  "authenticationFlowBindingOverrides": [],
  "fullScopeAllowed": false,
  "nodeReRegistrationTimeout": 0,
  "registeredNodes": [],
  "protocolMappers": [
    [
      "id": "",
      "name": "",
      "protocol": "",
      "protocolMapper": "",
      "consentRequired": false,
      "consentText": "",
      "config": []
    ]
  ],
  "clientTemplate": "",
  "useTemplateConfig": false,
  "useTemplateScope": false,
  "useTemplateMappers": false,
  "defaultClientScopes": [],
  "optionalClientScopes": [],
  "authorizationSettings": [
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": false,
    "policyEnforcementMode": "",
    "resources": [
      [
        "_id": "",
        "name": "",
        "uris": [],
        "type": "",
        "scopes": [
          [
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
              [
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": [],
                "resources": [],
                "scopes": [],
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": [],
                "scopesData": [],
                "config": []
              ]
            ],
            "resources": [],
            "displayName": ""
          ]
        ],
        "icon_uri": "",
        "owner": [],
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": [],
        "uri": "",
        "scopesUma": [[]]
      ]
    ],
    "policies": [[]],
    "scopes": [[]],
    "decisionStrategy": "",
    "authorizationSchema": ["resourceTypes": []]
  ],
  "access": [],
  "origin": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid")! 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 -admin-realms--realm-clients--client-uuid-default-client-scopes--clientScopeId
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId
QUERY PARAMS

clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 -admin-realms--realm-clients--client-uuid-optional-client-scopes--clientScopeId
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId
QUERY PARAMS

clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 -admin-realms--realm-clients--client-uuid-installation-providers--providerId
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId
QUERY PARAMS

providerId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/installation/providers/:providerId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 -admin-realms--realm-clients--client-uuid-default-client-scopes--clientScopeId
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId
QUERY PARAMS

clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId
http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/default-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 -admin-realms--realm-clients--client-uuid-optional-client-scopes--clientScopeId
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId
QUERY PARAMS

clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId
http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/optional-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/components/:id/sub-component-types
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/components/:id/sub-component-types HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id/sub-component-types")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id/sub-component-types');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/components/:id/sub-component-types" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id/sub-component-types');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id/sub-component-types');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/components/:id/sub-component-types")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/components/:id/sub-component-types
http GET {{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/components/:id/sub-component-types
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-components--id
{{baseUrl}}/admin/realms/:realm/components/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/components/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/components/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/components/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/components/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/components/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/components/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/components/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/components/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/components/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/components/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/components/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/components/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/components/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/components/:id
http DELETE {{baseUrl}}/admin/realms/:realm/components/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/components/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-components--id
{{baseUrl}}/admin/realms/:realm/components/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/components/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/components/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/components/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/components/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/components/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/components/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/components/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/components/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/components/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/components/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/components/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/components/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/components/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/components/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id
http GET {{baseUrl}}/admin/realms/:realm/components/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/components/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-components
{{baseUrl}}/admin/realms/:realm/components
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/components");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/components")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/components");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm/components HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/components")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/components'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/components" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/components');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/components');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/components' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/components' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/components")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/components"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/components"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/components') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components
http GET {{baseUrl}}/admin/realms/:realm/components
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/components
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-components
{{baseUrl}}/admin/realms/:realm/components
BODY json

{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/components" {:content-type :json
                                                                           :form-params {:id ""
                                                                                         :name ""
                                                                                         :providerId ""
                                                                                         :providerType ""
                                                                                         :parentId ""
                                                                                         :subType ""
                                                                                         :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/components"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/components"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/components");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/components"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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/admin/realms/:realm/components HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 121

{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/components")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/components"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/components")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/components")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  providerId: '',
  providerType: '',
  parentId: '',
  subType: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/components');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/components',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    providerId: '',
    providerType: '',
    parentId: '',
    subType: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/components';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","providerId":"","providerType":"","parentId":"","subType":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/components',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "providerId": "",\n  "providerType": "",\n  "parentId": "",\n  "subType": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  providerId: '',
  providerType: '',
  parentId: '',
  subType: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/components',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    providerId: '',
    providerType: '',
    parentId: '',
    subType: '',
    config: {}
  },
  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}}/admin/realms/:realm/components');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  providerId: '',
  providerType: '',
  parentId: '',
  subType: '',
  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}}/admin/realms/:realm/components',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    providerId: '',
    providerType: '',
    parentId: '',
    subType: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/components';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","providerId":"","providerType":"","parentId":"","subType":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"providerId": @"",
                              @"providerType": @"",
                              @"parentId": @"",
                              @"subType": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'providerId' => '',
    'providerType' => '',
    'parentId' => '',
    'subType' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/components', [
  'body' => '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/components');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'providerId' => '',
  'providerType' => '',
  'parentId' => '',
  'subType' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'providerId' => '',
  'providerType' => '',
  'parentId' => '',
  'subType' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/components' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/components", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/components"

payload = {
    "id": "",
    "name": "",
    "providerId": "",
    "providerType": "",
    "parentId": "",
    "subType": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/components"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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/admin/realms/:realm/components') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/components";

    let payload = json!({
        "id": "",
        "name": "",
        "providerId": "",
        "providerType": "",
        "parentId": "",
        "subType": "",
        "config": 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}}/admin/realms/:realm/components \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/components \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "providerId": "",\n  "providerType": "",\n  "parentId": "",\n  "subType": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/components
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-components--id
{{baseUrl}}/admin/realms/:realm/components/:id
QUERY PARAMS

id
BODY json

{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/components/:id" {:content-type :json
                                                                              :form-params {:id ""
                                                                                            :name ""
                                                                                            :providerId ""
                                                                                            :providerType ""
                                                                                            :parentId ""
                                                                                            :subType ""
                                                                                            :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/components/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/components/:id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/components/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/components/:id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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/admin/realms/:realm/components/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 121

{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/components/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/components/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/components/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/components/:id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  providerId: '',
  providerType: '',
  parentId: '',
  subType: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/components/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/components/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    providerId: '',
    providerType: '',
    parentId: '',
    subType: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/components/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","providerId":"","providerType":"","parentId":"","subType":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/components/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "providerId": "",\n  "providerType": "",\n  "parentId": "",\n  "subType": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  providerId: '',
  providerType: '',
  parentId: '',
  subType: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/components/:id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    providerId: '',
    providerType: '',
    parentId: '',
    subType: '',
    config: {}
  },
  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}}/admin/realms/:realm/components/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  providerId: '',
  providerType: '',
  parentId: '',
  subType: '',
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/components/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    providerId: '',
    providerType: '',
    parentId: '',
    subType: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/components/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","providerId":"","providerType":"","parentId":"","subType":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"providerId": @"",
                              @"providerType": @"",
                              @"parentId": @"",
                              @"subType": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'providerId' => '',
    'providerType' => '',
    'parentId' => '',
    'subType' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/components/:id', [
  'body' => '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/components/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'providerId' => '',
  'providerType' => '',
  'parentId' => '',
  'subType' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'providerId' => '',
  'providerType' => '',
  'parentId' => '',
  'subType' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/components/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/components/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/components/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/components/:id"

payload = {
    "id": "",
    "name": "",
    "providerId": "",
    "providerType": "",
    "parentId": "",
    "subType": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/components/:id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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/admin/realms/:realm/components/:id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"providerId\": \"\",\n  \"providerType\": \"\",\n  \"parentId\": \"\",\n  \"subType\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/components/:id";

    let payload = json!({
        "id": "",
        "name": "",
        "providerId": "",
        "providerType": "",
        "parentId": "",
        "subType": "",
        "config": 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}}/admin/realms/:realm/components/:id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/components/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "providerId": "",\n  "providerType": "",\n  "parentId": "",\n  "subType": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/components/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "providerId": "",
  "providerType": "",
  "parentId": "",
  "subType": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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. Only `name` and `id` are returned. `subGroups` are only returned when using the `search` or `q` parameter. If none of these parameters is provided, the top-level groups are returned without `subGroups` being filled.
{{baseUrl}}/admin/realms/:realm/groups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/groups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm/groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/admin/realms/:realm/groups'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups
http GET {{baseUrl}}/admin/realms/:realm/groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 stream of users, filtered according to query parameters
{{baseUrl}}/admin/realms/:realm/groups/:group-id/members
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/members");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/members")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/members");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/members HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/members")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/members")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/members');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/members'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/members',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/members" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/members');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/members');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/members');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/members' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/members' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/members")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/members"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/members"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/members') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/members
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/members
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/members
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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()
GET Return a paginated list of subgroups that have a parent group corresponding to the group on the URL
{{baseUrl}}/admin/realms/:realm/groups/:group-id/children
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"

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}}/admin/realms/:realm/groups/:group-id/children"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/groups/:group-id/children");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"

	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/admin/realms/:realm/groups/:group-id/children HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"))
    .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}}/admin/realms/:realm/groups/:group-id/children")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")
  .asString();
const 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}}/admin/realms/:realm/groups/:group-id/children');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children';
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}}/admin/realms/:realm/groups/:group-id/children',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/groups/:group-id/children',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/groups/:group-id/children'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children');

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}}/admin/realms/:realm/groups/:group-id/children'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children';
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}}/admin/realms/:realm/groups/:group-id/children"]
                                                       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}}/admin/realms/:realm/groups/:group-id/children" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children",
  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}}/admin/realms/:realm/groups/:group-id/children');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/children');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/children');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/children")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")

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/admin/realms/:realm/groups/:group-id/children') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children";

    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}}/admin/realms/:realm/groups/:group-id/children
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/children
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/children
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")! 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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions" {:content-type :json
                                                                                                       :form-params {:enabled false
                                                                                                                     :resource ""
                                                                                                                     :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/management/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/management/permissions
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/count")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/groups/count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups/count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups/count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups/count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/groups/count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups/count');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/groups/count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups/count
http GET {{baseUrl}}/admin/realms/:realm/groups/count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups/:group-id/children
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children" {:content-type :json
                                                                                          :form-params {:id ""
                                                                                                        :name ""
                                                                                                        :description ""
                                                                                                        :path ""
                                                                                                        :parentId ""
                                                                                                        :subGroupCount 0
                                                                                                        :subGroups []
                                                                                                        :attributes {}
                                                                                                        :realmRoles []
                                                                                                        :clientRoles {}
                                                                                                        :access {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups/:group-id/children"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups/:group-id/children");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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/admin/realms/:realm/groups/:group-id/children HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 199

{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/groups/:group-id/children")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  access: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","path":"","parentId":"","subGroupCount":0,"subGroups":[],"attributes":{},"realmRoles":[],"clientRoles":{},"access":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "path": "",\n  "parentId": "",\n  "subGroupCount": 0,\n  "subGroups": [],\n  "attributes": {},\n  "realmRoles": [],\n  "clientRoles": {},\n  "access": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  access: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  },
  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}}/admin/realms/:realm/groups/:group-id/children');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  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: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","path":"","parentId":"","subGroupCount":0,"subGroups":[],"attributes":{},"realmRoles":[],"clientRoles":{},"access":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"path": @"",
                              @"parentId": @"",
                              @"subGroupCount": @0,
                              @"subGroups": @[  ],
                              @"attributes": @{  },
                              @"realmRoles": @[  ],
                              @"clientRoles": @{  },
                              @"access": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/children" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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([
    'id' => '',
    'name' => '',
    'description' => '',
    'path' => '',
    'parentId' => '',
    'subGroupCount' => 0,
    'subGroups' => [
        
    ],
    'attributes' => [
        
    ],
    'realmRoles' => [
        
    ],
    'clientRoles' => [
        
    ],
    'access' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/groups/:group-id/children', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/children');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'path' => '',
  'parentId' => '',
  'subGroupCount' => 0,
  'subGroups' => [
    
  ],
  'attributes' => [
    
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'access' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'path' => '',
  'parentId' => '',
  'subGroupCount' => 0,
  'subGroups' => [
    
  ],
  'attributes' => [
    
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'access' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/children' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/children' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/groups/:group-id/children", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "path": "",
    "parentId": "",
    "subGroupCount": 0,
    "subGroups": [],
    "attributes": {},
    "realmRoles": [],
    "clientRoles": {},
    "access": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups/:group-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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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/admin/realms/:realm/groups/:group-id/children') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/children";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "path": "",
        "parentId": "",
        "subGroupCount": 0,
        "subGroups": (),
        "attributes": json!({}),
        "realmRoles": (),
        "clientRoles": json!({}),
        "access": 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}}/admin/realms/:realm/groups/:group-id/children \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/groups/:group-id/children \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "path": "",\n  "parentId": "",\n  "subGroupCount": 0,\n  "subGroups": [],\n  "attributes": {},\n  "realmRoles": [],\n  "clientRoles": {},\n  "access": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/children
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": [],
  "realmRoles": [],
  "clientRoles": [],
  "access": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/groups/:group-id" {:content-type :json
                                                                                :form-params {:id ""
                                                                                              :name ""
                                                                                              :description ""
                                                                                              :path ""
                                                                                              :parentId ""
                                                                                              :subGroupCount 0
                                                                                              :subGroups []
                                                                                              :attributes {}
                                                                                              :realmRoles []
                                                                                              :clientRoles {}
                                                                                              :access {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups/:group-id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups/:group-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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/admin/realms/:realm/groups/:group-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 199

{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/groups/:group-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/groups/:group-id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  access: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/groups/:group-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","path":"","parentId":"","subGroupCount":0,"subGroups":[],"attributes":{},"realmRoles":[],"clientRoles":{},"access":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "path": "",\n  "parentId": "",\n  "subGroupCount": 0,\n  "subGroups": [],\n  "attributes": {},\n  "realmRoles": [],\n  "clientRoles": {},\n  "access": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  access: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  },
  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}}/admin/realms/:realm/groups/:group-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","path":"","parentId":"","subGroupCount":0,"subGroups":[],"attributes":{},"realmRoles":[],"clientRoles":{},"access":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"path": @"",
                              @"parentId": @"",
                              @"subGroupCount": @0,
                              @"subGroups": @[  ],
                              @"attributes": @{  },
                              @"realmRoles": @[  ],
                              @"clientRoles": @{  },
                              @"access": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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([
    'id' => '',
    'name' => '',
    'description' => '',
    'path' => '',
    'parentId' => '',
    'subGroupCount' => 0,
    'subGroups' => [
        
    ],
    'attributes' => [
        
    ],
    'realmRoles' => [
        
    ],
    'clientRoles' => [
        
    ],
    'access' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/groups/:group-id', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'path' => '',
  'parentId' => '',
  'subGroupCount' => 0,
  'subGroups' => [
    
  ],
  'attributes' => [
    
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'access' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'path' => '',
  'parentId' => '',
  'subGroupCount' => 0,
  'subGroups' => [
    
  ],
  'attributes' => [
    
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'access' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/groups/:group-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "path": "",
    "parentId": "",
    "subGroupCount": 0,
    "subGroups": [],
    "attributes": {},
    "realmRoles": [],
    "clientRoles": {},
    "access": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups/:group-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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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/admin/realms/:realm/groups/:group-id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups/:group-id";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "path": "",
        "parentId": "",
        "subGroupCount": 0,
        "subGroups": (),
        "attributes": json!({}),
        "realmRoles": (),
        "clientRoles": json!({}),
        "access": 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}}/admin/realms/:realm/groups/:group-id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/groups/:group-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "path": "",\n  "parentId": "",\n  "subGroupCount": 0,\n  "subGroups": [],\n  "attributes": {},\n  "realmRoles": [],\n  "clientRoles": {},\n  "access": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": [],
  "realmRoles": [],
  "clientRoles": [],
  "access": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/groups" {:content-type :json
                                                                       :form-params {:id ""
                                                                                     :name ""
                                                                                     :description ""
                                                                                     :path ""
                                                                                     :parentId ""
                                                                                     :subGroupCount 0
                                                                                     :subGroups []
                                                                                     :attributes {}
                                                                                     :realmRoles []
                                                                                     :clientRoles {}
                                                                                     :access {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/:realm/groups");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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/admin/realms/:realm/groups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 199

{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/groups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/groups")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  access: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/groups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","path":"","parentId":"","subGroupCount":0,"subGroups":[],"attributes":{},"realmRoles":[],"clientRoles":{},"access":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/groups',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "path": "",\n  "parentId": "",\n  "subGroupCount": 0,\n  "subGroups": [],\n  "attributes": {},\n  "realmRoles": [],\n  "clientRoles": {},\n  "access": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  access: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  },
  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}}/admin/realms/:realm/groups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  path: '',
  parentId: '',
  subGroupCount: 0,
  subGroups: [],
  attributes: {},
  realmRoles: [],
  clientRoles: {},
  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: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    path: '',
    parentId: '',
    subGroupCount: 0,
    subGroups: [],
    attributes: {},
    realmRoles: [],
    clientRoles: {},
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","path":"","parentId":"","subGroupCount":0,"subGroups":[],"attributes":{},"realmRoles":[],"clientRoles":{},"access":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"path": @"",
                              @"parentId": @"",
                              @"subGroupCount": @0,
                              @"subGroups": @[  ],
                              @"attributes": @{  },
                              @"realmRoles": @[  ],
                              @"clientRoles": @{  },
                              @"access": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'description' => '',
    'path' => '',
    'parentId' => '',
    'subGroupCount' => 0,
    'subGroups' => [
        
    ],
    'attributes' => [
        
    ],
    'realmRoles' => [
        
    ],
    'clientRoles' => [
        
    ],
    'access' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/groups', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'path' => '',
  'parentId' => '',
  'subGroupCount' => 0,
  'subGroups' => [
    
  ],
  'attributes' => [
    
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'access' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'path' => '',
  'parentId' => '',
  'subGroupCount' => 0,
  'subGroups' => [
    
  ],
  'attributes' => [
    
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'access' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/groups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/groups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "path": "",
    "parentId": "",
    "subGroupCount": 0,
    "subGroups": [],
    "attributes": {},
    "realmRoles": [],
    "clientRoles": {},
    "access": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\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/admin/realms/:realm/groups') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"path\": \"\",\n  \"parentId\": \"\",\n  \"subGroupCount\": 0,\n  \"subGroups\": [],\n  \"attributes\": {},\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"access\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "path": "",
        "parentId": "",
        "subGroupCount": 0,
        "subGroups": (),
        "attributes": json!({}),
        "realmRoles": (),
        "clientRoles": json!({}),
        "access": 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}}/admin/realms/:realm/groups \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": {},
  "realmRoles": [],
  "clientRoles": {},
  "access": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/groups \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "path": "",\n  "parentId": "",\n  "subGroupCount": 0,\n  "subGroups": [],\n  "attributes": {},\n  "realmRoles": [],\n  "clientRoles": {},\n  "access": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "path": "",
  "parentId": "",
  "subGroupCount": 0,
  "subGroups": [],
  "attributes": [],
  "realmRoles": [],
  "clientRoles": [],
  "access": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-groups--group-id
{{baseUrl}}/admin/realms/:realm/groups/:group-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/groups/:group-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/groups/:group-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/groups/:group-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/groups/:group-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id
http DELETE {{baseUrl}}/admin/realms/:realm/groups/:group-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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 -admin-realms--realm-groups--group-id
{{baseUrl}}/admin/realms/:realm/groups/:group-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/groups/:group-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers
BODY json

{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers" {:content-type :json
                                                                                                           :form-params {:id ""
                                                                                                                         :name ""
                                                                                                                         :identityProviderAlias ""
                                                                                                                         :identityProviderMapper ""
                                                                                                                         :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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/admin/realms/:realm/identity-provider/instances/:alias/mappers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 107

{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","identityProviderAlias":"","identityProviderMapper":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "identityProviderAlias": "",\n  "identityProviderMapper": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    config: {}
  },
  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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","identityProviderAlias":"","identityProviderMapper":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"identityProviderAlias": @"",
                              @"identityProviderMapper": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'identityProviderAlias' => '',
    'identityProviderMapper' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers', [
  'body' => '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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([
  'id' => '',
  'name' => '',
  'identityProviderAlias' => '',
  'identityProviderMapper' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'identityProviderAlias' => '',
  'identityProviderMapper' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/mappers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers"

payload = {
    "id": "",
    "name": "",
    "identityProviderAlias": "",
    "identityProviderMapper": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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/admin/realms/:realm/identity-provider/instances/:alias/mappers') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers";

    let payload = json!({
        "id": "",
        "name": "",
        "identityProviderAlias": "",
        "identityProviderMapper": "",
        "config": 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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "identityProviderAlias": "",\n  "identityProviderMapper": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances
BODY json

{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/identity-provider/instances" {:content-type :json
                                                                                            :form-params {:alias ""
                                                                                                          :displayName ""
                                                                                                          :internalId ""
                                                                                                          :providerId ""
                                                                                                          :enabled false
                                                                                                          :updateProfileFirstLoginMode ""
                                                                                                          :trustEmail false
                                                                                                          :storeToken false
                                                                                                          :addReadTokenRoleOnCreate false
                                                                                                          :authenticateByDefault false
                                                                                                          :linkOnly false
                                                                                                          :hideOnLogin false
                                                                                                          :firstBrokerLoginFlowAlias ""
                                                                                                          :postBrokerLoginFlowAlias ""
                                                                                                          :organizationId ""
                                                                                                          :config {}
                                                                                                          :updateProfileFirstLogin false}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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}}/admin/realms/:realm/identity-provider/instances"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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}}/admin/realms/:realm/identity-provider/instances");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/identity-provider/instances"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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/admin/realms/:realm/identity-provider/instances HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 442

{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/identity-provider/instances"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/identity-provider/instances")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/identity-provider/instances")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  displayName: '',
  internalId: '',
  providerId: '',
  enabled: false,
  updateProfileFirstLoginMode: '',
  trustEmail: false,
  storeToken: false,
  addReadTokenRoleOnCreate: false,
  authenticateByDefault: false,
  linkOnly: false,
  hideOnLogin: false,
  firstBrokerLoginFlowAlias: '',
  postBrokerLoginFlowAlias: '',
  organizationId: '',
  config: {},
  updateProfileFirstLogin: 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}}/admin/realms/:realm/identity-provider/instances');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    displayName: '',
    internalId: '',
    providerId: '',
    enabled: false,
    updateProfileFirstLoginMode: '',
    trustEmail: false,
    storeToken: false,
    addReadTokenRoleOnCreate: false,
    authenticateByDefault: false,
    linkOnly: false,
    hideOnLogin: false,
    firstBrokerLoginFlowAlias: '',
    postBrokerLoginFlowAlias: '',
    organizationId: '',
    config: {},
    updateProfileFirstLogin: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":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}}/admin/realms/:realm/identity-provider/instances',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "displayName": "",\n  "internalId": "",\n  "providerId": "",\n  "enabled": false,\n  "updateProfileFirstLoginMode": "",\n  "trustEmail": false,\n  "storeToken": false,\n  "addReadTokenRoleOnCreate": false,\n  "authenticateByDefault": false,\n  "linkOnly": false,\n  "hideOnLogin": false,\n  "firstBrokerLoginFlowAlias": "",\n  "postBrokerLoginFlowAlias": "",\n  "organizationId": "",\n  "config": {},\n  "updateProfileFirstLogin": 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  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  alias: '',
  displayName: '',
  internalId: '',
  providerId: '',
  enabled: false,
  updateProfileFirstLoginMode: '',
  trustEmail: false,
  storeToken: false,
  addReadTokenRoleOnCreate: false,
  authenticateByDefault: false,
  linkOnly: false,
  hideOnLogin: false,
  firstBrokerLoginFlowAlias: '',
  postBrokerLoginFlowAlias: '',
  organizationId: '',
  config: {},
  updateProfileFirstLogin: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances',
  headers: {'content-type': 'application/json'},
  body: {
    alias: '',
    displayName: '',
    internalId: '',
    providerId: '',
    enabled: false,
    updateProfileFirstLoginMode: '',
    trustEmail: false,
    storeToken: false,
    addReadTokenRoleOnCreate: false,
    authenticateByDefault: false,
    linkOnly: false,
    hideOnLogin: false,
    firstBrokerLoginFlowAlias: '',
    postBrokerLoginFlowAlias: '',
    organizationId: '',
    config: {},
    updateProfileFirstLogin: 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}}/admin/realms/:realm/identity-provider/instances');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  alias: '',
  displayName: '',
  internalId: '',
  providerId: '',
  enabled: false,
  updateProfileFirstLoginMode: '',
  trustEmail: false,
  storeToken: false,
  addReadTokenRoleOnCreate: false,
  authenticateByDefault: false,
  linkOnly: false,
  hideOnLogin: false,
  firstBrokerLoginFlowAlias: '',
  postBrokerLoginFlowAlias: '',
  organizationId: '',
  config: {},
  updateProfileFirstLogin: 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}}/admin/realms/:realm/identity-provider/instances',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    displayName: '',
    internalId: '',
    providerId: '',
    enabled: false,
    updateProfileFirstLoginMode: '',
    trustEmail: false,
    storeToken: false,
    addReadTokenRoleOnCreate: false,
    authenticateByDefault: false,
    linkOnly: false,
    hideOnLogin: false,
    firstBrokerLoginFlowAlias: '',
    postBrokerLoginFlowAlias: '',
    organizationId: '',
    config: {},
    updateProfileFirstLogin: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":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": @"",
                              @"displayName": @"",
                              @"internalId": @"",
                              @"providerId": @"",
                              @"enabled": @NO,
                              @"updateProfileFirstLoginMode": @"",
                              @"trustEmail": @NO,
                              @"storeToken": @NO,
                              @"addReadTokenRoleOnCreate": @NO,
                              @"authenticateByDefault": @NO,
                              @"linkOnly": @NO,
                              @"hideOnLogin": @NO,
                              @"firstBrokerLoginFlowAlias": @"",
                              @"postBrokerLoginFlowAlias": @"",
                              @"organizationId": @"",
                              @"config": @{  },
                              @"updateProfileFirstLogin": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'alias' => '',
    'displayName' => '',
    'internalId' => '',
    'providerId' => '',
    'enabled' => null,
    'updateProfileFirstLoginMode' => '',
    'trustEmail' => null,
    'storeToken' => null,
    'addReadTokenRoleOnCreate' => null,
    'authenticateByDefault' => null,
    'linkOnly' => null,
    'hideOnLogin' => null,
    'firstBrokerLoginFlowAlias' => '',
    'postBrokerLoginFlowAlias' => '',
    'organizationId' => '',
    'config' => [
        
    ],
    'updateProfileFirstLogin' => 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}}/admin/realms/:realm/identity-provider/instances', [
  'body' => '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'alias' => '',
  'displayName' => '',
  'internalId' => '',
  'providerId' => '',
  'enabled' => null,
  'updateProfileFirstLoginMode' => '',
  'trustEmail' => null,
  'storeToken' => null,
  'addReadTokenRoleOnCreate' => null,
  'authenticateByDefault' => null,
  'linkOnly' => null,
  'hideOnLogin' => null,
  'firstBrokerLoginFlowAlias' => '',
  'postBrokerLoginFlowAlias' => '',
  'organizationId' => '',
  'config' => [
    
  ],
  'updateProfileFirstLogin' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'displayName' => '',
  'internalId' => '',
  'providerId' => '',
  'enabled' => null,
  'updateProfileFirstLoginMode' => '',
  'trustEmail' => null,
  'storeToken' => null,
  'addReadTokenRoleOnCreate' => null,
  'authenticateByDefault' => null,
  'linkOnly' => null,
  'hideOnLogin' => null,
  'firstBrokerLoginFlowAlias' => '',
  'postBrokerLoginFlowAlias' => '',
  'organizationId' => '',
  'config' => [
    
  ],
  'updateProfileFirstLogin' => null
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/identity-provider/instances", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances"

payload = {
    "alias": "",
    "displayName": "",
    "internalId": "",
    "providerId": "",
    "enabled": False,
    "updateProfileFirstLoginMode": "",
    "trustEmail": False,
    "storeToken": False,
    "addReadTokenRoleOnCreate": False,
    "authenticateByDefault": False,
    "linkOnly": False,
    "hideOnLogin": False,
    "firstBrokerLoginFlowAlias": "",
    "postBrokerLoginFlowAlias": "",
    "organizationId": "",
    "config": {},
    "updateProfileFirstLogin": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/identity-provider/instances"

payload <- "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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}}/admin/realms/: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  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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/admin/realms/:realm/identity-provider/instances') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances";

    let payload = json!({
        "alias": "",
        "displayName": "",
        "internalId": "",
        "providerId": "",
        "enabled": false,
        "updateProfileFirstLoginMode": "",
        "trustEmail": false,
        "storeToken": false,
        "addReadTokenRoleOnCreate": false,
        "authenticateByDefault": false,
        "linkOnly": false,
        "hideOnLogin": false,
        "firstBrokerLoginFlowAlias": "",
        "postBrokerLoginFlowAlias": "",
        "organizationId": "",
        "config": json!({}),
        "updateProfileFirstLogin": 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}}/admin/realms/:realm/identity-provider/instances \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}'
echo '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/identity-provider/instances \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "displayName": "",\n  "internalId": "",\n  "providerId": "",\n  "enabled": false,\n  "updateProfileFirstLoginMode": "",\n  "trustEmail": false,\n  "storeToken": false,\n  "addReadTokenRoleOnCreate": false,\n  "authenticateByDefault": false,\n  "linkOnly": false,\n  "hideOnLogin": false,\n  "firstBrokerLoginFlowAlias": "",\n  "postBrokerLoginFlowAlias": "",\n  "organizationId": "",\n  "config": {},\n  "updateProfileFirstLogin": false\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": [],
  "updateProfileFirstLogin": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
http DELETE {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias
http DELETE {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/export");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/export")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias/export HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/export")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/export")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/export');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/export'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/export" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/export');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/export');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/export' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/export' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/export")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/export"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/export
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/export
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/export
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 mapper by id for the identity provider
{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias/mapper-types HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/mapper-types")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mapper-types
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias/mappers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/mappers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 factory for that provider id
{{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id
QUERY PARAMS

provider_id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/providers/:provider_id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/providers/:provider_id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/providers/:provider_id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/providers/:provider_id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/providers/:provider_id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/providers/:provider_id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/providers/:provider_id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/providers/:provider_id
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/providers/:provider_id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 the identity provider
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 JSON body
{{baseUrl}}/admin/realms/:realm/identity-provider/import-config
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/identity-provider/import-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, "{}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/identity-provider/import-config" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/import-config"
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}}/admin/realms/:realm/identity-provider/import-config"),
    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}}/admin/realms/:realm/identity-provider/import-config");
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}}/admin/realms/:realm/identity-provider/import-config"

	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/admin/realms/:realm/identity-provider/import-config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/identity-provider/import-config")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/identity-provider/import-config"))
    .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}}/admin/realms/:realm/identity-provider/import-config")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/identity-provider/import-config")
  .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}}/admin/realms/:realm/identity-provider/import-config');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/import-config',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/import-config';
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}}/admin/realms/:realm/identity-provider/import-config',
  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}}/admin/realms/:realm/identity-provider/import-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/admin/realms/:realm/identity-provider/import-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({}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/import-config',
  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}}/admin/realms/:realm/identity-provider/import-config');

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}}/admin/realms/:realm/identity-provider/import-config',
  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}}/admin/realms/:realm/identity-provider/import-config';
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}}/admin/realms/:realm/identity-provider/import-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}}/admin/realms/:realm/identity-provider/import-config" 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}}/admin/realms/: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",
  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}}/admin/realms/:realm/identity-provider/import-config', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/import-config');
$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}}/admin/realms/:realm/identity-provider/import-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}}/admin/realms/:realm/identity-provider/import-config' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/import-config' -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/admin/realms/:realm/identity-provider/import-config", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/import-config"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/identity-provider/import-config"

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}}/admin/realms/:realm/identity-provider/import-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 = "{}"

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/admin/realms/:realm/identity-provider/import-config') 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}}/admin/realms/:realm/identity-provider/import-config";

    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}}/admin/realms/:realm/identity-provider/import-config \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/identity-provider/import-config \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/import-config
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}}/admin/realms/:realm/identity-provider/import-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()
GET List identity providers
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/instances")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/instances")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/identity-provider/instances"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/instances
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 Reaload keys for the identity provider if the provider supports it, -true- is returned if reload was performed, -false- if not.
{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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/admin/realms/:realm/identity-provider/instances/:alias/reload-keys HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/reload-keys")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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/admin/realms/:realm/identity-provider/instances/:alias/reload-keys') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-keys
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/reload-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()
GET Return object stating whether client Authorization permissions have been initialized or not and a reference (2)
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions
http GET {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions" {:content-type :json
                                                                                                                         :form-params {:enabled false
                                                                                                                                       :resource ""
                                                                                                                                       :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/identity-provider/instances/:alias/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
QUERY PARAMS

id
BODY json

{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id" {:content-type :json
                                                                                                              :form-params {:id ""
                                                                                                                            :name ""
                                                                                                                            :identityProviderAlias ""
                                                                                                                            :identityProviderMapper ""
                                                                                                                            :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 107

{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","identityProviderAlias":"","identityProviderMapper":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "identityProviderAlias": "",\n  "identityProviderMapper": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    config: {}
  },
  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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  identityProviderAlias: '',
  identityProviderMapper: '',
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    identityProviderAlias: '',
    identityProviderMapper: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","identityProviderAlias":"","identityProviderMapper":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"identityProviderAlias": @"",
                              @"identityProviderMapper": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'identityProviderAlias' => '',
    'identityProviderMapper' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id', [
  'body' => '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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([
  'id' => '',
  'name' => '',
  'identityProviderAlias' => '',
  'identityProviderMapper' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'identityProviderAlias' => '',
  'identityProviderMapper' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id"

payload = {
    "id": "",
    "name": "",
    "identityProviderAlias": "",
    "identityProviderMapper": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"identityProviderAlias\": \"\",\n  \"identityProviderMapper\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id";

    let payload = json!({
        "id": "",
        "name": "",
        "identityProviderAlias": "",
        "identityProviderMapper": "",
        "config": 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}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "identityProviderAlias": "",\n  "identityProviderMapper": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias/mappers/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "identityProviderAlias": "",
  "identityProviderMapper": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias
BODY json

{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias" {:content-type :json
                                                                                                  :form-params {:alias ""
                                                                                                                :displayName ""
                                                                                                                :internalId ""
                                                                                                                :providerId ""
                                                                                                                :enabled false
                                                                                                                :updateProfileFirstLoginMode ""
                                                                                                                :trustEmail false
                                                                                                                :storeToken false
                                                                                                                :addReadTokenRoleOnCreate false
                                                                                                                :authenticateByDefault false
                                                                                                                :linkOnly false
                                                                                                                :hideOnLogin false
                                                                                                                :firstBrokerLoginFlowAlias ""
                                                                                                                :postBrokerLoginFlowAlias ""
                                                                                                                :organizationId ""
                                                                                                                :config {}
                                                                                                                :updateProfileFirstLogin false}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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}}/admin/realms/:realm/identity-provider/instances/:alias"),
    Content = new StringContent("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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}}/admin/realms/:realm/identity-provider/instances/:alias");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias"

	payload := strings.NewReader("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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/admin/realms/:realm/identity-provider/instances/:alias HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 442

{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias")
  .header("content-type", "application/json")
  .body("{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}")
  .asString();
const data = JSON.stringify({
  alias: '',
  displayName: '',
  internalId: '',
  providerId: '',
  enabled: false,
  updateProfileFirstLoginMode: '',
  trustEmail: false,
  storeToken: false,
  addReadTokenRoleOnCreate: false,
  authenticateByDefault: false,
  linkOnly: false,
  hideOnLogin: false,
  firstBrokerLoginFlowAlias: '',
  postBrokerLoginFlowAlias: '',
  organizationId: '',
  config: {},
  updateProfileFirstLogin: 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}}/admin/realms/:realm/identity-provider/instances/:alias');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    displayName: '',
    internalId: '',
    providerId: '',
    enabled: false,
    updateProfileFirstLoginMode: '',
    trustEmail: false,
    storeToken: false,
    addReadTokenRoleOnCreate: false,
    authenticateByDefault: false,
    linkOnly: false,
    hideOnLogin: false,
    firstBrokerLoginFlowAlias: '',
    postBrokerLoginFlowAlias: '',
    organizationId: '',
    config: {},
    updateProfileFirstLogin: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":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}}/admin/realms/:realm/identity-provider/instances/:alias',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "alias": "",\n  "displayName": "",\n  "internalId": "",\n  "providerId": "",\n  "enabled": false,\n  "updateProfileFirstLoginMode": "",\n  "trustEmail": false,\n  "storeToken": false,\n  "addReadTokenRoleOnCreate": false,\n  "authenticateByDefault": false,\n  "linkOnly": false,\n  "hideOnLogin": false,\n  "firstBrokerLoginFlowAlias": "",\n  "postBrokerLoginFlowAlias": "",\n  "organizationId": "",\n  "config": {},\n  "updateProfileFirstLogin": 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  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  alias: '',
  displayName: '',
  internalId: '',
  providerId: '',
  enabled: false,
  updateProfileFirstLoginMode: '',
  trustEmail: false,
  storeToken: false,
  addReadTokenRoleOnCreate: false,
  authenticateByDefault: false,
  linkOnly: false,
  hideOnLogin: false,
  firstBrokerLoginFlowAlias: '',
  postBrokerLoginFlowAlias: '',
  organizationId: '',
  config: {},
  updateProfileFirstLogin: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias',
  headers: {'content-type': 'application/json'},
  body: {
    alias: '',
    displayName: '',
    internalId: '',
    providerId: '',
    enabled: false,
    updateProfileFirstLoginMode: '',
    trustEmail: false,
    storeToken: false,
    addReadTokenRoleOnCreate: false,
    authenticateByDefault: false,
    linkOnly: false,
    hideOnLogin: false,
    firstBrokerLoginFlowAlias: '',
    postBrokerLoginFlowAlias: '',
    organizationId: '',
    config: {},
    updateProfileFirstLogin: 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}}/admin/realms/:realm/identity-provider/instances/:alias');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  alias: '',
  displayName: '',
  internalId: '',
  providerId: '',
  enabled: false,
  updateProfileFirstLoginMode: '',
  trustEmail: false,
  storeToken: false,
  addReadTokenRoleOnCreate: false,
  authenticateByDefault: false,
  linkOnly: false,
  hideOnLogin: false,
  firstBrokerLoginFlowAlias: '',
  postBrokerLoginFlowAlias: '',
  organizationId: '',
  config: {},
  updateProfileFirstLogin: 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}}/admin/realms/:realm/identity-provider/instances/:alias',
  headers: {'content-type': 'application/json'},
  data: {
    alias: '',
    displayName: '',
    internalId: '',
    providerId: '',
    enabled: false,
    updateProfileFirstLoginMode: '',
    trustEmail: false,
    storeToken: false,
    addReadTokenRoleOnCreate: false,
    authenticateByDefault: false,
    linkOnly: false,
    hideOnLogin: false,
    firstBrokerLoginFlowAlias: '',
    postBrokerLoginFlowAlias: '',
    organizationId: '',
    config: {},
    updateProfileFirstLogin: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":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": @"",
                              @"displayName": @"",
                              @"internalId": @"",
                              @"providerId": @"",
                              @"enabled": @NO,
                              @"updateProfileFirstLoginMode": @"",
                              @"trustEmail": @NO,
                              @"storeToken": @NO,
                              @"addReadTokenRoleOnCreate": @NO,
                              @"authenticateByDefault": @NO,
                              @"linkOnly": @NO,
                              @"hideOnLogin": @NO,
                              @"firstBrokerLoginFlowAlias": @"",
                              @"postBrokerLoginFlowAlias": @"",
                              @"organizationId": @"",
                              @"config": @{  },
                              @"updateProfileFirstLogin": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'alias' => '',
    'displayName' => '',
    'internalId' => '',
    'providerId' => '',
    'enabled' => null,
    'updateProfileFirstLoginMode' => '',
    'trustEmail' => null,
    'storeToken' => null,
    'addReadTokenRoleOnCreate' => null,
    'authenticateByDefault' => null,
    'linkOnly' => null,
    'hideOnLogin' => null,
    'firstBrokerLoginFlowAlias' => '',
    'postBrokerLoginFlowAlias' => '',
    'organizationId' => '',
    'config' => [
        
    ],
    'updateProfileFirstLogin' => 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}}/admin/realms/:realm/identity-provider/instances/:alias', [
  'body' => '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'alias' => '',
  'displayName' => '',
  'internalId' => '',
  'providerId' => '',
  'enabled' => null,
  'updateProfileFirstLoginMode' => '',
  'trustEmail' => null,
  'storeToken' => null,
  'addReadTokenRoleOnCreate' => null,
  'authenticateByDefault' => null,
  'linkOnly' => null,
  'hideOnLogin' => null,
  'firstBrokerLoginFlowAlias' => '',
  'postBrokerLoginFlowAlias' => '',
  'organizationId' => '',
  'config' => [
    
  ],
  'updateProfileFirstLogin' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'alias' => '',
  'displayName' => '',
  'internalId' => '',
  'providerId' => '',
  'enabled' => null,
  'updateProfileFirstLoginMode' => '',
  'trustEmail' => null,
  'storeToken' => null,
  'addReadTokenRoleOnCreate' => null,
  'authenticateByDefault' => null,
  'linkOnly' => null,
  'hideOnLogin' => null,
  'firstBrokerLoginFlowAlias' => '',
  'postBrokerLoginFlowAlias' => '',
  'organizationId' => '',
  'config' => [
    
  ],
  'updateProfileFirstLogin' => null
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/identity-provider/instances/:alias' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/identity-provider/instances/:alias", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias"

payload = {
    "alias": "",
    "displayName": "",
    "internalId": "",
    "providerId": "",
    "enabled": False,
    "updateProfileFirstLoginMode": "",
    "trustEmail": False,
    "storeToken": False,
    "addReadTokenRoleOnCreate": False,
    "authenticateByDefault": False,
    "linkOnly": False,
    "hideOnLogin": False,
    "firstBrokerLoginFlowAlias": "",
    "postBrokerLoginFlowAlias": "",
    "organizationId": "",
    "config": {},
    "updateProfileFirstLogin": False
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias"

payload <- "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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}}/admin/realms/: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  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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/admin/realms/:realm/identity-provider/instances/:alias') do |req|
  req.body = "{\n  \"alias\": \"\",\n  \"displayName\": \"\",\n  \"internalId\": \"\",\n  \"providerId\": \"\",\n  \"enabled\": false,\n  \"updateProfileFirstLoginMode\": \"\",\n  \"trustEmail\": false,\n  \"storeToken\": false,\n  \"addReadTokenRoleOnCreate\": false,\n  \"authenticateByDefault\": false,\n  \"linkOnly\": false,\n  \"hideOnLogin\": false,\n  \"firstBrokerLoginFlowAlias\": \"\",\n  \"postBrokerLoginFlowAlias\": \"\",\n  \"organizationId\": \"\",\n  \"config\": {},\n  \"updateProfileFirstLogin\": 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}}/admin/realms/:realm/identity-provider/instances/:alias";

    let payload = json!({
        "alias": "",
        "displayName": "",
        "internalId": "",
        "providerId": "",
        "enabled": false,
        "updateProfileFirstLoginMode": "",
        "trustEmail": false,
        "storeToken": false,
        "addReadTokenRoleOnCreate": false,
        "authenticateByDefault": false,
        "linkOnly": false,
        "hideOnLogin": false,
        "firstBrokerLoginFlowAlias": "",
        "postBrokerLoginFlowAlias": "",
        "organizationId": "",
        "config": json!({}),
        "updateProfileFirstLogin": 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}}/admin/realms/:realm/identity-provider/instances/:alias \
  --header 'content-type: application/json' \
  --data '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}'
echo '{
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": {},
  "updateProfileFirstLogin": false
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "alias": "",\n  "displayName": "",\n  "internalId": "",\n  "providerId": "",\n  "enabled": false,\n  "updateProfileFirstLoginMode": "",\n  "trustEmail": false,\n  "storeToken": false,\n  "addReadTokenRoleOnCreate": false,\n  "authenticateByDefault": false,\n  "linkOnly": false,\n  "hideOnLogin": false,\n  "firstBrokerLoginFlowAlias": "",\n  "postBrokerLoginFlowAlias": "",\n  "organizationId": "",\n  "config": {},\n  "updateProfileFirstLogin": false\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/identity-provider/instances/:alias
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "alias": "",
  "displayName": "",
  "internalId": "",
  "providerId": "",
  "enabled": false,
  "updateProfileFirstLoginMode": "",
  "trustEmail": false,
  "storeToken": false,
  "addReadTokenRoleOnCreate": false,
  "authenticateByDefault": false,
  "linkOnly": false,
  "hideOnLogin": false,
  "firstBrokerLoginFlowAlias": "",
  "postBrokerLoginFlowAlias": "",
  "organizationId": "",
  "config": [],
  "updateProfileFirstLogin": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-keys
{{baseUrl}}/admin/realms/:realm/keys
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/keys");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/keys")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/keys");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm/keys HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/keys")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/keys")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/keys');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/admin/realms/:realm/keys'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/keys',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/keys" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/keys');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/keys');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/keys');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/keys' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/keys' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/keys")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/keys"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/keys"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/keys') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/keys
http GET {{baseUrl}}/admin/realms/:realm/keys
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/keys
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 Adds the identity provider with the specified id to the organization
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers"

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}}/admin/realms/:realm/organizations/:org-id/identity-providers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers"

	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/admin/realms/:realm/organizations/:org-id/identity-providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers"))
    .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}}/admin/realms/:realm/organizations/:org-id/identity-providers")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers';
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}}/admin/realms/:realm/organizations/:org-id/identity-providers',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-id/identity-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: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers';
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}}/admin/realms/:realm/organizations/:org-id/identity-providers"]
                                                       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}}/admin/realms/:realm/organizations/:org-id/identity-providers" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers",
  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}}/admin/realms/:realm/organizations/:org-id/identity-providers');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/organizations/:org-id/identity-providers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers")

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/admin/realms/:realm/organizations/:org-id/identity-providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers";

    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}}/admin/realms/:realm/organizations/:org-id/identity-providers
http POST {{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST Adds the user with the specified id as a member of the organization
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members"

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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members"

	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/admin/realms/:realm/organizations/:org-id/members HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members"))
    .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}}/admin/realms/:realm/organizations/:org-id/members")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/organizations/:org-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('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members';
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}}/admin/realms/:realm/organizations/:org-id/members',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-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: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-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: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members';
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}}/admin/realms/:realm/organizations/:org-id/members"]
                                                       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}}/admin/realms/:realm/organizations/:org-id/members" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members",
  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}}/admin/realms/:realm/organizations/:org-id/members');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/organizations/:org-id/members")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members")

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/admin/realms/:realm/organizations/:org-id/members') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members";

    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}}/admin/realms/:realm/organizations/:org-id/members
http POST {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members")! 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 Creates a new organization
{{baseUrl}}/admin/realms/:realm/organizations
BODY json

{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations");

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  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/organizations" {:content-type :json
                                                                              :form-params {:id ""
                                                                                            :name ""
                                                                                            :alias ""
                                                                                            :enabled false
                                                                                            :description ""
                                                                                            :redirectUrl ""
                                                                                            :attributes {}
                                                                                            :domains [{:name ""
                                                                                                       :verified false}]
                                                                                            :members [{:id ""
                                                                                                       :username ""
                                                                                                       :firstName ""
                                                                                                       :lastName ""
                                                                                                       :email ""
                                                                                                       :emailVerified false
                                                                                                       :attributes {}
                                                                                                       :userProfileMetadata {:attributes [{:name ""
                                                                                                                                           :displayName ""
                                                                                                                                           :required false
                                                                                                                                           :readOnly false
                                                                                                                                           :annotations {}
                                                                                                                                           :validators {}
                                                                                                                                           :group ""
                                                                                                                                           :multivalued false
                                                                                                                                           :defaultValue ""}]
                                                                                                                             :groups [{:name ""
                                                                                                                                       :displayHeader ""
                                                                                                                                       :displayDescription ""
                                                                                                                                       :annotations {}}]}
                                                                                                       :enabled false
                                                                                                       :self ""
                                                                                                       :origin ""
                                                                                                       :createdTimestamp 0
                                                                                                       :totp false
                                                                                                       :federationLink ""
                                                                                                       :serviceAccountClientId ""
                                                                                                       :credentials [{:id ""
                                                                                                                      :type ""
                                                                                                                      :userLabel ""
                                                                                                                      :createdDate 0
                                                                                                                      :secretData ""
                                                                                                                      :credentialData ""
                                                                                                                      :priority 0
                                                                                                                      :value ""
                                                                                                                      :temporary false
                                                                                                                      :device ""
                                                                                                                      :hashedSaltedValue ""
                                                                                                                      :salt ""
                                                                                                                      :hashIterations 0
                                                                                                                      :counter 0
                                                                                                                      :algorithm ""
                                                                                                                      :digits 0
                                                                                                                      :period 0
                                                                                                                      :config {}
                                                                                                                      :federationLink ""}]
                                                                                                       :disableableCredentialTypes []
                                                                                                       :requiredActions []
                                                                                                       :federatedIdentities [{:identityProvider ""
                                                                                                                              :userId ""
                                                                                                                              :userName ""}]
                                                                                                       :realmRoles []
                                                                                                       :clientRoles {}
                                                                                                       :clientConsents [{:clientId ""
                                                                                                                         :grantedClientScopes []
                                                                                                                         :createdDate 0
                                                                                                                         :lastUpdatedDate 0
                                                                                                                         :grantedRealmRoles []}]
                                                                                                       :notBefore 0
                                                                                                       :applicationRoles {}
                                                                                                       :socialLinks [{:socialProvider ""
                                                                                                                      :socialUserId ""
                                                                                                                      :socialUsername ""}]
                                                                                                       :groups []
                                                                                                       :access {}
                                                                                                       :membershipType ""}]
                                                                                            :identityProviders [{:alias ""
                                                                                                                 :displayName ""
                                                                                                                 :internalId ""
                                                                                                                 :providerId ""
                                                                                                                 :enabled false
                                                                                                                 :updateProfileFirstLoginMode ""
                                                                                                                 :trustEmail false
                                                                                                                 :storeToken false
                                                                                                                 :addReadTokenRoleOnCreate false
                                                                                                                 :authenticateByDefault false
                                                                                                                 :linkOnly false
                                                                                                                 :hideOnLogin false
                                                                                                                 :firstBrokerLoginFlowAlias ""
                                                                                                                 :postBrokerLoginFlowAlias ""
                                                                                                                 :organizationId ""
                                                                                                                 :config {}
                                                                                                                 :updateProfileFirstLogin false}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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}}/admin/realms/:realm/organizations"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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}}/admin/realms/:realm/organizations");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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/admin/realms/:realm/organizations HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2946

{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/organizations")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/organizations")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  alias: '',
  enabled: false,
  description: '',
  redirectUrl: '',
  attributes: {},
  domains: [
    {
      name: '',
      verified: false
    }
  ],
  members: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [
          {
            name: '',
            displayHeader: '',
            displayDescription: '',
            annotations: {}
          }
        ]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [
        {
          socialProvider: '',
          socialUserId: '',
          socialUsername: ''
        }
      ],
      groups: [],
      access: {},
      membershipType: ''
    }
  ],
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: 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}}/admin/realms/:realm/organizations');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    alias: '',
    enabled: false,
    description: '',
    redirectUrl: '',
    attributes: {},
    domains: [{name: '', verified: false}],
    members: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {},
        membershipType: ''
      }
    ],
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: false
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","alias":"","enabled":false,"description":"","redirectUrl":"","attributes":{},"domains":[{"name":"","verified":false}],"members":[{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{},"membershipType":""}],"identityProviders":[{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":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}}/admin/realms/:realm/organizations',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "alias": "",\n  "enabled": false,\n  "description": "",\n  "redirectUrl": "",\n  "attributes": {},\n  "domains": [\n    {\n      "name": "",\n      "verified": false\n    }\n  ],\n  "members": [\n    {\n      "id": "",\n      "username": "",\n      "firstName": "",\n      "lastName": "",\n      "email": "",\n      "emailVerified": false,\n      "attributes": {},\n      "userProfileMetadata": {\n        "attributes": [\n          {\n            "name": "",\n            "displayName": "",\n            "required": false,\n            "readOnly": false,\n            "annotations": {},\n            "validators": {},\n            "group": "",\n            "multivalued": false,\n            "defaultValue": ""\n          }\n        ],\n        "groups": [\n          {\n            "name": "",\n            "displayHeader": "",\n            "displayDescription": "",\n            "annotations": {}\n          }\n        ]\n      },\n      "enabled": false,\n      "self": "",\n      "origin": "",\n      "createdTimestamp": 0,\n      "totp": false,\n      "federationLink": "",\n      "serviceAccountClientId": "",\n      "credentials": [\n        {\n          "id": "",\n          "type": "",\n          "userLabel": "",\n          "createdDate": 0,\n          "secretData": "",\n          "credentialData": "",\n          "priority": 0,\n          "value": "",\n          "temporary": false,\n          "device": "",\n          "hashedSaltedValue": "",\n          "salt": "",\n          "hashIterations": 0,\n          "counter": 0,\n          "algorithm": "",\n          "digits": 0,\n          "period": 0,\n          "config": {},\n          "federationLink": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "requiredActions": [],\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "realmRoles": [],\n      "clientRoles": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "grantedClientScopes": [],\n          "createdDate": 0,\n          "lastUpdatedDate": 0,\n          "grantedRealmRoles": []\n        }\n      ],\n      "notBefore": 0,\n      "applicationRoles": {},\n      "socialLinks": [\n        {\n          "socialProvider": "",\n          "socialUserId": "",\n          "socialUsername": ""\n        }\n      ],\n      "groups": [],\n      "access": {},\n      "membershipType": ""\n    }\n  ],\n  "identityProviders": [\n    {\n      "alias": "",\n      "displayName": "",\n      "internalId": "",\n      "providerId": "",\n      "enabled": false,\n      "updateProfileFirstLoginMode": "",\n      "trustEmail": false,\n      "storeToken": false,\n      "addReadTokenRoleOnCreate": false,\n      "authenticateByDefault": false,\n      "linkOnly": false,\n      "hideOnLogin": false,\n      "firstBrokerLoginFlowAlias": "",\n      "postBrokerLoginFlowAlias": "",\n      "organizationId": "",\n      "config": {},\n      "updateProfileFirstLogin": false\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  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations")
  .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/admin/realms/:realm/organizations',
  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({
  id: '',
  name: '',
  alias: '',
  enabled: false,
  description: '',
  redirectUrl: '',
  attributes: {},
  domains: [{name: '', verified: false}],
  members: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
      groups: [],
      access: {},
      membershipType: ''
    }
  ],
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: false
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    alias: '',
    enabled: false,
    description: '',
    redirectUrl: '',
    attributes: {},
    domains: [{name: '', verified: false}],
    members: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {},
        membershipType: ''
      }
    ],
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: 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}}/admin/realms/:realm/organizations');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  alias: '',
  enabled: false,
  description: '',
  redirectUrl: '',
  attributes: {},
  domains: [
    {
      name: '',
      verified: false
    }
  ],
  members: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [
          {
            name: '',
            displayHeader: '',
            displayDescription: '',
            annotations: {}
          }
        ]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [
        {
          socialProvider: '',
          socialUserId: '',
          socialUsername: ''
        }
      ],
      groups: [],
      access: {},
      membershipType: ''
    }
  ],
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: 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}}/admin/realms/:realm/organizations',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    alias: '',
    enabled: false,
    description: '',
    redirectUrl: '',
    attributes: {},
    domains: [{name: '', verified: false}],
    members: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {},
        membershipType: ''
      }
    ],
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: false
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","alias":"","enabled":false,"description":"","redirectUrl":"","attributes":{},"domains":[{"name":"","verified":false}],"members":[{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{},"membershipType":""}],"identityProviders":[{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":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 = @{ @"id": @"",
                              @"name": @"",
                              @"alias": @"",
                              @"enabled": @NO,
                              @"description": @"",
                              @"redirectUrl": @"",
                              @"attributes": @{  },
                              @"domains": @[ @{ @"name": @"", @"verified": @NO } ],
                              @"members": @[ @{ @"id": @"", @"username": @"", @"firstName": @"", @"lastName": @"", @"email": @"", @"emailVerified": @NO, @"attributes": @{  }, @"userProfileMetadata": @{ @"attributes": @[ @{ @"name": @"", @"displayName": @"", @"required": @NO, @"readOnly": @NO, @"annotations": @{  }, @"validators": @{  }, @"group": @"", @"multivalued": @NO, @"defaultValue": @"" } ], @"groups": @[ @{ @"name": @"", @"displayHeader": @"", @"displayDescription": @"", @"annotations": @{  } } ] }, @"enabled": @NO, @"self": @"", @"origin": @"", @"createdTimestamp": @0, @"totp": @NO, @"federationLink": @"", @"serviceAccountClientId": @"", @"credentials": @[ @{ @"id": @"", @"type": @"", @"userLabel": @"", @"createdDate": @0, @"secretData": @"", @"credentialData": @"", @"priority": @0, @"value": @"", @"temporary": @NO, @"device": @"", @"hashedSaltedValue": @"", @"salt": @"", @"hashIterations": @0, @"counter": @0, @"algorithm": @"", @"digits": @0, @"period": @0, @"config": @{  }, @"federationLink": @"" } ], @"disableableCredentialTypes": @[  ], @"requiredActions": @[  ], @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ], @"realmRoles": @[  ], @"clientRoles": @{  }, @"clientConsents": @[ @{ @"clientId": @"", @"grantedClientScopes": @[  ], @"createdDate": @0, @"lastUpdatedDate": @0, @"grantedRealmRoles": @[  ] } ], @"notBefore": @0, @"applicationRoles": @{  }, @"socialLinks": @[ @{ @"socialProvider": @"", @"socialUserId": @"", @"socialUsername": @"" } ], @"groups": @[  ], @"access": @{  }, @"membershipType": @"" } ],
                              @"identityProviders": @[ @{ @"alias": @"", @"displayName": @"", @"internalId": @"", @"providerId": @"", @"enabled": @NO, @"updateProfileFirstLoginMode": @"", @"trustEmail": @NO, @"storeToken": @NO, @"addReadTokenRoleOnCreate": @NO, @"authenticateByDefault": @NO, @"linkOnly": @NO, @"hideOnLogin": @NO, @"firstBrokerLoginFlowAlias": @"", @"postBrokerLoginFlowAlias": @"", @"organizationId": @"", @"config": @{  }, @"updateProfileFirstLogin": @NO } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/organizations"]
                                                       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}}/admin/realms/:realm/organizations" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations",
  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([
    'id' => '',
    'name' => '',
    'alias' => '',
    'enabled' => null,
    'description' => '',
    'redirectUrl' => '',
    'attributes' => [
        
    ],
    'domains' => [
        [
                'name' => '',
                'verified' => null
        ]
    ],
    'members' => [
        [
                'id' => '',
                'username' => '',
                'firstName' => '',
                'lastName' => '',
                'email' => '',
                'emailVerified' => null,
                'attributes' => [
                                
                ],
                'userProfileMetadata' => [
                                'attributes' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'displayName' => '',
                                                                                                                                'required' => null,
                                                                                                                                'readOnly' => null,
                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'validators' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'group' => '',
                                                                                                                                'multivalued' => null,
                                                                                                                                'defaultValue' => ''
                                                                ]
                                ],
                                'groups' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'displayHeader' => '',
                                                                                                                                'displayDescription' => '',
                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'enabled' => null,
                'self' => '',
                'origin' => '',
                'createdTimestamp' => 0,
                'totp' => null,
                'federationLink' => '',
                'serviceAccountClientId' => '',
                'credentials' => [
                                [
                                                                'id' => '',
                                                                'type' => '',
                                                                'userLabel' => '',
                                                                'createdDate' => 0,
                                                                'secretData' => '',
                                                                'credentialData' => '',
                                                                'priority' => 0,
                                                                'value' => '',
                                                                'temporary' => null,
                                                                'device' => '',
                                                                'hashedSaltedValue' => '',
                                                                'salt' => '',
                                                                'hashIterations' => 0,
                                                                'counter' => 0,
                                                                'algorithm' => '',
                                                                'digits' => 0,
                                                                'period' => 0,
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'federationLink' => ''
                                ]
                ],
                'disableableCredentialTypes' => [
                                
                ],
                'requiredActions' => [
                                
                ],
                'federatedIdentities' => [
                                [
                                                                'identityProvider' => '',
                                                                'userId' => '',
                                                                'userName' => ''
                                ]
                ],
                'realmRoles' => [
                                
                ],
                'clientRoles' => [
                                
                ],
                'clientConsents' => [
                                [
                                                                'clientId' => '',
                                                                'grantedClientScopes' => [
                                                                                                                                
                                                                ],
                                                                'createdDate' => 0,
                                                                'lastUpdatedDate' => 0,
                                                                'grantedRealmRoles' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'notBefore' => 0,
                'applicationRoles' => [
                                
                ],
                'socialLinks' => [
                                [
                                                                'socialProvider' => '',
                                                                'socialUserId' => '',
                                                                'socialUsername' => ''
                                ]
                ],
                'groups' => [
                                
                ],
                'access' => [
                                
                ],
                'membershipType' => ''
        ]
    ],
    'identityProviders' => [
        [
                'alias' => '',
                'displayName' => '',
                'internalId' => '',
                'providerId' => '',
                'enabled' => null,
                'updateProfileFirstLoginMode' => '',
                'trustEmail' => null,
                'storeToken' => null,
                'addReadTokenRoleOnCreate' => null,
                'authenticateByDefault' => null,
                'linkOnly' => null,
                'hideOnLogin' => null,
                'firstBrokerLoginFlowAlias' => '',
                'postBrokerLoginFlowAlias' => '',
                'organizationId' => '',
                'config' => [
                                
                ],
                'updateProfileFirstLogin' => 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}}/admin/realms/:realm/organizations', [
  'body' => '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'alias' => '',
  'enabled' => null,
  'description' => '',
  'redirectUrl' => '',
  'attributes' => [
    
  ],
  'domains' => [
    [
        'name' => '',
        'verified' => null
    ]
  ],
  'members' => [
    [
        'id' => '',
        'username' => '',
        'firstName' => '',
        'lastName' => '',
        'email' => '',
        'emailVerified' => null,
        'attributes' => [
                
        ],
        'userProfileMetadata' => [
                'attributes' => [
                                [
                                                                'name' => '',
                                                                'displayName' => '',
                                                                'required' => null,
                                                                'readOnly' => null,
                                                                'annotations' => [
                                                                                                                                
                                                                ],
                                                                'validators' => [
                                                                                                                                
                                                                ],
                                                                'group' => '',
                                                                'multivalued' => null,
                                                                'defaultValue' => ''
                                ]
                ],
                'groups' => [
                                [
                                                                'name' => '',
                                                                'displayHeader' => '',
                                                                'displayDescription' => '',
                                                                'annotations' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'enabled' => null,
        'self' => '',
        'origin' => '',
        'createdTimestamp' => 0,
        'totp' => null,
        'federationLink' => '',
        'serviceAccountClientId' => '',
        'credentials' => [
                [
                                'id' => '',
                                'type' => '',
                                'userLabel' => '',
                                'createdDate' => 0,
                                'secretData' => '',
                                'credentialData' => '',
                                'priority' => 0,
                                'value' => '',
                                'temporary' => null,
                                'device' => '',
                                'hashedSaltedValue' => '',
                                'salt' => '',
                                'hashIterations' => 0,
                                'counter' => 0,
                                'algorithm' => '',
                                'digits' => 0,
                                'period' => 0,
                                'config' => [
                                                                
                                ],
                                'federationLink' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'requiredActions' => [
                
        ],
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'realmRoles' => [
                
        ],
        'clientRoles' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'grantedClientScopes' => [
                                                                
                                ],
                                'createdDate' => 0,
                                'lastUpdatedDate' => 0,
                                'grantedRealmRoles' => [
                                                                
                                ]
                ]
        ],
        'notBefore' => 0,
        'applicationRoles' => [
                
        ],
        'socialLinks' => [
                [
                                'socialProvider' => '',
                                'socialUserId' => '',
                                'socialUsername' => ''
                ]
        ],
        'groups' => [
                
        ],
        'access' => [
                
        ],
        'membershipType' => ''
    ]
  ],
  'identityProviders' => [
    [
        'alias' => '',
        'displayName' => '',
        'internalId' => '',
        'providerId' => '',
        'enabled' => null,
        'updateProfileFirstLoginMode' => '',
        'trustEmail' => null,
        'storeToken' => null,
        'addReadTokenRoleOnCreate' => null,
        'authenticateByDefault' => null,
        'linkOnly' => null,
        'hideOnLogin' => null,
        'firstBrokerLoginFlowAlias' => '',
        'postBrokerLoginFlowAlias' => '',
        'organizationId' => '',
        'config' => [
                
        ],
        'updateProfileFirstLogin' => null
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'alias' => '',
  'enabled' => null,
  'description' => '',
  'redirectUrl' => '',
  'attributes' => [
    
  ],
  'domains' => [
    [
        'name' => '',
        'verified' => null
    ]
  ],
  'members' => [
    [
        'id' => '',
        'username' => '',
        'firstName' => '',
        'lastName' => '',
        'email' => '',
        'emailVerified' => null,
        'attributes' => [
                
        ],
        'userProfileMetadata' => [
                'attributes' => [
                                [
                                                                'name' => '',
                                                                'displayName' => '',
                                                                'required' => null,
                                                                'readOnly' => null,
                                                                'annotations' => [
                                                                                                                                
                                                                ],
                                                                'validators' => [
                                                                                                                                
                                                                ],
                                                                'group' => '',
                                                                'multivalued' => null,
                                                                'defaultValue' => ''
                                ]
                ],
                'groups' => [
                                [
                                                                'name' => '',
                                                                'displayHeader' => '',
                                                                'displayDescription' => '',
                                                                'annotations' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'enabled' => null,
        'self' => '',
        'origin' => '',
        'createdTimestamp' => 0,
        'totp' => null,
        'federationLink' => '',
        'serviceAccountClientId' => '',
        'credentials' => [
                [
                                'id' => '',
                                'type' => '',
                                'userLabel' => '',
                                'createdDate' => 0,
                                'secretData' => '',
                                'credentialData' => '',
                                'priority' => 0,
                                'value' => '',
                                'temporary' => null,
                                'device' => '',
                                'hashedSaltedValue' => '',
                                'salt' => '',
                                'hashIterations' => 0,
                                'counter' => 0,
                                'algorithm' => '',
                                'digits' => 0,
                                'period' => 0,
                                'config' => [
                                                                
                                ],
                                'federationLink' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'requiredActions' => [
                
        ],
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'realmRoles' => [
                
        ],
        'clientRoles' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'grantedClientScopes' => [
                                                                
                                ],
                                'createdDate' => 0,
                                'lastUpdatedDate' => 0,
                                'grantedRealmRoles' => [
                                                                
                                ]
                ]
        ],
        'notBefore' => 0,
        'applicationRoles' => [
                
        ],
        'socialLinks' => [
                [
                                'socialProvider' => '',
                                'socialUserId' => '',
                                'socialUsername' => ''
                ]
        ],
        'groups' => [
                
        ],
        'access' => [
                
        ],
        'membershipType' => ''
    ]
  ],
  'identityProviders' => [
    [
        'alias' => '',
        'displayName' => '',
        'internalId' => '',
        'providerId' => '',
        'enabled' => null,
        'updateProfileFirstLoginMode' => '',
        'trustEmail' => null,
        'storeToken' => null,
        'addReadTokenRoleOnCreate' => null,
        'authenticateByDefault' => null,
        'linkOnly' => null,
        'hideOnLogin' => null,
        'firstBrokerLoginFlowAlias' => '',
        'postBrokerLoginFlowAlias' => '',
        'organizationId' => '',
        'config' => [
                
        ],
        'updateProfileFirstLogin' => null
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations');
$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}}/admin/realms/:realm/organizations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/organizations", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations"

payload = {
    "id": "",
    "name": "",
    "alias": "",
    "enabled": False,
    "description": "",
    "redirectUrl": "",
    "attributes": {},
    "domains": [
        {
            "name": "",
            "verified": False
        }
    ],
    "members": [
        {
            "id": "",
            "username": "",
            "firstName": "",
            "lastName": "",
            "email": "",
            "emailVerified": False,
            "attributes": {},
            "userProfileMetadata": {
                "attributes": [
                    {
                        "name": "",
                        "displayName": "",
                        "required": False,
                        "readOnly": False,
                        "annotations": {},
                        "validators": {},
                        "group": "",
                        "multivalued": False,
                        "defaultValue": ""
                    }
                ],
                "groups": [
                    {
                        "name": "",
                        "displayHeader": "",
                        "displayDescription": "",
                        "annotations": {}
                    }
                ]
            },
            "enabled": False,
            "self": "",
            "origin": "",
            "createdTimestamp": 0,
            "totp": False,
            "federationLink": "",
            "serviceAccountClientId": "",
            "credentials": [
                {
                    "id": "",
                    "type": "",
                    "userLabel": "",
                    "createdDate": 0,
                    "secretData": "",
                    "credentialData": "",
                    "priority": 0,
                    "value": "",
                    "temporary": False,
                    "device": "",
                    "hashedSaltedValue": "",
                    "salt": "",
                    "hashIterations": 0,
                    "counter": 0,
                    "algorithm": "",
                    "digits": 0,
                    "period": 0,
                    "config": {},
                    "federationLink": ""
                }
            ],
            "disableableCredentialTypes": [],
            "requiredActions": [],
            "federatedIdentities": [
                {
                    "identityProvider": "",
                    "userId": "",
                    "userName": ""
                }
            ],
            "realmRoles": [],
            "clientRoles": {},
            "clientConsents": [
                {
                    "clientId": "",
                    "grantedClientScopes": [],
                    "createdDate": 0,
                    "lastUpdatedDate": 0,
                    "grantedRealmRoles": []
                }
            ],
            "notBefore": 0,
            "applicationRoles": {},
            "socialLinks": [
                {
                    "socialProvider": "",
                    "socialUserId": "",
                    "socialUsername": ""
                }
            ],
            "groups": [],
            "access": {},
            "membershipType": ""
        }
    ],
    "identityProviders": [
        {
            "alias": "",
            "displayName": "",
            "internalId": "",
            "providerId": "",
            "enabled": False,
            "updateProfileFirstLoginMode": "",
            "trustEmail": False,
            "storeToken": False,
            "addReadTokenRoleOnCreate": False,
            "authenticateByDefault": False,
            "linkOnly": False,
            "hideOnLogin": False,
            "firstBrokerLoginFlowAlias": "",
            "postBrokerLoginFlowAlias": "",
            "organizationId": "",
            "config": {},
            "updateProfileFirstLogin": False
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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}}/admin/realms/:realm/organizations")

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  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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/admin/realms/:realm/organizations') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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}}/admin/realms/:realm/organizations";

    let payload = json!({
        "id": "",
        "name": "",
        "alias": "",
        "enabled": false,
        "description": "",
        "redirectUrl": "",
        "attributes": json!({}),
        "domains": (
            json!({
                "name": "",
                "verified": false
            })
        ),
        "members": (
            json!({
                "id": "",
                "username": "",
                "firstName": "",
                "lastName": "",
                "email": "",
                "emailVerified": false,
                "attributes": json!({}),
                "userProfileMetadata": json!({
                    "attributes": (
                        json!({
                            "name": "",
                            "displayName": "",
                            "required": false,
                            "readOnly": false,
                            "annotations": json!({}),
                            "validators": json!({}),
                            "group": "",
                            "multivalued": false,
                            "defaultValue": ""
                        })
                    ),
                    "groups": (
                        json!({
                            "name": "",
                            "displayHeader": "",
                            "displayDescription": "",
                            "annotations": json!({})
                        })
                    )
                }),
                "enabled": false,
                "self": "",
                "origin": "",
                "createdTimestamp": 0,
                "totp": false,
                "federationLink": "",
                "serviceAccountClientId": "",
                "credentials": (
                    json!({
                        "id": "",
                        "type": "",
                        "userLabel": "",
                        "createdDate": 0,
                        "secretData": "",
                        "credentialData": "",
                        "priority": 0,
                        "value": "",
                        "temporary": false,
                        "device": "",
                        "hashedSaltedValue": "",
                        "salt": "",
                        "hashIterations": 0,
                        "counter": 0,
                        "algorithm": "",
                        "digits": 0,
                        "period": 0,
                        "config": json!({}),
                        "federationLink": ""
                    })
                ),
                "disableableCredentialTypes": (),
                "requiredActions": (),
                "federatedIdentities": (
                    json!({
                        "identityProvider": "",
                        "userId": "",
                        "userName": ""
                    })
                ),
                "realmRoles": (),
                "clientRoles": json!({}),
                "clientConsents": (
                    json!({
                        "clientId": "",
                        "grantedClientScopes": (),
                        "createdDate": 0,
                        "lastUpdatedDate": 0,
                        "grantedRealmRoles": ()
                    })
                ),
                "notBefore": 0,
                "applicationRoles": json!({}),
                "socialLinks": (
                    json!({
                        "socialProvider": "",
                        "socialUserId": "",
                        "socialUsername": ""
                    })
                ),
                "groups": (),
                "access": json!({}),
                "membershipType": ""
            })
        ),
        "identityProviders": (
            json!({
                "alias": "",
                "displayName": "",
                "internalId": "",
                "providerId": "",
                "enabled": false,
                "updateProfileFirstLoginMode": "",
                "trustEmail": false,
                "storeToken": false,
                "addReadTokenRoleOnCreate": false,
                "authenticateByDefault": false,
                "linkOnly": false,
                "hideOnLogin": false,
                "firstBrokerLoginFlowAlias": "",
                "postBrokerLoginFlowAlias": "",
                "organizationId": "",
                "config": json!({}),
                "updateProfileFirstLogin": 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}}/admin/realms/:realm/organizations \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}'
echo '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/organizations \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "alias": "",\n  "enabled": false,\n  "description": "",\n  "redirectUrl": "",\n  "attributes": {},\n  "domains": [\n    {\n      "name": "",\n      "verified": false\n    }\n  ],\n  "members": [\n    {\n      "id": "",\n      "username": "",\n      "firstName": "",\n      "lastName": "",\n      "email": "",\n      "emailVerified": false,\n      "attributes": {},\n      "userProfileMetadata": {\n        "attributes": [\n          {\n            "name": "",\n            "displayName": "",\n            "required": false,\n            "readOnly": false,\n            "annotations": {},\n            "validators": {},\n            "group": "",\n            "multivalued": false,\n            "defaultValue": ""\n          }\n        ],\n        "groups": [\n          {\n            "name": "",\n            "displayHeader": "",\n            "displayDescription": "",\n            "annotations": {}\n          }\n        ]\n      },\n      "enabled": false,\n      "self": "",\n      "origin": "",\n      "createdTimestamp": 0,\n      "totp": false,\n      "federationLink": "",\n      "serviceAccountClientId": "",\n      "credentials": [\n        {\n          "id": "",\n          "type": "",\n          "userLabel": "",\n          "createdDate": 0,\n          "secretData": "",\n          "credentialData": "",\n          "priority": 0,\n          "value": "",\n          "temporary": false,\n          "device": "",\n          "hashedSaltedValue": "",\n          "salt": "",\n          "hashIterations": 0,\n          "counter": 0,\n          "algorithm": "",\n          "digits": 0,\n          "period": 0,\n          "config": {},\n          "federationLink": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "requiredActions": [],\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "realmRoles": [],\n      "clientRoles": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "grantedClientScopes": [],\n          "createdDate": 0,\n          "lastUpdatedDate": 0,\n          "grantedRealmRoles": []\n        }\n      ],\n      "notBefore": 0,\n      "applicationRoles": {},\n      "socialLinks": [\n        {\n          "socialProvider": "",\n          "socialUserId": "",\n          "socialUsername": ""\n        }\n      ],\n      "groups": [],\n      "access": {},\n      "membershipType": ""\n    }\n  ],\n  "identityProviders": [\n    {\n      "alias": "",\n      "displayName": "",\n      "internalId": "",\n      "providerId": "",\n      "enabled": false,\n      "updateProfileFirstLoginMode": "",\n      "trustEmail": false,\n      "storeToken": false,\n      "addReadTokenRoleOnCreate": false,\n      "authenticateByDefault": false,\n      "linkOnly": false,\n      "hideOnLogin": false,\n      "firstBrokerLoginFlowAlias": "",\n      "postBrokerLoginFlowAlias": "",\n      "organizationId": "",\n      "config": {},\n      "updateProfileFirstLogin": false\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": [],
  "domains": [
    [
      "name": "",
      "verified": false
    ]
  ],
  "members": [
    [
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": [],
      "userProfileMetadata": [
        "attributes": [
          [
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": [],
            "validators": [],
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          ]
        ],
        "groups": [
          [
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": []
          ]
        ]
      ],
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        [
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": [],
          "federationLink": ""
        ]
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        [
          "identityProvider": "",
          "userId": "",
          "userName": ""
        ]
      ],
      "realmRoles": [],
      "clientRoles": [],
      "clientConsents": [
        [
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        ]
      ],
      "notBefore": 0,
      "applicationRoles": [],
      "socialLinks": [
        [
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        ]
      ],
      "groups": [],
      "access": [],
      "membershipType": ""
    ]
  ],
  "identityProviders": [
    [
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": [],
      "updateProfileFirstLogin": false
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations")! 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 Deletes the organization
{{baseUrl}}/admin/realms/:realm/organizations/:org-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/organizations/:org-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/organizations/:org-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id
http DELETE {{baseUrl}}/admin/realms/:realm/organizations/:org-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/x-www-form-urlencoded");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "email=&firstName=&lastName=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user" {:form-params {:email ""
                                                                                                                        :firstName ""
                                                                                                                        :lastName ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user"
headers = HTTP::Headers{
  "content-type" => "application/x-www-form-urlencoded"
}
reqBody = "email=&firstName=&lastName="

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}}/admin/realms/:realm/organizations/:org-id/members/invite-user"),
    Content = new FormUrlEncodedContent(new Dictionary
    {
        { "email", "" },
        { "firstName", "" },
        { "lastName", "" },
    }),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "email=&firstName=&lastName=", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user"

	payload := strings.NewReader("email=&firstName=&lastName=")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/admin/realms/:realm/organizations/:org-id/members/invite-user HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: example.com
Content-Length: 27

email=&firstName=&lastName=
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user")
  .setHeader("content-type", "application/x-www-form-urlencoded")
  .setBody("email=&firstName=&lastName=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user"))
    .header("content-type", "application/x-www-form-urlencoded")
    .method("POST", HttpRequest.BodyPublishers.ofString("email=&firstName=&lastName="))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "email=&firstName=&lastName=");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user")
  .post(body)
  .addHeader("content-type", "application/x-www-form-urlencoded")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user")
  .header("content-type", "application/x-www-form-urlencoded")
  .body("email=&firstName=&lastName=")
  .asString();
const data = 'email=&firstName=&lastName=';

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user');
xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');

xhr.send(data);
import axios from 'axios';

const encodedParams = new URLSearchParams();
encodedParams.set('email', '');
encodedParams.set('firstName', '');
encodedParams.set('lastName', '');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  data: encodedParams,
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams({email: '', firstName: '', lastName: ''})
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user',
  method: 'POST',
  headers: {
    'content-type': 'application/x-www-form-urlencoded'
  },
  data: {
    email: '',
    firstName: '',
    lastName: ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/x-www-form-urlencoded")
val body = RequestBody.create(mediaType, "email=&firstName=&lastName=")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user")
  .post(body)
  .addHeader("content-type", "application/x-www-form-urlencoded")
  .build()

val response = client.newCall(request).execute()
const qs = require('querystring');
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-id/members/invite-user',
  headers: {
    'content-type': 'application/x-www-form-urlencoded'
  }
};

const req = http.request(options, function (res) {
  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(qs.stringify({email: '', firstName: '', lastName: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  form: {email: '', firstName: '', lastName: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user');

req.headers({
  'content-type': 'application/x-www-form-urlencoded'
});

req.form({
  email: '',
  firstName: '',
  lastName: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;
const { URLSearchParams } = require('url');

const encodedParams = new URLSearchParams();
encodedParams.set('email', '');
encodedParams.set('firstName', '');
encodedParams.set('lastName', '');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  data: encodedParams,
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const { URLSearchParams } = require('url');
const fetch = require('node-fetch');

const encodedParams = new URLSearchParams();
encodedParams.set('email', '');
encodedParams.set('firstName', '');
encodedParams.set('lastName', '');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  body: encodedParams
};

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/x-www-form-urlencoded" };

NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"email=" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&firstName=" dataUsingEncoding:NSUTF8StringEncoding]];
[postData appendData:[@"&lastName=" dataUsingEncoding:NSUTF8StringEncoding]];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user"]
                                                       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}}/admin/realms/:realm/organizations/:org-id/members/invite-user" in
let headers = Header.add (Header.init ()) "content-type" "application/x-www-form-urlencoded" in
let body = Cohttp_lwt_body.of_string "email=&firstName=&lastName=" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "email=&firstName=&lastName=",
  CURLOPT_HTTPHEADER => [
    "content-type: application/x-www-form-urlencoded"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user', [
  'form_params' => [
    'email' => '',
    'firstName' => '',
    'lastName' => ''
  ],
  'headers' => [
    'content-type' => 'application/x-www-form-urlencoded',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/x-www-form-urlencoded'
]);

$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields([
  'email' => '',
  'firstName' => '',
  'lastName' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(new http\QueryString([
  'email' => '',
  'firstName' => '',
  'lastName' => ''
]));

$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/x-www-form-urlencoded'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/x-www-form-urlencoded")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user' -Method POST -Headers $headers -ContentType 'application/x-www-form-urlencoded' -Body 'email=&firstName=&lastName='
$headers=@{}
$headers.Add("content-type", "application/x-www-form-urlencoded")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user' -Method POST -Headers $headers -ContentType 'application/x-www-form-urlencoded' -Body 'email=&firstName=&lastName='
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "email=&firstName=&lastName="

headers = { 'content-type': "application/x-www-form-urlencoded" }

conn.request("POST", "/baseUrl/admin/realms/:realm/organizations/:org-id/members/invite-user", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user"

payload = {
    "email": "",
    "firstName": "",
    "lastName": ""
}
headers = {"content-type": "application/x-www-form-urlencoded"}

response = requests.post(url, data=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user"

payload <- "email=&firstName=&lastName="

encode <- "form"

response <- VERB("POST", url, body = payload, content_type("application/x-www-form-urlencoded"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/x-www-form-urlencoded'
request.body = "email=&firstName=&lastName="

response = http.request(request)
puts response.read_body
require 'faraday'

data = {
  :email => "",
  :firstName => "",
  :lastName => "",
}

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/x-www-form-urlencoded'}
)

response = conn.post('/baseUrl/admin/realms/:realm/organizations/:org-id/members/invite-user') do |req|
  req.body = URI.encode_www_form(data)
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user";

    let payload = json!({
        "email": "",
        "firstName": "",
        "lastName": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/x-www-form-urlencoded".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .form(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data email= \
  --data firstName= \
  --data lastName=
http --form POST {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user \
  content-type:application/x-www-form-urlencoded \
  email='' \
  firstName='' \
  lastName=''
wget --quiet \
  --method POST \
  --header 'content-type: application/x-www-form-urlencoded' \
  --body-data 'email=&firstName=&lastName=' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user
import Foundation

let headers = ["content-type": "application/x-www-form-urlencoded"]

let postData = NSMutableData(data: "email=".data(using: String.Encoding.utf8)!)
postData.append("&firstName=".data(using: String.Encoding.utf8)!)
postData.append("&lastName=".data(using: String.Encoding.utf8)!)

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-user")! 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 Invites an existing user to the organization, using the specified user id
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user
BODY formUrlEncoded

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/x-www-form-urlencoded");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "id=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user" {:form-params {:id ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user"
headers = HTTP::Headers{
  "content-type" => "application/x-www-form-urlencoded"
}
reqBody = "id="

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}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user"),
    Content = new FormUrlEncodedContent(new Dictionary
    {
        { "id", "" },
    }),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/x-www-form-urlencoded");
request.AddParameter("application/x-www-form-urlencoded", "id=", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user"

	payload := strings.NewReader("id=")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/admin/realms/:realm/organizations/:org-id/members/invite-existing-user HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: example.com
Content-Length: 3

id=
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user")
  .setHeader("content-type", "application/x-www-form-urlencoded")
  .setBody("id=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user"))
    .header("content-type", "application/x-www-form-urlencoded")
    .method("POST", HttpRequest.BodyPublishers.ofString("id="))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "id=");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user")
  .post(body)
  .addHeader("content-type", "application/x-www-form-urlencoded")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user")
  .header("content-type", "application/x-www-form-urlencoded")
  .body("id=")
  .asString();
const data = '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}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user');
xhr.setRequestHeader('content-type', 'application/x-www-form-urlencoded');

xhr.send(data);
import axios from 'axios';

const encodedParams = new URLSearchParams();
encodedParams.set('id', '');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  data: encodedParams,
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  body: new URLSearchParams({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}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user',
  method: 'POST',
  headers: {
    'content-type': 'application/x-www-form-urlencoded'
  },
  data: {
    id: ''
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/x-www-form-urlencoded")
val body = RequestBody.create(mediaType, "id=")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user")
  .post(body)
  .addHeader("content-type", "application/x-www-form-urlencoded")
  .build()

val response = client.newCall(request).execute()
const qs = require('querystring');
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-id/members/invite-existing-user',
  headers: {
    'content-type': 'application/x-www-form-urlencoded'
  }
};

const req = http.request(options, function (res) {
  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(qs.stringify({id: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  form: {id: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user');

req.headers({
  'content-type': 'application/x-www-form-urlencoded'
});

req.form({
  id: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;
const { URLSearchParams } = require('url');

const encodedParams = new URLSearchParams();
encodedParams.set('id', '');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  data: encodedParams,
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const { URLSearchParams } = require('url');
const fetch = require('node-fetch');

const encodedParams = new URLSearchParams();
encodedParams.set('id', '');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  body: encodedParams
};

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/x-www-form-urlencoded" };

NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"id=" dataUsingEncoding:NSUTF8StringEncoding]];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user"]
                                                       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}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user" in
let headers = Header.add (Header.init ()) "content-type" "application/x-www-form-urlencoded" in
let body = Cohttp_lwt_body.of_string "id=" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "id=",
  CURLOPT_HTTPHEADER => [
    "content-type: application/x-www-form-urlencoded"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user', [
  'form_params' => [
    'id' => ''
  ],
  'headers' => [
    'content-type' => 'application/x-www-form-urlencoded',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/x-www-form-urlencoded'
]);

$request->setContentType('application/x-www-form-urlencoded');
$request->setPostFields([
  'id' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(new http\QueryString([
  'id' => ''
]));

$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user');
$request->setRequestMethod('POST');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/x-www-form-urlencoded'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/x-www-form-urlencoded")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user' -Method POST -Headers $headers -ContentType 'application/x-www-form-urlencoded' -Body 'id='
$headers=@{}
$headers.Add("content-type", "application/x-www-form-urlencoded")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user' -Method POST -Headers $headers -ContentType 'application/x-www-form-urlencoded' -Body 'id='
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "id="

headers = { 'content-type': "application/x-www-form-urlencoded" }

conn.request("POST", "/baseUrl/admin/realms/:realm/organizations/:org-id/members/invite-existing-user", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user"

payload = { "id": "" }
headers = {"content-type": "application/x-www-form-urlencoded"}

response = requests.post(url, data=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user"

payload <- "id="

encode <- "form"

response <- VERB("POST", url, body = payload, content_type("application/x-www-form-urlencoded"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/x-www-form-urlencoded'
request.body = "id="

response = http.request(request)
puts response.read_body
require 'faraday'

data = {
  :id => "",
}

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/x-www-form-urlencoded'}
)

response = conn.post('/baseUrl/admin/realms/:realm/organizations/:org-id/members/invite-existing-user') do |req|
  req.body = URI.encode_www_form(data)
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user";

    let payload = json!({"id": ""});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/x-www-form-urlencoded".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .form(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data id=
http --form POST {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user \
  content-type:application/x-www-form-urlencoded \
  id=''
wget --quiet \
  --method POST \
  --header 'content-type: application/x-www-form-urlencoded' \
  --body-data id= \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user
import Foundation

let headers = ["content-type": "application/x-www-form-urlencoded"]

let postData = NSMutableData(data: "id=".data(using: String.Encoding.utf8)!)

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/invite-existing-user")! 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 Removes the identity provider with the specified alias from the organization
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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/admin/realms/:realm/organizations/:org-id/identity-providers/:alias HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias
http DELETE {{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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()
DELETE Removes the user with the specified id from the organization
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id
QUERY PARAMS

member-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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/admin/realms/:realm/organizations/:org-id/members/:member-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/organizations/:org-id/members/:member-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id
http DELETE {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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 Returns a paginated list of organization members filtered according to the specified parameters
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-id/members HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/:org-id/members")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-id/members') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id/members
http GET {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-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()
GET Returns a paginated list of organizations filtered according to the specified parameters
{{baseUrl}}/admin/realms/:realm/organizations
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations"

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}}/admin/realms/:realm/organizations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations"

	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/admin/realms/:realm/organizations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations"))
    .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}}/admin/realms/:realm/organizations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations")
  .asString();
const 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}}/admin/realms/:realm/organizations');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations';
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}}/admin/realms/:realm/organizations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/organizations'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/organizations');

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}}/admin/realms/:realm/organizations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations';
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}}/admin/realms/:realm/organizations"]
                                                       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}}/admin/realms/:realm/organizations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations",
  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}}/admin/realms/:realm/organizations');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations")

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/admin/realms/:realm/organizations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations";

    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}}/admin/realms/:realm/organizations
http GET {{baseUrl}}/admin/realms/:realm/organizations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Returns all identity providers associated with the organization
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-providers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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/admin/realms/:realm/organizations/:org-id/identity-providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-providers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-providers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-providers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-providers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-providers');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/:org-id/identity-providers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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/admin/realms/:realm/organizations/:org-id/identity-providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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}}/admin/realms/:realm/organizations/:org-id/identity-providers
http GET {{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-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 Returns number of members in the organization.
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/count"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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/admin/realms/:realm/organizations/:org-id/members/count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/count');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/:org-id/members/count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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/admin/realms/:realm/organizations/:org-id/members/count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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}}/admin/realms/:realm/organizations/:org-id/members/count
http GET {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/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 Returns the identity provider associated with the organization that has the specified alias
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias
QUERY PARAMS

alias
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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/admin/realms/:realm/organizations/:org-id/identity-providers/:alias HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/:org-id/identity-providers/:alias")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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/admin/realms/:realm/organizations/:org-id/identity-providers/:alias') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias
http GET {{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/:alias
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/identity-providers/: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 Returns the member of the organization with the specified id
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id
QUERY PARAMS

member-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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/admin/realms/:realm/organizations/:org-id/members/:member-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/:org-id/members/:member-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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/admin/realms/:realm/organizations/:org-id/members/:member-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-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}}/admin/realms/:realm/organizations/:org-id/members/:member-id
http GET {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Returns the organization representation
{{baseUrl}}/admin/realms/:realm/organizations/:org-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/:org-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/:org-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id
http GET {{baseUrl}}/admin/realms/:realm/organizations/:org-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Returns the organizations associated with the user that has the specified id (GET)
{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations
QUERY PARAMS

member-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations"

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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations"

	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/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations"))
    .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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations")
  .asString();
const 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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations';
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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations');

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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations';
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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations"]
                                                       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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations",
  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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations")

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/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations";

    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}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations
http GET {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-id/members/:member-id/organizations")! 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 organizations associated with the user that has the specified id
{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations
QUERY PARAMS

member-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations"

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}}/admin/realms/:realm/organizations/members/:member-id/organizations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations"

	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/admin/realms/:realm/organizations/members/:member-id/organizations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations"))
    .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}}/admin/realms/:realm/organizations/members/:member-id/organizations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations")
  .asString();
const 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}}/admin/realms/:realm/organizations/members/:member-id/organizations');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations';
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}}/admin/realms/:realm/organizations/members/:member-id/organizations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/members/:member-id/organizations',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/organizations/members/:member-id/organizations'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations');

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}}/admin/realms/:realm/organizations/members/:member-id/organizations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations';
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}}/admin/realms/:realm/organizations/members/:member-id/organizations"]
                                                       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}}/admin/realms/:realm/organizations/members/:member-id/organizations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations",
  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}}/admin/realms/:realm/organizations/members/:member-id/organizations');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/members/:member-id/organizations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations")

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/admin/realms/:realm/organizations/members/:member-id/organizations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations";

    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}}/admin/realms/:realm/organizations/members/:member-id/organizations
http GET {{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/members/:member-id/organizations")! 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 organizations counts.
{{baseUrl}}/admin/realms/:realm/organizations/count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/organizations/count")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/count"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/organizations/count");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/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/admin/realms/:realm/organizations/count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/organizations/count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/count")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/count');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/organizations/count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/organizations/count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/organizations/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/admin/realms/:realm/organizations/count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/organizations/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}}/admin/realms/:realm/organizations/count
http GET {{baseUrl}}/admin/realms/:realm/organizations/count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/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()
PUT Updates the organization
{{baseUrl}}/admin/realms/:realm/organizations/:org-id
BODY json

{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/organizations/:org-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  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/organizations/:org-id" {:content-type :json
                                                                                     :form-params {:id ""
                                                                                                   :name ""
                                                                                                   :alias ""
                                                                                                   :enabled false
                                                                                                   :description ""
                                                                                                   :redirectUrl ""
                                                                                                   :attributes {}
                                                                                                   :domains [{:name ""
                                                                                                              :verified false}]
                                                                                                   :members [{:id ""
                                                                                                              :username ""
                                                                                                              :firstName ""
                                                                                                              :lastName ""
                                                                                                              :email ""
                                                                                                              :emailVerified false
                                                                                                              :attributes {}
                                                                                                              :userProfileMetadata {:attributes [{:name ""
                                                                                                                                                  :displayName ""
                                                                                                                                                  :required false
                                                                                                                                                  :readOnly false
                                                                                                                                                  :annotations {}
                                                                                                                                                  :validators {}
                                                                                                                                                  :group ""
                                                                                                                                                  :multivalued false
                                                                                                                                                  :defaultValue ""}]
                                                                                                                                    :groups [{:name ""
                                                                                                                                              :displayHeader ""
                                                                                                                                              :displayDescription ""
                                                                                                                                              :annotations {}}]}
                                                                                                              :enabled false
                                                                                                              :self ""
                                                                                                              :origin ""
                                                                                                              :createdTimestamp 0
                                                                                                              :totp false
                                                                                                              :federationLink ""
                                                                                                              :serviceAccountClientId ""
                                                                                                              :credentials [{:id ""
                                                                                                                             :type ""
                                                                                                                             :userLabel ""
                                                                                                                             :createdDate 0
                                                                                                                             :secretData ""
                                                                                                                             :credentialData ""
                                                                                                                             :priority 0
                                                                                                                             :value ""
                                                                                                                             :temporary false
                                                                                                                             :device ""
                                                                                                                             :hashedSaltedValue ""
                                                                                                                             :salt ""
                                                                                                                             :hashIterations 0
                                                                                                                             :counter 0
                                                                                                                             :algorithm ""
                                                                                                                             :digits 0
                                                                                                                             :period 0
                                                                                                                             :config {}
                                                                                                                             :federationLink ""}]
                                                                                                              :disableableCredentialTypes []
                                                                                                              :requiredActions []
                                                                                                              :federatedIdentities [{:identityProvider ""
                                                                                                                                     :userId ""
                                                                                                                                     :userName ""}]
                                                                                                              :realmRoles []
                                                                                                              :clientRoles {}
                                                                                                              :clientConsents [{:clientId ""
                                                                                                                                :grantedClientScopes []
                                                                                                                                :createdDate 0
                                                                                                                                :lastUpdatedDate 0
                                                                                                                                :grantedRealmRoles []}]
                                                                                                              :notBefore 0
                                                                                                              :applicationRoles {}
                                                                                                              :socialLinks [{:socialProvider ""
                                                                                                                             :socialUserId ""
                                                                                                                             :socialUsername ""}]
                                                                                                              :groups []
                                                                                                              :access {}
                                                                                                              :membershipType ""}]
                                                                                                   :identityProviders [{:alias ""
                                                                                                                        :displayName ""
                                                                                                                        :internalId ""
                                                                                                                        :providerId ""
                                                                                                                        :enabled false
                                                                                                                        :updateProfileFirstLoginMode ""
                                                                                                                        :trustEmail false
                                                                                                                        :storeToken false
                                                                                                                        :addReadTokenRoleOnCreate false
                                                                                                                        :authenticateByDefault false
                                                                                                                        :linkOnly false
                                                                                                                        :hideOnLogin false
                                                                                                                        :firstBrokerLoginFlowAlias ""
                                                                                                                        :postBrokerLoginFlowAlias ""
                                                                                                                        :organizationId ""
                                                                                                                        :config {}
                                                                                                                        :updateProfileFirstLogin false}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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}}/admin/realms/:realm/organizations/:org-id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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}}/admin/realms/:realm/organizations/:org-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/organizations/:org-id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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/admin/realms/:realm/organizations/:org-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2946

{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/organizations/:org-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/organizations/:org-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/organizations/:org-id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  alias: '',
  enabled: false,
  description: '',
  redirectUrl: '',
  attributes: {},
  domains: [
    {
      name: '',
      verified: false
    }
  ],
  members: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [
          {
            name: '',
            displayHeader: '',
            displayDescription: '',
            annotations: {}
          }
        ]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [
        {
          socialProvider: '',
          socialUserId: '',
          socialUsername: ''
        }
      ],
      groups: [],
      access: {},
      membershipType: ''
    }
  ],
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: 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}}/admin/realms/:realm/organizations/:org-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    alias: '',
    enabled: false,
    description: '',
    redirectUrl: '',
    attributes: {},
    domains: [{name: '', verified: false}],
    members: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {},
        membershipType: ''
      }
    ],
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: false
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","alias":"","enabled":false,"description":"","redirectUrl":"","attributes":{},"domains":[{"name":"","verified":false}],"members":[{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{},"membershipType":""}],"identityProviders":[{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":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}}/admin/realms/:realm/organizations/:org-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "alias": "",\n  "enabled": false,\n  "description": "",\n  "redirectUrl": "",\n  "attributes": {},\n  "domains": [\n    {\n      "name": "",\n      "verified": false\n    }\n  ],\n  "members": [\n    {\n      "id": "",\n      "username": "",\n      "firstName": "",\n      "lastName": "",\n      "email": "",\n      "emailVerified": false,\n      "attributes": {},\n      "userProfileMetadata": {\n        "attributes": [\n          {\n            "name": "",\n            "displayName": "",\n            "required": false,\n            "readOnly": false,\n            "annotations": {},\n            "validators": {},\n            "group": "",\n            "multivalued": false,\n            "defaultValue": ""\n          }\n        ],\n        "groups": [\n          {\n            "name": "",\n            "displayHeader": "",\n            "displayDescription": "",\n            "annotations": {}\n          }\n        ]\n      },\n      "enabled": false,\n      "self": "",\n      "origin": "",\n      "createdTimestamp": 0,\n      "totp": false,\n      "federationLink": "",\n      "serviceAccountClientId": "",\n      "credentials": [\n        {\n          "id": "",\n          "type": "",\n          "userLabel": "",\n          "createdDate": 0,\n          "secretData": "",\n          "credentialData": "",\n          "priority": 0,\n          "value": "",\n          "temporary": false,\n          "device": "",\n          "hashedSaltedValue": "",\n          "salt": "",\n          "hashIterations": 0,\n          "counter": 0,\n          "algorithm": "",\n          "digits": 0,\n          "period": 0,\n          "config": {},\n          "federationLink": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "requiredActions": [],\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "realmRoles": [],\n      "clientRoles": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "grantedClientScopes": [],\n          "createdDate": 0,\n          "lastUpdatedDate": 0,\n          "grantedRealmRoles": []\n        }\n      ],\n      "notBefore": 0,\n      "applicationRoles": {},\n      "socialLinks": [\n        {\n          "socialProvider": "",\n          "socialUserId": "",\n          "socialUsername": ""\n        }\n      ],\n      "groups": [],\n      "access": {},\n      "membershipType": ""\n    }\n  ],\n  "identityProviders": [\n    {\n      "alias": "",\n      "displayName": "",\n      "internalId": "",\n      "providerId": "",\n      "enabled": false,\n      "updateProfileFirstLoginMode": "",\n      "trustEmail": false,\n      "storeToken": false,\n      "addReadTokenRoleOnCreate": false,\n      "authenticateByDefault": false,\n      "linkOnly": false,\n      "hideOnLogin": false,\n      "firstBrokerLoginFlowAlias": "",\n      "postBrokerLoginFlowAlias": "",\n      "organizationId": "",\n      "config": {},\n      "updateProfileFirstLogin": false\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  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/organizations/:org-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/admin/realms/:realm/organizations/:org-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({
  id: '',
  name: '',
  alias: '',
  enabled: false,
  description: '',
  redirectUrl: '',
  attributes: {},
  domains: [{name: '', verified: false}],
  members: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
      groups: [],
      access: {},
      membershipType: ''
    }
  ],
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: false
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/organizations/:org-id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    alias: '',
    enabled: false,
    description: '',
    redirectUrl: '',
    attributes: {},
    domains: [{name: '', verified: false}],
    members: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {},
        membershipType: ''
      }
    ],
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: 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}}/admin/realms/:realm/organizations/:org-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  alias: '',
  enabled: false,
  description: '',
  redirectUrl: '',
  attributes: {},
  domains: [
    {
      name: '',
      verified: false
    }
  ],
  members: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [
          {
            name: '',
            displayHeader: '',
            displayDescription: '',
            annotations: {}
          }
        ]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [
        {
          socialProvider: '',
          socialUserId: '',
          socialUsername: ''
        }
      ],
      groups: [],
      access: {},
      membershipType: ''
    }
  ],
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: 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}}/admin/realms/:realm/organizations/:org-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    alias: '',
    enabled: false,
    description: '',
    redirectUrl: '',
    attributes: {},
    domains: [{name: '', verified: false}],
    members: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {},
        membershipType: ''
      }
    ],
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: false
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/organizations/:org-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","alias":"","enabled":false,"description":"","redirectUrl":"","attributes":{},"domains":[{"name":"","verified":false}],"members":[{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{},"membershipType":""}],"identityProviders":[{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":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 = @{ @"id": @"",
                              @"name": @"",
                              @"alias": @"",
                              @"enabled": @NO,
                              @"description": @"",
                              @"redirectUrl": @"",
                              @"attributes": @{  },
                              @"domains": @[ @{ @"name": @"", @"verified": @NO } ],
                              @"members": @[ @{ @"id": @"", @"username": @"", @"firstName": @"", @"lastName": @"", @"email": @"", @"emailVerified": @NO, @"attributes": @{  }, @"userProfileMetadata": @{ @"attributes": @[ @{ @"name": @"", @"displayName": @"", @"required": @NO, @"readOnly": @NO, @"annotations": @{  }, @"validators": @{  }, @"group": @"", @"multivalued": @NO, @"defaultValue": @"" } ], @"groups": @[ @{ @"name": @"", @"displayHeader": @"", @"displayDescription": @"", @"annotations": @{  } } ] }, @"enabled": @NO, @"self": @"", @"origin": @"", @"createdTimestamp": @0, @"totp": @NO, @"federationLink": @"", @"serviceAccountClientId": @"", @"credentials": @[ @{ @"id": @"", @"type": @"", @"userLabel": @"", @"createdDate": @0, @"secretData": @"", @"credentialData": @"", @"priority": @0, @"value": @"", @"temporary": @NO, @"device": @"", @"hashedSaltedValue": @"", @"salt": @"", @"hashIterations": @0, @"counter": @0, @"algorithm": @"", @"digits": @0, @"period": @0, @"config": @{  }, @"federationLink": @"" } ], @"disableableCredentialTypes": @[  ], @"requiredActions": @[  ], @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ], @"realmRoles": @[  ], @"clientRoles": @{  }, @"clientConsents": @[ @{ @"clientId": @"", @"grantedClientScopes": @[  ], @"createdDate": @0, @"lastUpdatedDate": @0, @"grantedRealmRoles": @[  ] } ], @"notBefore": @0, @"applicationRoles": @{  }, @"socialLinks": @[ @{ @"socialProvider": @"", @"socialUserId": @"", @"socialUsername": @"" } ], @"groups": @[  ], @"access": @{  }, @"membershipType": @"" } ],
                              @"identityProviders": @[ @{ @"alias": @"", @"displayName": @"", @"internalId": @"", @"providerId": @"", @"enabled": @NO, @"updateProfileFirstLoginMode": @"", @"trustEmail": @NO, @"storeToken": @NO, @"addReadTokenRoleOnCreate": @NO, @"authenticateByDefault": @NO, @"linkOnly": @NO, @"hideOnLogin": @NO, @"firstBrokerLoginFlowAlias": @"", @"postBrokerLoginFlowAlias": @"", @"organizationId": @"", @"config": @{  }, @"updateProfileFirstLogin": @NO } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/organizations/:org-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([
    'id' => '',
    'name' => '',
    'alias' => '',
    'enabled' => null,
    'description' => '',
    'redirectUrl' => '',
    'attributes' => [
        
    ],
    'domains' => [
        [
                'name' => '',
                'verified' => null
        ]
    ],
    'members' => [
        [
                'id' => '',
                'username' => '',
                'firstName' => '',
                'lastName' => '',
                'email' => '',
                'emailVerified' => null,
                'attributes' => [
                                
                ],
                'userProfileMetadata' => [
                                'attributes' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'displayName' => '',
                                                                                                                                'required' => null,
                                                                                                                                'readOnly' => null,
                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'validators' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'group' => '',
                                                                                                                                'multivalued' => null,
                                                                                                                                'defaultValue' => ''
                                                                ]
                                ],
                                'groups' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'displayHeader' => '',
                                                                                                                                'displayDescription' => '',
                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'enabled' => null,
                'self' => '',
                'origin' => '',
                'createdTimestamp' => 0,
                'totp' => null,
                'federationLink' => '',
                'serviceAccountClientId' => '',
                'credentials' => [
                                [
                                                                'id' => '',
                                                                'type' => '',
                                                                'userLabel' => '',
                                                                'createdDate' => 0,
                                                                'secretData' => '',
                                                                'credentialData' => '',
                                                                'priority' => 0,
                                                                'value' => '',
                                                                'temporary' => null,
                                                                'device' => '',
                                                                'hashedSaltedValue' => '',
                                                                'salt' => '',
                                                                'hashIterations' => 0,
                                                                'counter' => 0,
                                                                'algorithm' => '',
                                                                'digits' => 0,
                                                                'period' => 0,
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'federationLink' => ''
                                ]
                ],
                'disableableCredentialTypes' => [
                                
                ],
                'requiredActions' => [
                                
                ],
                'federatedIdentities' => [
                                [
                                                                'identityProvider' => '',
                                                                'userId' => '',
                                                                'userName' => ''
                                ]
                ],
                'realmRoles' => [
                                
                ],
                'clientRoles' => [
                                
                ],
                'clientConsents' => [
                                [
                                                                'clientId' => '',
                                                                'grantedClientScopes' => [
                                                                                                                                
                                                                ],
                                                                'createdDate' => 0,
                                                                'lastUpdatedDate' => 0,
                                                                'grantedRealmRoles' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'notBefore' => 0,
                'applicationRoles' => [
                                
                ],
                'socialLinks' => [
                                [
                                                                'socialProvider' => '',
                                                                'socialUserId' => '',
                                                                'socialUsername' => ''
                                ]
                ],
                'groups' => [
                                
                ],
                'access' => [
                                
                ],
                'membershipType' => ''
        ]
    ],
    'identityProviders' => [
        [
                'alias' => '',
                'displayName' => '',
                'internalId' => '',
                'providerId' => '',
                'enabled' => null,
                'updateProfileFirstLoginMode' => '',
                'trustEmail' => null,
                'storeToken' => null,
                'addReadTokenRoleOnCreate' => null,
                'authenticateByDefault' => null,
                'linkOnly' => null,
                'hideOnLogin' => null,
                'firstBrokerLoginFlowAlias' => '',
                'postBrokerLoginFlowAlias' => '',
                'organizationId' => '',
                'config' => [
                                
                ],
                'updateProfileFirstLogin' => 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}}/admin/realms/:realm/organizations/:org-id', [
  'body' => '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'alias' => '',
  'enabled' => null,
  'description' => '',
  'redirectUrl' => '',
  'attributes' => [
    
  ],
  'domains' => [
    [
        'name' => '',
        'verified' => null
    ]
  ],
  'members' => [
    [
        'id' => '',
        'username' => '',
        'firstName' => '',
        'lastName' => '',
        'email' => '',
        'emailVerified' => null,
        'attributes' => [
                
        ],
        'userProfileMetadata' => [
                'attributes' => [
                                [
                                                                'name' => '',
                                                                'displayName' => '',
                                                                'required' => null,
                                                                'readOnly' => null,
                                                                'annotations' => [
                                                                                                                                
                                                                ],
                                                                'validators' => [
                                                                                                                                
                                                                ],
                                                                'group' => '',
                                                                'multivalued' => null,
                                                                'defaultValue' => ''
                                ]
                ],
                'groups' => [
                                [
                                                                'name' => '',
                                                                'displayHeader' => '',
                                                                'displayDescription' => '',
                                                                'annotations' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'enabled' => null,
        'self' => '',
        'origin' => '',
        'createdTimestamp' => 0,
        'totp' => null,
        'federationLink' => '',
        'serviceAccountClientId' => '',
        'credentials' => [
                [
                                'id' => '',
                                'type' => '',
                                'userLabel' => '',
                                'createdDate' => 0,
                                'secretData' => '',
                                'credentialData' => '',
                                'priority' => 0,
                                'value' => '',
                                'temporary' => null,
                                'device' => '',
                                'hashedSaltedValue' => '',
                                'salt' => '',
                                'hashIterations' => 0,
                                'counter' => 0,
                                'algorithm' => '',
                                'digits' => 0,
                                'period' => 0,
                                'config' => [
                                                                
                                ],
                                'federationLink' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'requiredActions' => [
                
        ],
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'realmRoles' => [
                
        ],
        'clientRoles' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'grantedClientScopes' => [
                                                                
                                ],
                                'createdDate' => 0,
                                'lastUpdatedDate' => 0,
                                'grantedRealmRoles' => [
                                                                
                                ]
                ]
        ],
        'notBefore' => 0,
        'applicationRoles' => [
                
        ],
        'socialLinks' => [
                [
                                'socialProvider' => '',
                                'socialUserId' => '',
                                'socialUsername' => ''
                ]
        ],
        'groups' => [
                
        ],
        'access' => [
                
        ],
        'membershipType' => ''
    ]
  ],
  'identityProviders' => [
    [
        'alias' => '',
        'displayName' => '',
        'internalId' => '',
        'providerId' => '',
        'enabled' => null,
        'updateProfileFirstLoginMode' => '',
        'trustEmail' => null,
        'storeToken' => null,
        'addReadTokenRoleOnCreate' => null,
        'authenticateByDefault' => null,
        'linkOnly' => null,
        'hideOnLogin' => null,
        'firstBrokerLoginFlowAlias' => '',
        'postBrokerLoginFlowAlias' => '',
        'organizationId' => '',
        'config' => [
                
        ],
        'updateProfileFirstLogin' => null
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'alias' => '',
  'enabled' => null,
  'description' => '',
  'redirectUrl' => '',
  'attributes' => [
    
  ],
  'domains' => [
    [
        'name' => '',
        'verified' => null
    ]
  ],
  'members' => [
    [
        'id' => '',
        'username' => '',
        'firstName' => '',
        'lastName' => '',
        'email' => '',
        'emailVerified' => null,
        'attributes' => [
                
        ],
        'userProfileMetadata' => [
                'attributes' => [
                                [
                                                                'name' => '',
                                                                'displayName' => '',
                                                                'required' => null,
                                                                'readOnly' => null,
                                                                'annotations' => [
                                                                                                                                
                                                                ],
                                                                'validators' => [
                                                                                                                                
                                                                ],
                                                                'group' => '',
                                                                'multivalued' => null,
                                                                'defaultValue' => ''
                                ]
                ],
                'groups' => [
                                [
                                                                'name' => '',
                                                                'displayHeader' => '',
                                                                'displayDescription' => '',
                                                                'annotations' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'enabled' => null,
        'self' => '',
        'origin' => '',
        'createdTimestamp' => 0,
        'totp' => null,
        'federationLink' => '',
        'serviceAccountClientId' => '',
        'credentials' => [
                [
                                'id' => '',
                                'type' => '',
                                'userLabel' => '',
                                'createdDate' => 0,
                                'secretData' => '',
                                'credentialData' => '',
                                'priority' => 0,
                                'value' => '',
                                'temporary' => null,
                                'device' => '',
                                'hashedSaltedValue' => '',
                                'salt' => '',
                                'hashIterations' => 0,
                                'counter' => 0,
                                'algorithm' => '',
                                'digits' => 0,
                                'period' => 0,
                                'config' => [
                                                                
                                ],
                                'federationLink' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'requiredActions' => [
                
        ],
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'realmRoles' => [
                
        ],
        'clientRoles' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'grantedClientScopes' => [
                                                                
                                ],
                                'createdDate' => 0,
                                'lastUpdatedDate' => 0,
                                'grantedRealmRoles' => [
                                                                
                                ]
                ]
        ],
        'notBefore' => 0,
        'applicationRoles' => [
                
        ],
        'socialLinks' => [
                [
                                'socialProvider' => '',
                                'socialUserId' => '',
                                'socialUsername' => ''
                ]
        ],
        'groups' => [
                
        ],
        'access' => [
                
        ],
        'membershipType' => ''
    ]
  ],
  'identityProviders' => [
    [
        'alias' => '',
        'displayName' => '',
        'internalId' => '',
        'providerId' => '',
        'enabled' => null,
        'updateProfileFirstLoginMode' => '',
        'trustEmail' => null,
        'storeToken' => null,
        'addReadTokenRoleOnCreate' => null,
        'authenticateByDefault' => null,
        'linkOnly' => null,
        'hideOnLogin' => null,
        'firstBrokerLoginFlowAlias' => '',
        'postBrokerLoginFlowAlias' => '',
        'organizationId' => '',
        'config' => [
                
        ],
        'updateProfileFirstLogin' => null
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/organizations/:org-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}}/admin/realms/:realm/organizations/:org-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/organizations/:org-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/organizations/:org-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/organizations/:org-id"

payload = {
    "id": "",
    "name": "",
    "alias": "",
    "enabled": False,
    "description": "",
    "redirectUrl": "",
    "attributes": {},
    "domains": [
        {
            "name": "",
            "verified": False
        }
    ],
    "members": [
        {
            "id": "",
            "username": "",
            "firstName": "",
            "lastName": "",
            "email": "",
            "emailVerified": False,
            "attributes": {},
            "userProfileMetadata": {
                "attributes": [
                    {
                        "name": "",
                        "displayName": "",
                        "required": False,
                        "readOnly": False,
                        "annotations": {},
                        "validators": {},
                        "group": "",
                        "multivalued": False,
                        "defaultValue": ""
                    }
                ],
                "groups": [
                    {
                        "name": "",
                        "displayHeader": "",
                        "displayDescription": "",
                        "annotations": {}
                    }
                ]
            },
            "enabled": False,
            "self": "",
            "origin": "",
            "createdTimestamp": 0,
            "totp": False,
            "federationLink": "",
            "serviceAccountClientId": "",
            "credentials": [
                {
                    "id": "",
                    "type": "",
                    "userLabel": "",
                    "createdDate": 0,
                    "secretData": "",
                    "credentialData": "",
                    "priority": 0,
                    "value": "",
                    "temporary": False,
                    "device": "",
                    "hashedSaltedValue": "",
                    "salt": "",
                    "hashIterations": 0,
                    "counter": 0,
                    "algorithm": "",
                    "digits": 0,
                    "period": 0,
                    "config": {},
                    "federationLink": ""
                }
            ],
            "disableableCredentialTypes": [],
            "requiredActions": [],
            "federatedIdentities": [
                {
                    "identityProvider": "",
                    "userId": "",
                    "userName": ""
                }
            ],
            "realmRoles": [],
            "clientRoles": {},
            "clientConsents": [
                {
                    "clientId": "",
                    "grantedClientScopes": [],
                    "createdDate": 0,
                    "lastUpdatedDate": 0,
                    "grantedRealmRoles": []
                }
            ],
            "notBefore": 0,
            "applicationRoles": {},
            "socialLinks": [
                {
                    "socialProvider": "",
                    "socialUserId": "",
                    "socialUsername": ""
                }
            ],
            "groups": [],
            "access": {},
            "membershipType": ""
        }
    ],
    "identityProviders": [
        {
            "alias": "",
            "displayName": "",
            "internalId": "",
            "providerId": "",
            "enabled": False,
            "updateProfileFirstLoginMode": "",
            "trustEmail": False,
            "storeToken": False,
            "addReadTokenRoleOnCreate": False,
            "authenticateByDefault": False,
            "linkOnly": False,
            "hideOnLogin": False,
            "firstBrokerLoginFlowAlias": "",
            "postBrokerLoginFlowAlias": "",
            "organizationId": "",
            "config": {},
            "updateProfileFirstLogin": False
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/organizations/:org-id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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}}/admin/realms/:realm/organizations/:org-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  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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/admin/realms/:realm/organizations/:org-id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"alias\": \"\",\n  \"enabled\": false,\n  \"description\": \"\",\n  \"redirectUrl\": \"\",\n  \"attributes\": {},\n  \"domains\": [\n    {\n      \"name\": \"\",\n      \"verified\": false\n    }\n  ],\n  \"members\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {},\n      \"membershipType\": \"\"\n    }\n  ],\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\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}}/admin/realms/:realm/organizations/:org-id";

    let payload = json!({
        "id": "",
        "name": "",
        "alias": "",
        "enabled": false,
        "description": "",
        "redirectUrl": "",
        "attributes": json!({}),
        "domains": (
            json!({
                "name": "",
                "verified": false
            })
        ),
        "members": (
            json!({
                "id": "",
                "username": "",
                "firstName": "",
                "lastName": "",
                "email": "",
                "emailVerified": false,
                "attributes": json!({}),
                "userProfileMetadata": json!({
                    "attributes": (
                        json!({
                            "name": "",
                            "displayName": "",
                            "required": false,
                            "readOnly": false,
                            "annotations": json!({}),
                            "validators": json!({}),
                            "group": "",
                            "multivalued": false,
                            "defaultValue": ""
                        })
                    ),
                    "groups": (
                        json!({
                            "name": "",
                            "displayHeader": "",
                            "displayDescription": "",
                            "annotations": json!({})
                        })
                    )
                }),
                "enabled": false,
                "self": "",
                "origin": "",
                "createdTimestamp": 0,
                "totp": false,
                "federationLink": "",
                "serviceAccountClientId": "",
                "credentials": (
                    json!({
                        "id": "",
                        "type": "",
                        "userLabel": "",
                        "createdDate": 0,
                        "secretData": "",
                        "credentialData": "",
                        "priority": 0,
                        "value": "",
                        "temporary": false,
                        "device": "",
                        "hashedSaltedValue": "",
                        "salt": "",
                        "hashIterations": 0,
                        "counter": 0,
                        "algorithm": "",
                        "digits": 0,
                        "period": 0,
                        "config": json!({}),
                        "federationLink": ""
                    })
                ),
                "disableableCredentialTypes": (),
                "requiredActions": (),
                "federatedIdentities": (
                    json!({
                        "identityProvider": "",
                        "userId": "",
                        "userName": ""
                    })
                ),
                "realmRoles": (),
                "clientRoles": json!({}),
                "clientConsents": (
                    json!({
                        "clientId": "",
                        "grantedClientScopes": (),
                        "createdDate": 0,
                        "lastUpdatedDate": 0,
                        "grantedRealmRoles": ()
                    })
                ),
                "notBefore": 0,
                "applicationRoles": json!({}),
                "socialLinks": (
                    json!({
                        "socialProvider": "",
                        "socialUserId": "",
                        "socialUsername": ""
                    })
                ),
                "groups": (),
                "access": json!({}),
                "membershipType": ""
            })
        ),
        "identityProviders": (
            json!({
                "alias": "",
                "displayName": "",
                "internalId": "",
                "providerId": "",
                "enabled": false,
                "updateProfileFirstLoginMode": "",
                "trustEmail": false,
                "storeToken": false,
                "addReadTokenRoleOnCreate": false,
                "authenticateByDefault": false,
                "linkOnly": false,
                "hideOnLogin": false,
                "firstBrokerLoginFlowAlias": "",
                "postBrokerLoginFlowAlias": "",
                "organizationId": "",
                "config": json!({}),
                "updateProfileFirstLogin": 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}}/admin/realms/:realm/organizations/:org-id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}'
echo '{
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": {},
  "domains": [
    {
      "name": "",
      "verified": false
    }
  ],
  "members": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {},
      "membershipType": ""
    }
  ],
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ]
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/organizations/:org-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "alias": "",\n  "enabled": false,\n  "description": "",\n  "redirectUrl": "",\n  "attributes": {},\n  "domains": [\n    {\n      "name": "",\n      "verified": false\n    }\n  ],\n  "members": [\n    {\n      "id": "",\n      "username": "",\n      "firstName": "",\n      "lastName": "",\n      "email": "",\n      "emailVerified": false,\n      "attributes": {},\n      "userProfileMetadata": {\n        "attributes": [\n          {\n            "name": "",\n            "displayName": "",\n            "required": false,\n            "readOnly": false,\n            "annotations": {},\n            "validators": {},\n            "group": "",\n            "multivalued": false,\n            "defaultValue": ""\n          }\n        ],\n        "groups": [\n          {\n            "name": "",\n            "displayHeader": "",\n            "displayDescription": "",\n            "annotations": {}\n          }\n        ]\n      },\n      "enabled": false,\n      "self": "",\n      "origin": "",\n      "createdTimestamp": 0,\n      "totp": false,\n      "federationLink": "",\n      "serviceAccountClientId": "",\n      "credentials": [\n        {\n          "id": "",\n          "type": "",\n          "userLabel": "",\n          "createdDate": 0,\n          "secretData": "",\n          "credentialData": "",\n          "priority": 0,\n          "value": "",\n          "temporary": false,\n          "device": "",\n          "hashedSaltedValue": "",\n          "salt": "",\n          "hashIterations": 0,\n          "counter": 0,\n          "algorithm": "",\n          "digits": 0,\n          "period": 0,\n          "config": {},\n          "federationLink": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "requiredActions": [],\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "realmRoles": [],\n      "clientRoles": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "grantedClientScopes": [],\n          "createdDate": 0,\n          "lastUpdatedDate": 0,\n          "grantedRealmRoles": []\n        }\n      ],\n      "notBefore": 0,\n      "applicationRoles": {},\n      "socialLinks": [\n        {\n          "socialProvider": "",\n          "socialUserId": "",\n          "socialUsername": ""\n        }\n      ],\n      "groups": [],\n      "access": {},\n      "membershipType": ""\n    }\n  ],\n  "identityProviders": [\n    {\n      "alias": "",\n      "displayName": "",\n      "internalId": "",\n      "providerId": "",\n      "enabled": false,\n      "updateProfileFirstLoginMode": "",\n      "trustEmail": false,\n      "storeToken": false,\n      "addReadTokenRoleOnCreate": false,\n      "authenticateByDefault": false,\n      "linkOnly": false,\n      "hideOnLogin": false,\n      "firstBrokerLoginFlowAlias": "",\n      "postBrokerLoginFlowAlias": "",\n      "organizationId": "",\n      "config": {},\n      "updateProfileFirstLogin": false\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/organizations/:org-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "alias": "",
  "enabled": false,
  "description": "",
  "redirectUrl": "",
  "attributes": [],
  "domains": [
    [
      "name": "",
      "verified": false
    ]
  ],
  "members": [
    [
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": [],
      "userProfileMetadata": [
        "attributes": [
          [
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": [],
            "validators": [],
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          ]
        ],
        "groups": [
          [
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": []
          ]
        ]
      ],
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        [
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": [],
          "federationLink": ""
        ]
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        [
          "identityProvider": "",
          "userId": "",
          "userName": ""
        ]
      ],
      "realmRoles": [],
      "clientRoles": [],
      "clientConsents": [
        [
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        ]
      ],
      "notBefore": 0,
      "applicationRoles": [],
      "socialLinks": [
        [
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        ]
      ],
      "groups": [],
      "access": [],
      "membershipType": ""
    ]
  ],
  "identityProviders": [
    [
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": [],
      "updateProfileFirstLogin": false
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/organizations/:org-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 a mapper (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models
BODY json

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models" {:content-type :json
                                                                                                             :form-params {:id ""
                                                                                                                           :name ""
                                                                                                                           :protocol ""
                                                                                                                           :protocolMapper ""
                                                                                                                           :consentRequired false
                                                                                                                           :consentText ""
                                                                                                                           :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 135

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  },
  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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"",
                              @"consentRequired": @NO,
                              @"consentText": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models', [
  'body' => '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models"

payload = {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": False,
    "consentText": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models";

    let payload = json!({
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": 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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (POST)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models
BODY json

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models" {:content-type :json
                                                                                                                          :form-params {:id ""
                                                                                                                                        :name ""
                                                                                                                                        :protocol ""
                                                                                                                                        :protocolMapper ""
                                                                                                                                        :consentRequired false
                                                                                                                                        :consentText ""
                                                                                                                                        :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 135

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  },
  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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"",
                              @"consentRequired": @NO,
                              @"consentText": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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([
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models', [
  'body' => '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models"

payload = {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": False,
    "consentText": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models";

    let payload = json!({
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": 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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models
BODY json

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models" {:content-type :json
                                                                                                                       :form-params {:id ""
                                                                                                                                     :name ""
                                                                                                                                     :protocol ""
                                                                                                                                     :protocolMapper ""
                                                                                                                                     :consentRequired false
                                                                                                                                     :consentText ""
                                                                                                                                     :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 135

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  },
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"",
                              @"consentRequired": @NO,
                              @"consentText": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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([
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models', [
  'body' => '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models"

payload = {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": False,
    "consentText": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models";

    let payload = json!({
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": 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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models
BODY json

[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models" {:content-type :json
                                                                                                                 :form-params [{:id ""
                                                                                                                                :name ""
                                                                                                                                :protocol ""
                                                                                                                                :protocolMapper ""
                                                                                                                                :consentRequired false
                                                                                                                                :consentText ""
                                                                                                                                :config {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 157

[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": "",\n    "consentRequired": false,\n    "consentText": "",\n    "config": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models"

payload = [
    {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": False,
        "consentText": "",
        "config": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": false,
            "consentText": "",
            "config": 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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": "",\n    "consentRequired": false,\n    "consentText": "",\n    "config": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/add-models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (POST)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models
BODY json

[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models" {:content-type :json
                                                                                                                              :form-params [{:id ""
                                                                                                                                             :name ""
                                                                                                                                             :protocol ""
                                                                                                                                             :protocolMapper ""
                                                                                                                                             :consentRequired false
                                                                                                                                             :consentText ""
                                                                                                                                             :config {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 157

[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": "",\n    "consentRequired": false,\n    "consentText": "",\n    "config": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models"

payload = [
    {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": False,
        "consentText": "",
        "config": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": false,
            "consentText": "",
            "config": 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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": "",\n    "consentRequired": false,\n    "consentText": "",\n    "config": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/add-models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models
BODY json

[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models" {:content-type :json
                                                                                                                           :form-params [{:id ""
                                                                                                                                          :name ""
                                                                                                                                          :protocol ""
                                                                                                                                          :protocolMapper ""
                                                                                                                                          :consentRequired false
                                                                                                                                          :consentText ""
                                                                                                                                          :config {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 157

[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": "",\n    "consentRequired": false,\n    "consentText": "",\n    "config": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ],
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      protocol: '',
      protocolMapper: '',
      consentRequired: false,
      consentText: '',
      config: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'protocol' => '',
        'protocolMapper' => '',
        'consentRequired' => null,
        'consentText' => '',
        'config' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models"

payload = [
    {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": False,
        "consentText": "",
        "config": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"protocol\": \"\",\n    \"protocolMapper\": \"\",\n    \"consentRequired\": false,\n    \"consentText\": \"\",\n    \"config\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "protocol": "",
            "protocolMapper": "",
            "consentRequired": false,
            "consentText": "",
            "config": 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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "protocol": "",\n    "protocolMapper": "",\n    "consentRequired": false,\n    "consentText": "",\n    "config": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/add-models
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": false,
    "consentText": "",
    "config": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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 mapper (DELETE)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
http DELETE {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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 mapper
{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
http DELETE {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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 mapper by id (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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 by id (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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 by id
{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
QUERY PARAMS

id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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 mappers (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol
QUERY PARAMS

protocol
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/protocol/:protocol
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol
QUERY PARAMS

protocol
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/protocol/:protocol
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol
QUERY PARAMS

protocol
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/protocol/:protocol
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
QUERY PARAMS

id
BODY json

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id" {:content-type :json
                                                                                                                :form-params {:id ""
                                                                                                                              :name ""
                                                                                                                              :protocol ""
                                                                                                                              :protocolMapper ""
                                                                                                                              :consentRequired false
                                                                                                                              :consentText ""
                                                                                                                              :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 135

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  },
  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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"",
                              @"consentRequired": @NO,
                              @"consentText": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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([
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id', [
  'body' => '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"

payload = {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": False,
    "consentText": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id";

    let payload = json!({
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": 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}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/protocol-mappers/models/: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 mapper (PUT)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
QUERY PARAMS

id
BODY json

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id" {:content-type :json
                                                                                                                             :form-params {:id ""
                                                                                                                                           :name ""
                                                                                                                                           :protocol ""
                                                                                                                                           :protocolMapper ""
                                                                                                                                           :consentRequired false
                                                                                                                                           :consentText ""
                                                                                                                                           :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 135

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  },
  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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"",
                              @"consentRequired": @NO,
                              @"consentText": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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([
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id', [
  'body' => '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"

payload = {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": False,
    "consentText": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id";

    let payload = json!({
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": 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}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/protocol-mappers/models/: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 mapper
{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
QUERY PARAMS

id
BODY json

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id" {:content-type :json
                                                                                                                          :form-params {:id ""
                                                                                                                                        :name ""
                                                                                                                                        :protocol ""
                                                                                                                                        :protocolMapper ""
                                                                                                                                        :consentRequired false
                                                                                                                                        :consentText ""
                                                                                                                                        :config {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 135

{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  config: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  },
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  protocol: '',
  protocolMapper: '',
  consentRequired: false,
  consentText: '',
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    protocol: '',
    protocolMapper: '',
    consentRequired: false,
    consentText: '',
    config: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"protocol": @"",
                              @"protocolMapper": @"",
                              @"consentRequired": @NO,
                              @"consentText": @"",
                              @"config": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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([
    'id' => '',
    'name' => '',
    'protocol' => '',
    'protocolMapper' => '',
    'consentRequired' => null,
    'consentText' => '',
    'config' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id', [
  'body' => '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'protocol' => '',
  'protocolMapper' => '',
  'consentRequired' => null,
  'consentText' => '',
  'config' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"

payload = {
    "id": "",
    "name": "",
    "protocol": "",
    "protocolMapper": "",
    "consentRequired": False,
    "consentText": "",
    "config": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"protocol\": \"\",\n  \"protocolMapper\": \"\",\n  \"consentRequired\": false,\n  \"consentText\": \"\",\n  \"config\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id";

    let payload = json!({
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": 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}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}'
echo '{
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "protocol": "",\n  "protocolMapper": "",\n  "consentRequired": false,\n  "consentText": "",\n  "config": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/:id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "protocol": "",
  "protocolMapper": "",
  "consentRequired": false,
  "consentText": "",
  "config": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/protocol-mappers/models/: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 Base path for importing clients under this realm.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-description-converter");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-description-converter")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/client-description-converter HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-description-converter")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-description-converter")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-description-converter');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-description-converter'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-description-converter',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/client-description-converter" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-description-converter');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-description-converter');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-description-converter');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-description-converter' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-description-converter' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/client-description-converter")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-description-converter"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-description-converter"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/client-description-converter') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-description-converter
http POST {{baseUrl}}/admin/realms/:realm/client-description-converter
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-description-converter
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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()
DELETE Delete all admin events
{{baseUrl}}/admin/realms/:realm/admin-events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/admin-events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/admin-events")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/admin-events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/admin-events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/admin-events'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/admin-events" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/admin-events');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/admin-events');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/admin-events' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/admin-events' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/admin-events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/admin-events"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/admin-events"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/admin-events
http DELETE {{baseUrl}}/admin/realms/:realm/admin-events
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/admin-events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/events")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/events");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm/events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/events'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/events" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/events');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/events');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/events' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/events' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/events"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/events"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/events
http DELETE {{baseUrl}}/admin/realms/:realm/events
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm');

xhr.send(data);
import axios from 'axios';

const options = {method: 'DELETE', url: '{{baseUrl}}/admin/realms/:realm'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm
http DELETE {{baseUrl}}/admin/realms/:realm
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view.
{{baseUrl}}/admin/realms
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms")
require "http/client"

url = "{{baseUrl}}/admin/realms"

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}}/admin/realms"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms"

	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/admin/realms HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms"))
    .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}}/admin/realms")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms")
  .asString();
const 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}}/admin/realms');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/admin/realms'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms';
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}}/admin/realms',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms');

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}}/admin/realms'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms';
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}}/admin/realms"]
                                                       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}}/admin/realms" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms",
  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}}/admin/realms');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms")

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/admin/realms') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms";

    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}}/admin/realms
http GET {{baseUrl}}/admin/realms
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms")! 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 admin events Returns all admin events, or filters events based on URL query parameters listed here
{{baseUrl}}/admin/realms/:realm/admin-events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/admin-events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/admin-events")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/admin-events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/admin-events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/admin-events'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/admin-events" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/admin-events');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/admin-events');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/admin-events' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/admin-events' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/admin-events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/admin-events"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/admin-events"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/admin-events') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/admin-events
http GET {{baseUrl}}/admin/realms/:realm/admin-events
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/admin-events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/client-session-stats");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-session-stats")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/client-session-stats HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-session-stats")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-session-stats")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-session-stats');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-session-stats'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-session-stats',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/client-session-stats" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-session-stats');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-session-stats');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-session-stats');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-session-stats' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-session-stats' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-session-stats")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-session-stats"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-session-stats"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/client-session-stats') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/client-session-stats
http GET {{baseUrl}}/admin/realms/:realm/client-session-stats
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-session-stats
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/events");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/events")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/events");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm/events HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/events")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/admin/realms/:realm/events'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/events" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/events');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/events');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/events' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/events' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/events")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/events"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/events"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/events') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events
http GET {{baseUrl}}/admin/realms/:realm/events
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/events
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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. Only name and ids are returned.
{{baseUrl}}/admin/realms/:realm/default-groups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/default-groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/default-groups")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/default-groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/default-groups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/default-groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/default-groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/default-groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/default-groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/default-groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups
http GET {{baseUrl}}/admin/realms/:realm/default-groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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. Only name and ids are returned.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-default-client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/default-default-client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/default-default-client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/default-default-client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes
http GET {{baseUrl}}/admin/realms/:realm/default-default-client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-default-client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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. Only name and ids are returned.
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-optional-client-scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/default-optional-client-scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes
http GET {{baseUrl}}/admin/realms/:realm/default-optional-client-scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-optional-client-scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events/config
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/events/config");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/events/config")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/events/config HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/events/config")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events/config")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events/config');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/events/config'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events/config',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/events/config" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events/config');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/events/config');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/events/config');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/events/config' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/events/config' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/events/config")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/events/config"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/events/config"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/events/config') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events/config
http GET {{baseUrl}}/admin/realms/:realm/events/config
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/events/config
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/admin/realms/:realm'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm
http GET {{baseUrl}}/admin/realms/:realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms")
require "http/client"

url = "{{baseUrl}}/admin/realms"

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}}/admin/realms"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms"

	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/admin/realms HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms"))
    .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}}/admin/realms")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms")
  .asString();
const 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}}/admin/realms');

xhr.send(data);
import axios from 'axios';

const options = {method: 'POST', url: '{{baseUrl}}/admin/realms'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms';
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}}/admin/realms',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/admin/realms');

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}}/admin/realms'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms';
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}}/admin/realms"]
                                                       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}}/admin/realms" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms",
  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}}/admin/realms');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms")

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/admin/realms') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms";

    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}}/admin/realms
http POST {{baseUrl}}/admin/realms
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms")! 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 Import localization from uploaded JSON file
{{baseUrl}}/admin/realms/:realm/localization/:locale
QUERY PARAMS

locale
BODY json

{}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/localization/:locale");

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}}/admin/realms/:realm/localization/:locale" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale"
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}}/admin/realms/:realm/localization/:locale"),
    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}}/admin/realms/:realm/localization/:locale");
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}}/admin/realms/:realm/localization/:locale"

	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/admin/realms/:realm/localization/:locale HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/localization/:locale")
  .setHeader("content-type", "application/json")
  .setBody("{}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/localization/:locale"))
    .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}}/admin/realms/:realm/localization/:locale")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/localization/:locale")
  .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}}/admin/realms/:realm/localization/:locale');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/localization/:locale',
  headers: {'content-type': 'application/json'},
  data: {}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale';
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}}/admin/realms/:realm/localization/:locale',
  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}}/admin/realms/:realm/localization/:locale")
  .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/admin/realms/:realm/localization/:locale',
  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}}/admin/realms/:realm/localization/:locale',
  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}}/admin/realms/:realm/localization/:locale');

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}}/admin/realms/:realm/localization/:locale',
  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}}/admin/realms/:realm/localization/:locale';
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}}/admin/realms/:realm/localization/:locale"]
                                                       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}}/admin/realms/:realm/localization/:locale" 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}}/admin/realms/:realm/localization/:locale",
  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}}/admin/realms/:realm/localization/:locale', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale');
$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}}/admin/realms/:realm/localization/:locale');
$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}}/admin/realms/:realm/localization/:locale' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale' -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/admin/realms/:realm/localization/:locale", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/localization/:locale"

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}}/admin/realms/:realm/localization/:locale")

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/admin/realms/:realm/localization/:locale') 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}}/admin/realms/:realm/localization/:locale";

    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}}/admin/realms/:realm/localization/:locale \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/localization/:locale \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/localization/:locale
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}}/admin/realms/:realm/localization/:locale")! 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 List all client types available in the current realm
{{baseUrl}}/admin/realms/:realm/client-types
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-types");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-types")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-types");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-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/admin/realms/:realm/client-types HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-types")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-types")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/client-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}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-types');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-types');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-types' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-types' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-types")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-types"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-types"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-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/admin/realms/:realm/client-types') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types
http GET {{baseUrl}}/admin/realms/:realm/client-types
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-types
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-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()
POST Partial export of existing realm into a JSON file.
{{baseUrl}}/admin/realms/:realm/partial-export
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/partial-export");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/partial-export")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/partial-export HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/partial-export")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/partial-export")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/partial-export');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/partial-export'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/partial-export',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/partial-export" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/partial-export');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/partial-export');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/partial-export');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/partial-export' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/partial-export' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/partial-export")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/partial-export"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/partial-export"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/partial-export') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/partial-export
http POST {{baseUrl}}/admin/realms/:realm/partial-export
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/partial-export
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/partialImport
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/partialImport");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/partialImport")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/partialImport"

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}}/admin/realms/:realm/partialImport"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/partialImport");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/partialImport"

	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/admin/realms/:realm/partialImport HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/partialImport")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/partialImport"))
    .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}}/admin/realms/:realm/partialImport")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/partialImport")
  .asString();
const 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}}/admin/realms/:realm/partialImport');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/partialImport'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/partialImport';
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}}/admin/realms/:realm/partialImport',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/partialImport")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/partialImport',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/partialImport'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/admin/realms/:realm/partialImport');

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}}/admin/realms/:realm/partialImport'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/partialImport';
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}}/admin/realms/:realm/partialImport"]
                                                       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}}/admin/realms/:realm/partialImport" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/partialImport",
  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}}/admin/realms/:realm/partialImport');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/partialImport');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/partialImport');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/partialImport' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/partialImport' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/partialImport")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/partialImport"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/partialImport"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/partialImport")

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/admin/realms/:realm/partialImport') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/partialImport";

    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}}/admin/realms/:realm/partialImport
http POST {{baseUrl}}/admin/realms/:realm/partialImport
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/partialImport
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/partialImport")! 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 Push the realm's revocation policy to any client that has an admin url associated with it.
{{baseUrl}}/admin/realms/:realm/push-revocation
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/push-revocation");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/push-revocation")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/push-revocation HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/push-revocation")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/push-revocation")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/push-revocation');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/push-revocation'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/push-revocation',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/push-revocation" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/push-revocation');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/push-revocation');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/push-revocation');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/push-revocation' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/push-revocation' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/push-revocation")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/push-revocation"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/push-revocation"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/push-revocation') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/push-revocation
http POST {{baseUrl}}/admin/realms/:realm/push-revocation
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/push-revocation
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/sessions/:session
QUERY PARAMS

session
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/sessions/:session");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/sessions/:session")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/sessions/:session HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/sessions/:session")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/sessions/:session")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/sessions/:session');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/sessions/:session'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/sessions/:session',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/sessions/:session" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/sessions/:session');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/sessions/:session');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/sessions/:session');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/sessions/:session' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/sessions/:session' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/sessions/:session")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/sessions/:session"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/sessions/:session"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/sessions/:session
http DELETE {{baseUrl}}/admin/realms/:realm/sessions/:session
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/sessions/:session
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/logout-all
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/logout-all");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/logout-all")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/logout-all HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/logout-all")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/logout-all")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/logout-all');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/logout-all'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/logout-all',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/logout-all" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/logout-all');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/logout-all');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/logout-all');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/logout-all' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/logout-all' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/logout-all")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/logout-all"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/logout-all"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/logout-all') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/logout-all
http POST {{baseUrl}}/admin/realms/:realm/logout-all
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/logout-all
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 SMTP connection with current logged in user
{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/testSMTPConnection" {:content-type :json})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/testSMTPConnection HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2

{}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/testSMTPConnection")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/testSMTPConnection');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/testSMTPConnection', [
  'body' => '{}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/testSMTPConnection' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/: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/admin/realms/:realm/testSMTPConnection", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/testSMTPConnection"

payload = {}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/testSMTPConnection \
  --header 'content-type: application/json' \
  --data '{}'
echo '{}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/testSMTPConnection \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{}' \
  --output-document \
  - {{baseUrl}}/admin/realms/: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}}/admin/realms/: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 Update a client type
{{baseUrl}}/admin/realms/:realm/client-types
BODY json

{
  "client-types": [
    {
      "name": "",
      "provider": "",
      "parent": "",
      "config": {}
    }
  ],
  "global-client-types": [
    {}
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-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  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\n    {}\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/client-types" {:content-type :json
                                                                            :form-params {:client-types [{:name ""
                                                                                                          :provider ""
                                                                                                          :parent ""
                                                                                                          :config {}}]
                                                                                          :global-client-types [{}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-types"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\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}}/admin/realms/:realm/client-types"),
    Content = new StringContent("{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\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}}/admin/realms/:realm/client-types");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\n    {}\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-types"

	payload := strings.NewReader("{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\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/admin/realms/:realm/client-types HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 157

{
  "client-types": [
    {
      "name": "",
      "provider": "",
      "parent": "",
      "config": {}
    }
  ],
  "global-client-types": [
    {}
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/client-types")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\n    {}\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-types"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\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  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\n    {}\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-types")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/client-types")
  .header("content-type", "application/json")
  .body("{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\n    {}\n  ]\n}")
  .asString();
const data = JSON.stringify({
  'client-types': [
    {
      name: '',
      provider: '',
      parent: '',
      config: {}
    }
  ],
  'global-client-types': [
    {}
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/client-types');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-types',
  headers: {'content-type': 'application/json'},
  data: {
    'client-types': [{name: '', provider: '', parent: '', config: {}}],
    'global-client-types': [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-types';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"client-types":[{"name":"","provider":"","parent":"","config":{}}],"global-client-types":[{}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-types',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "client-types": [\n    {\n      "name": "",\n      "provider": "",\n      "parent": "",\n      "config": {}\n    }\n  ],\n  "global-client-types": [\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  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\n    {}\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-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/admin/realms/:realm/client-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({
  'client-types': [{name: '', provider: '', parent: '', config: {}}],
  'global-client-types': [{}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-types',
  headers: {'content-type': 'application/json'},
  body: {
    'client-types': [{name: '', provider: '', parent: '', config: {}}],
    'global-client-types': [{}]
  },
  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}}/admin/realms/:realm/client-types');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  'client-types': [
    {
      name: '',
      provider: '',
      parent: '',
      config: {}
    }
  ],
  'global-client-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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-types',
  headers: {'content-type': 'application/json'},
  data: {
    'client-types': [{name: '', provider: '', parent: '', config: {}}],
    'global-client-types': [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-types';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"client-types":[{"name":"","provider":"","parent":"","config":{}}],"global-client-types":[{}]}'
};

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 = @{ @"client-types": @[ @{ @"name": @"", @"provider": @"", @"parent": @"", @"config": @{  } } ],
                              @"global-client-types": @[ @{  } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\n    {}\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-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([
    'client-types' => [
        [
                'name' => '',
                'provider' => '',
                'parent' => '',
                'config' => [
                                
                ]
        ]
    ],
    'global-client-types' => [
        [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-types', [
  'body' => '{
  "client-types": [
    {
      "name": "",
      "provider": "",
      "parent": "",
      "config": {}
    }
  ],
  "global-client-types": [
    {}
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-types');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'client-types' => [
    [
        'name' => '',
        'provider' => '',
        'parent' => '',
        'config' => [
                
        ]
    ]
  ],
  'global-client-types' => [
    [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'client-types' => [
    [
        'name' => '',
        'provider' => '',
        'parent' => '',
        'config' => [
                
        ]
    ]
  ],
  'global-client-types' => [
    [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-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}}/admin/realms/:realm/client-types' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "client-types": [
    {
      "name": "",
      "provider": "",
      "parent": "",
      "config": {}
    }
  ],
  "global-client-types": [
    {}
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-types' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "client-types": [
    {
      "name": "",
      "provider": "",
      "parent": "",
      "config": {}
    }
  ],
  "global-client-types": [
    {}
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\n    {}\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/client-types", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-types"

payload = {
    "client-types": [
        {
            "name": "",
            "provider": "",
            "parent": "",
            "config": {}
        }
    ],
    "global-client-types": [{}]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-types"

payload <- "{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\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}}/admin/realms/:realm/client-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  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\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/admin/realms/:realm/client-types') do |req|
  req.body = "{\n  \"client-types\": [\n    {\n      \"name\": \"\",\n      \"provider\": \"\",\n      \"parent\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"global-client-types\": [\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}}/admin/realms/:realm/client-types";

    let payload = json!({
        "client-types": (
            json!({
                "name": "",
                "provider": "",
                "parent": "",
                "config": json!({})
            })
        ),
        "global-client-types": (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}}/admin/realms/:realm/client-types \
  --header 'content-type: application/json' \
  --data '{
  "client-types": [
    {
      "name": "",
      "provider": "",
      "parent": "",
      "config": {}
    }
  ],
  "global-client-types": [
    {}
  ]
}'
echo '{
  "client-types": [
    {
      "name": "",
      "provider": "",
      "parent": "",
      "config": {}
    }
  ],
  "global-client-types": [
    {}
  ]
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/client-types \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "client-types": [\n    {\n      "name": "",\n      "provider": "",\n      "parent": "",\n      "config": {}\n    }\n  ],\n  "global-client-types": [\n    {}\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-types
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "client-types": [
    [
      "name": "",
      "provider": "",
      "parent": "",
      "config": []
    ]
  ],
  "global-client-types": [[]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-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()
PUT Update the events provider Change the events provider and-or its configuration
{{baseUrl}}/admin/realms/:realm/events/config
BODY json

{
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/events/config" {:content-type :json
                                                                             :form-params {:eventsEnabled false
                                                                                           :eventsExpiration 0
                                                                                           :eventsListeners []
                                                                                           :enabledEventTypes []
                                                                                           :adminEventsEnabled false
                                                                                           :adminEventsDetailsEnabled false}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/events/config"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": 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}}/admin/realms/:realm/events/config"),
    Content = new StringContent("{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": 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}}/admin/realms/:realm/events/config");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/events/config"

	payload := strings.NewReader("{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": 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/admin/realms/:realm/events/config HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 174

{
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/events/config")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/events/config"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": 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  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/events/config")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/events/config")
  .header("content-type", "application/json")
  .body("{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false\n}")
  .asString();
const data = JSON.stringify({
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  enabledEventTypes: [],
  adminEventsEnabled: false,
  adminEventsDetailsEnabled: 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}}/admin/realms/:realm/events/config');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/events/config',
  headers: {'content-type': 'application/json'},
  data: {
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    enabledEventTypes: [],
    adminEventsEnabled: false,
    adminEventsDetailsEnabled: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/events/config';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[],"enabledEventTypes":[],"adminEventsEnabled":false,"adminEventsDetailsEnabled":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}}/admin/realms/:realm/events/config',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": [],\n  "enabledEventTypes": [],\n  "adminEventsEnabled": false,\n  "adminEventsDetailsEnabled": 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  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  enabledEventTypes: [],
  adminEventsEnabled: false,
  adminEventsDetailsEnabled: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/events/config',
  headers: {'content-type': 'application/json'},
  body: {
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    enabledEventTypes: [],
    adminEventsEnabled: false,
    adminEventsDetailsEnabled: 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}}/admin/realms/:realm/events/config');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  enabledEventTypes: [],
  adminEventsEnabled: false,
  adminEventsDetailsEnabled: 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}}/admin/realms/:realm/events/config',
  headers: {'content-type': 'application/json'},
  data: {
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    enabledEventTypes: [],
    adminEventsEnabled: false,
    adminEventsDetailsEnabled: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/events/config';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[],"enabledEventTypes":[],"adminEventsEnabled":false,"adminEventsDetailsEnabled":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 = @{ @"eventsEnabled": @NO,
                              @"eventsExpiration": @0,
                              @"eventsListeners": @[  ],
                              @"enabledEventTypes": @[  ],
                              @"adminEventsEnabled": @NO,
                              @"adminEventsDetailsEnabled": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events/config" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'eventsEnabled' => null,
    'eventsExpiration' => 0,
    'eventsListeners' => [
        
    ],
    'enabledEventTypes' => [
        
    ],
    'adminEventsEnabled' => null,
    'adminEventsDetailsEnabled' => 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}}/admin/realms/:realm/events/config', [
  'body' => '{
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/events/config');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ],
  'enabledEventTypes' => [
    
  ],
  'adminEventsEnabled' => null,
  'adminEventsDetailsEnabled' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ],
  'enabledEventTypes' => [
    
  ],
  'adminEventsEnabled' => null,
  'adminEventsDetailsEnabled' => null
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/events/config' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/events/config' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/events/config", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/events/config"

payload = {
    "eventsEnabled": False,
    "eventsExpiration": 0,
    "eventsListeners": [],
    "enabledEventTypes": [],
    "adminEventsEnabled": False,
    "adminEventsDetailsEnabled": False
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/events/config"

payload <- "{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": 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}}/admin/realms/: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  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": 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/admin/realms/:realm/events/config') do |req|
  req.body = "{\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": 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}}/admin/realms/:realm/events/config";

    let payload = json!({
        "eventsEnabled": false,
        "eventsExpiration": 0,
        "eventsListeners": (),
        "enabledEventTypes": (),
        "adminEventsEnabled": false,
        "adminEventsDetailsEnabled": 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}}/admin/realms/:realm/events/config \
  --header 'content-type: application/json' \
  --data '{
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false
}'
echo '{
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/events/config \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": [],\n  "enabledEventTypes": [],\n  "adminEventsEnabled": false,\n  "adminEventsDetailsEnabled": false\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/events/config
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm
BODY json

{
  "id": "",
  "realm": "",
  "displayName": "",
  "displayNameHtml": "",
  "notBefore": 0,
  "defaultSignatureAlgorithm": "",
  "revokeRefreshToken": false,
  "refreshTokenMaxReuse": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "ssoSessionIdleTimeout": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "offlineSessionMaxLifespan": 0,
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clientOfflineSessionIdleTimeout": 0,
  "clientOfflineSessionMaxLifespan": 0,
  "accessCodeLifespan": 0,
  "accessCodeLifespanUserAction": 0,
  "accessCodeLifespanLogin": 0,
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "oauth2DeviceCodeLifespan": 0,
  "oauth2DevicePollingInterval": 0,
  "enabled": false,
  "sslRequired": "",
  "passwordCredentialGrantAllowed": false,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "rememberMe": false,
  "verifyEmail": false,
  "loginWithEmailAllowed": false,
  "duplicateEmailsAllowed": false,
  "resetPasswordAllowed": false,
  "editUsernameAllowed": false,
  "userCacheEnabled": false,
  "realmCacheEnabled": false,
  "bruteForceProtected": false,
  "permanentLockout": false,
  "maxTemporaryLockouts": 0,
  "bruteForceStrategy": "",
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "waitIncrementSeconds": 0,
  "quickLoginCheckMilliSeconds": 0,
  "maxDeltaTimeSeconds": 0,
  "failureFactor": 0,
  "privateKey": "",
  "publicKey": "",
  "certificate": "",
  "codeSecret": "",
  "roles": {
    "realm": [
      {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": {
          "realm": [],
          "client": {},
          "application": {}
        },
        "clientRole": false,
        "containerId": "",
        "attributes": {}
      }
    ],
    "client": {},
    "application": {}
  },
  "groups": [
    {
      "id": "",
      "name": "",
      "description": "",
      "path": "",
      "parentId": "",
      "subGroupCount": 0,
      "subGroups": [],
      "attributes": {},
      "realmRoles": [],
      "clientRoles": {},
      "access": {}
    }
  ],
  "defaultRoles": [],
  "defaultRole": {},
  "adminPermissionsClient": {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": false,
    "enabled": false,
    "alwaysDisplayInConsole": false,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": false,
    "consentRequired": false,
    "standardFlowEnabled": false,
    "implicitFlowEnabled": false,
    "directAccessGrantsEnabled": false,
    "serviceAccountsEnabled": false,
    "authorizationServicesEnabled": false,
    "directGrantsOnly": false,
    "publicClient": false,
    "frontchannelLogout": false,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": false,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
      {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": {}
      }
    ],
    "clientTemplate": "",
    "useTemplateConfig": false,
    "useTemplateScope": false,
    "useTemplateMappers": false,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
      "id": "",
      "clientId": "",
      "name": "",
      "allowRemoteResourceManagement": false,
      "policyEnforcementMode": "",
      "resources": [
        {
          "_id": "",
          "name": "",
          "uris": [],
          "type": "",
          "scopes": [
            {
              "id": "",
              "name": "",
              "iconUri": "",
              "policies": [
                {
                  "id": "",
                  "name": "",
                  "description": "",
                  "type": "",
                  "policies": [],
                  "resources": [],
                  "scopes": [],
                  "logic": "",
                  "decisionStrategy": "",
                  "owner": "",
                  "resourceType": "",
                  "resourcesData": [],
                  "scopesData": [],
                  "config": {}
                }
              ],
              "resources": [],
              "displayName": ""
            }
          ],
          "icon_uri": "",
          "owner": {},
          "ownerManagedAccess": false,
          "displayName": "",
          "attributes": {},
          "uri": "",
          "scopesUma": [
            {}
          ]
        }
      ],
      "policies": [
        {}
      ],
      "scopes": [
        {}
      ],
      "decisionStrategy": "",
      "authorizationSchema": {
        "resourceTypes": {}
      }
    },
    "access": {},
    "origin": ""
  },
  "defaultGroups": [],
  "requiredCredentials": [],
  "passwordPolicy": "",
  "otpPolicyType": "",
  "otpPolicyAlgorithm": "",
  "otpPolicyInitialCounter": 0,
  "otpPolicyDigits": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyCodeReusable": false,
  "otpSupportedApplications": [],
  "localizationTexts": {},
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyRpId": "",
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyUserVerificationRequirement": "",
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyExtraOrigins": [],
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessExtraOrigins": [],
  "webAuthnPolicyPasswordlessPasskeysEnabled": false,
  "clientProfiles": {
    "profiles": [
      {
        "name": "",
        "description": "",
        "executors": [
          {
            "executor": "",
            "configuration": {}
          }
        ]
      }
    ],
    "globalProfiles": [
      {}
    ]
  },
  "clientPolicies": {
    "policies": [
      {
        "name": "",
        "description": "",
        "enabled": false,
        "conditions": [
          {
            "condition": "",
            "configuration": {}
          }
        ],
        "profiles": []
      }
    ],
    "globalPolicies": [
      {}
    ]
  },
  "users": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {}
    }
  ],
  "federatedUsers": [
    {}
  ],
  "scopeMappings": [
    {
      "self": "",
      "client": "",
      "clientTemplate": "",
      "clientScope": "",
      "roles": []
    }
  ],
  "clientScopeMappings": {},
  "clients": [
    {}
  ],
  "clientScopes": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ],
  "defaultDefaultClientScopes": [],
  "defaultOptionalClientScopes": [],
  "browserSecurityHeaders": {},
  "smtpServer": {},
  "userFederationProviders": [
    {
      "id": "",
      "displayName": "",
      "providerName": "",
      "config": {},
      "priority": 0,
      "fullSyncPeriod": 0,
      "changedSyncPeriod": 0,
      "lastSync": 0
    }
  ],
  "userFederationMappers": [
    {
      "id": "",
      "name": "",
      "federationProviderDisplayName": "",
      "federationMapperType": "",
      "config": {}
    }
  ],
  "loginTheme": "",
  "accountTheme": "",
  "adminTheme": "",
  "emailTheme": "",
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false,
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ],
  "identityProviderMappers": [
    {
      "id": "",
      "name": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "config": {}
    }
  ],
  "protocolMappers": [
    {}
  ],
  "components": {},
  "internationalizationEnabled": false,
  "supportedLocales": [],
  "defaultLocale": "",
  "authenticationFlows": [
    {
      "id": "",
      "alias": "",
      "description": "",
      "providerId": "",
      "topLevel": false,
      "builtIn": false,
      "authenticationExecutions": [
        {
          "authenticatorConfig": "",
          "authenticator": "",
          "authenticatorFlow": false,
          "requirement": "",
          "priority": 0,
          "autheticatorFlow": false,
          "flowAlias": "",
          "userSetupAllowed": false
        }
      ]
    }
  ],
  "authenticatorConfig": [
    {
      "id": "",
      "alias": "",
      "config": {}
    }
  ],
  "requiredActions": [
    {
      "alias": "",
      "name": "",
      "providerId": "",
      "enabled": false,
      "defaultAction": false,
      "priority": 0,
      "config": {}
    }
  ],
  "browserFlow": "",
  "registrationFlow": "",
  "directGrantFlow": "",
  "resetCredentialsFlow": "",
  "clientAuthenticationFlow": "",
  "dockerAuthenticationFlow": "",
  "firstBrokerLoginFlow": "",
  "attributes": {},
  "keycloakVersion": "",
  "userManagedAccessAllowed": false,
  "organizationsEnabled": false,
  "organizations": [
    {
      "id": "",
      "name": "",
      "alias": "",
      "enabled": false,
      "description": "",
      "redirectUrl": "",
      "attributes": {},
      "domains": [
        {
          "name": "",
          "verified": false
        }
      ],
      "members": [
        {
          "id": "",
          "username": "",
          "firstName": "",
          "lastName": "",
          "email": "",
          "emailVerified": false,
          "attributes": {},
          "userProfileMetadata": {},
          "enabled": false,
          "self": "",
          "origin": "",
          "createdTimestamp": 0,
          "totp": false,
          "federationLink": "",
          "serviceAccountClientId": "",
          "credentials": [
            {}
          ],
          "disableableCredentialTypes": [],
          "requiredActions": [],
          "federatedIdentities": [
            {}
          ],
          "realmRoles": [],
          "clientRoles": {},
          "clientConsents": [
            {}
          ],
          "notBefore": 0,
          "applicationRoles": {},
          "socialLinks": [
            {}
          ],
          "groups": [],
          "access": {},
          "membershipType": ""
        }
      ],
      "identityProviders": [
        {}
      ]
    }
  ],
  "verifiableCredentialsEnabled": false,
  "adminPermissionsEnabled": false,
  "social": false,
  "updateProfileOnInitialSocialLogin": false,
  "socialProviders": {},
  "applicationScopeMappings": {},
  "applications": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "oauthClients": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "clientTemplates": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "fullScopeAllowed": false,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm" {:content-type :json
                                                               :form-params {:id ""
                                                                             :realm ""
                                                                             :displayName ""
                                                                             :displayNameHtml ""
                                                                             :notBefore 0
                                                                             :defaultSignatureAlgorithm ""
                                                                             :revokeRefreshToken false
                                                                             :refreshTokenMaxReuse 0
                                                                             :accessTokenLifespan 0
                                                                             :accessTokenLifespanForImplicitFlow 0
                                                                             :ssoSessionIdleTimeout 0
                                                                             :ssoSessionMaxLifespan 0
                                                                             :ssoSessionIdleTimeoutRememberMe 0
                                                                             :ssoSessionMaxLifespanRememberMe 0
                                                                             :offlineSessionIdleTimeout 0
                                                                             :offlineSessionMaxLifespanEnabled false
                                                                             :offlineSessionMaxLifespan 0
                                                                             :clientSessionIdleTimeout 0
                                                                             :clientSessionMaxLifespan 0
                                                                             :clientOfflineSessionIdleTimeout 0
                                                                             :clientOfflineSessionMaxLifespan 0
                                                                             :accessCodeLifespan 0
                                                                             :accessCodeLifespanUserAction 0
                                                                             :accessCodeLifespanLogin 0
                                                                             :actionTokenGeneratedByAdminLifespan 0
                                                                             :actionTokenGeneratedByUserLifespan 0
                                                                             :oauth2DeviceCodeLifespan 0
                                                                             :oauth2DevicePollingInterval 0
                                                                             :enabled false
                                                                             :sslRequired ""
                                                                             :passwordCredentialGrantAllowed false
                                                                             :registrationAllowed false
                                                                             :registrationEmailAsUsername false
                                                                             :rememberMe false
                                                                             :verifyEmail false
                                                                             :loginWithEmailAllowed false
                                                                             :duplicateEmailsAllowed false
                                                                             :resetPasswordAllowed false
                                                                             :editUsernameAllowed false
                                                                             :userCacheEnabled false
                                                                             :realmCacheEnabled false
                                                                             :bruteForceProtected false
                                                                             :permanentLockout false
                                                                             :maxTemporaryLockouts 0
                                                                             :bruteForceStrategy ""
                                                                             :maxFailureWaitSeconds 0
                                                                             :minimumQuickLoginWaitSeconds 0
                                                                             :waitIncrementSeconds 0
                                                                             :quickLoginCheckMilliSeconds 0
                                                                             :maxDeltaTimeSeconds 0
                                                                             :failureFactor 0
                                                                             :privateKey ""
                                                                             :publicKey ""
                                                                             :certificate ""
                                                                             :codeSecret ""
                                                                             :roles {:realm [{:id ""
                                                                                              :name ""
                                                                                              :description ""
                                                                                              :scopeParamRequired false
                                                                                              :composite false
                                                                                              :composites {:realm []
                                                                                                           :client {}
                                                                                                           :application {}}
                                                                                              :clientRole false
                                                                                              :containerId ""
                                                                                              :attributes {}}]
                                                                                     :client {}
                                                                                     :application {}}
                                                                             :groups [{:id ""
                                                                                       :name ""
                                                                                       :description ""
                                                                                       :path ""
                                                                                       :parentId ""
                                                                                       :subGroupCount 0
                                                                                       :subGroups []
                                                                                       :attributes {}
                                                                                       :realmRoles []
                                                                                       :clientRoles {}
                                                                                       :access {}}]
                                                                             :defaultRoles []
                                                                             :defaultRole {}
                                                                             :adminPermissionsClient {:id ""
                                                                                                      :clientId ""
                                                                                                      :name ""
                                                                                                      :description ""
                                                                                                      :type ""
                                                                                                      :rootUrl ""
                                                                                                      :adminUrl ""
                                                                                                      :baseUrl ""
                                                                                                      :surrogateAuthRequired false
                                                                                                      :enabled false
                                                                                                      :alwaysDisplayInConsole false
                                                                                                      :clientAuthenticatorType ""
                                                                                                      :secret ""
                                                                                                      :registrationAccessToken ""
                                                                                                      :defaultRoles []
                                                                                                      :redirectUris []
                                                                                                      :webOrigins []
                                                                                                      :notBefore 0
                                                                                                      :bearerOnly false
                                                                                                      :consentRequired false
                                                                                                      :standardFlowEnabled false
                                                                                                      :implicitFlowEnabled false
                                                                                                      :directAccessGrantsEnabled false
                                                                                                      :serviceAccountsEnabled false
                                                                                                      :authorizationServicesEnabled false
                                                                                                      :directGrantsOnly false
                                                                                                      :publicClient false
                                                                                                      :frontchannelLogout false
                                                                                                      :protocol ""
                                                                                                      :attributes {}
                                                                                                      :authenticationFlowBindingOverrides {}
                                                                                                      :fullScopeAllowed false
                                                                                                      :nodeReRegistrationTimeout 0
                                                                                                      :registeredNodes {}
                                                                                                      :protocolMappers [{:id ""
                                                                                                                         :name ""
                                                                                                                         :protocol ""
                                                                                                                         :protocolMapper ""
                                                                                                                         :consentRequired false
                                                                                                                         :consentText ""
                                                                                                                         :config {}}]
                                                                                                      :clientTemplate ""
                                                                                                      :useTemplateConfig false
                                                                                                      :useTemplateScope false
                                                                                                      :useTemplateMappers false
                                                                                                      :defaultClientScopes []
                                                                                                      :optionalClientScopes []
                                                                                                      :authorizationSettings {:id ""
                                                                                                                              :clientId ""
                                                                                                                              :name ""
                                                                                                                              :allowRemoteResourceManagement false
                                                                                                                              :policyEnforcementMode ""
                                                                                                                              :resources [{:_id ""
                                                                                                                                           :name ""
                                                                                                                                           :uris []
                                                                                                                                           :type ""
                                                                                                                                           :scopes [{:id ""
                                                                                                                                                     :name ""
                                                                                                                                                     :iconUri ""
                                                                                                                                                     :policies [{:id ""
                                                                                                                                                                 :name ""
                                                                                                                                                                 :description ""
                                                                                                                                                                 :type ""
                                                                                                                                                                 :policies []
                                                                                                                                                                 :resources []
                                                                                                                                                                 :scopes []
                                                                                                                                                                 :logic ""
                                                                                                                                                                 :decisionStrategy ""
                                                                                                                                                                 :owner ""
                                                                                                                                                                 :resourceType ""
                                                                                                                                                                 :resourcesData []
                                                                                                                                                                 :scopesData []
                                                                                                                                                                 :config {}}]
                                                                                                                                                     :resources []
                                                                                                                                                     :displayName ""}]
                                                                                                                                           :icon_uri ""
                                                                                                                                           :owner {}
                                                                                                                                           :ownerManagedAccess false
                                                                                                                                           :displayName ""
                                                                                                                                           :attributes {}
                                                                                                                                           :uri ""
                                                                                                                                           :scopesUma [{}]}]
                                                                                                                              :policies [{}]
                                                                                                                              :scopes [{}]
                                                                                                                              :decisionStrategy ""
                                                                                                                              :authorizationSchema {:resourceTypes {}}}
                                                                                                      :access {}
                                                                                                      :origin ""}
                                                                             :defaultGroups []
                                                                             :requiredCredentials []
                                                                             :passwordPolicy ""
                                                                             :otpPolicyType ""
                                                                             :otpPolicyAlgorithm ""
                                                                             :otpPolicyInitialCounter 0
                                                                             :otpPolicyDigits 0
                                                                             :otpPolicyLookAheadWindow 0
                                                                             :otpPolicyPeriod 0
                                                                             :otpPolicyCodeReusable false
                                                                             :otpSupportedApplications []
                                                                             :localizationTexts {}
                                                                             :webAuthnPolicyRpEntityName ""
                                                                             :webAuthnPolicySignatureAlgorithms []
                                                                             :webAuthnPolicyRpId ""
                                                                             :webAuthnPolicyAttestationConveyancePreference ""
                                                                             :webAuthnPolicyAuthenticatorAttachment ""
                                                                             :webAuthnPolicyRequireResidentKey ""
                                                                             :webAuthnPolicyUserVerificationRequirement ""
                                                                             :webAuthnPolicyCreateTimeout 0
                                                                             :webAuthnPolicyAvoidSameAuthenticatorRegister false
                                                                             :webAuthnPolicyAcceptableAaguids []
                                                                             :webAuthnPolicyExtraOrigins []
                                                                             :webAuthnPolicyPasswordlessRpEntityName ""
                                                                             :webAuthnPolicyPasswordlessSignatureAlgorithms []
                                                                             :webAuthnPolicyPasswordlessRpId ""
                                                                             :webAuthnPolicyPasswordlessAttestationConveyancePreference ""
                                                                             :webAuthnPolicyPasswordlessAuthenticatorAttachment ""
                                                                             :webAuthnPolicyPasswordlessRequireResidentKey ""
                                                                             :webAuthnPolicyPasswordlessUserVerificationRequirement ""
                                                                             :webAuthnPolicyPasswordlessCreateTimeout 0
                                                                             :webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister false
                                                                             :webAuthnPolicyPasswordlessAcceptableAaguids []
                                                                             :webAuthnPolicyPasswordlessExtraOrigins []
                                                                             :webAuthnPolicyPasswordlessPasskeysEnabled false
                                                                             :clientProfiles {:profiles [{:name ""
                                                                                                          :description ""
                                                                                                          :executors [{:executor ""
                                                                                                                       :configuration {}}]}]
                                                                                              :globalProfiles [{}]}
                                                                             :clientPolicies {:policies [{:name ""
                                                                                                          :description ""
                                                                                                          :enabled false
                                                                                                          :conditions [{:condition ""
                                                                                                                        :configuration {}}]
                                                                                                          :profiles []}]
                                                                                              :globalPolicies [{}]}
                                                                             :users [{:id ""
                                                                                      :username ""
                                                                                      :firstName ""
                                                                                      :lastName ""
                                                                                      :email ""
                                                                                      :emailVerified false
                                                                                      :attributes {}
                                                                                      :userProfileMetadata {:attributes [{:name ""
                                                                                                                          :displayName ""
                                                                                                                          :required false
                                                                                                                          :readOnly false
                                                                                                                          :annotations {}
                                                                                                                          :validators {}
                                                                                                                          :group ""
                                                                                                                          :multivalued false
                                                                                                                          :defaultValue ""}]
                                                                                                            :groups [{:name ""
                                                                                                                      :displayHeader ""
                                                                                                                      :displayDescription ""
                                                                                                                      :annotations {}}]}
                                                                                      :enabled false
                                                                                      :self ""
                                                                                      :origin ""
                                                                                      :createdTimestamp 0
                                                                                      :totp false
                                                                                      :federationLink ""
                                                                                      :serviceAccountClientId ""
                                                                                      :credentials [{:id ""
                                                                                                     :type ""
                                                                                                     :userLabel ""
                                                                                                     :createdDate 0
                                                                                                     :secretData ""
                                                                                                     :credentialData ""
                                                                                                     :priority 0
                                                                                                     :value ""
                                                                                                     :temporary false
                                                                                                     :device ""
                                                                                                     :hashedSaltedValue ""
                                                                                                     :salt ""
                                                                                                     :hashIterations 0
                                                                                                     :counter 0
                                                                                                     :algorithm ""
                                                                                                     :digits 0
                                                                                                     :period 0
                                                                                                     :config {}
                                                                                                     :federationLink ""}]
                                                                                      :disableableCredentialTypes []
                                                                                      :requiredActions []
                                                                                      :federatedIdentities [{:identityProvider ""
                                                                                                             :userId ""
                                                                                                             :userName ""}]
                                                                                      :realmRoles []
                                                                                      :clientRoles {}
                                                                                      :clientConsents [{:clientId ""
                                                                                                        :grantedClientScopes []
                                                                                                        :createdDate 0
                                                                                                        :lastUpdatedDate 0
                                                                                                        :grantedRealmRoles []}]
                                                                                      :notBefore 0
                                                                                      :applicationRoles {}
                                                                                      :socialLinks [{:socialProvider ""
                                                                                                     :socialUserId ""
                                                                                                     :socialUsername ""}]
                                                                                      :groups []
                                                                                      :access {}}]
                                                                             :federatedUsers [{}]
                                                                             :scopeMappings [{:self ""
                                                                                              :client ""
                                                                                              :clientTemplate ""
                                                                                              :clientScope ""
                                                                                              :roles []}]
                                                                             :clientScopeMappings {}
                                                                             :clients [{}]
                                                                             :clientScopes [{:id ""
                                                                                             :name ""
                                                                                             :description ""
                                                                                             :protocol ""
                                                                                             :attributes {}
                                                                                             :protocolMappers [{}]}]
                                                                             :defaultDefaultClientScopes []
                                                                             :defaultOptionalClientScopes []
                                                                             :browserSecurityHeaders {}
                                                                             :smtpServer {}
                                                                             :userFederationProviders [{:id ""
                                                                                                        :displayName ""
                                                                                                        :providerName ""
                                                                                                        :config {}
                                                                                                        :priority 0
                                                                                                        :fullSyncPeriod 0
                                                                                                        :changedSyncPeriod 0
                                                                                                        :lastSync 0}]
                                                                             :userFederationMappers [{:id ""
                                                                                                      :name ""
                                                                                                      :federationProviderDisplayName ""
                                                                                                      :federationMapperType ""
                                                                                                      :config {}}]
                                                                             :loginTheme ""
                                                                             :accountTheme ""
                                                                             :adminTheme ""
                                                                             :emailTheme ""
                                                                             :eventsEnabled false
                                                                             :eventsExpiration 0
                                                                             :eventsListeners []
                                                                             :enabledEventTypes []
                                                                             :adminEventsEnabled false
                                                                             :adminEventsDetailsEnabled false
                                                                             :identityProviders [{:alias ""
                                                                                                  :displayName ""
                                                                                                  :internalId ""
                                                                                                  :providerId ""
                                                                                                  :enabled false
                                                                                                  :updateProfileFirstLoginMode ""
                                                                                                  :trustEmail false
                                                                                                  :storeToken false
                                                                                                  :addReadTokenRoleOnCreate false
                                                                                                  :authenticateByDefault false
                                                                                                  :linkOnly false
                                                                                                  :hideOnLogin false
                                                                                                  :firstBrokerLoginFlowAlias ""
                                                                                                  :postBrokerLoginFlowAlias ""
                                                                                                  :organizationId ""
                                                                                                  :config {}
                                                                                                  :updateProfileFirstLogin false}]
                                                                             :identityProviderMappers [{:id ""
                                                                                                        :name ""
                                                                                                        :identityProviderAlias ""
                                                                                                        :identityProviderMapper ""
                                                                                                        :config {}}]
                                                                             :protocolMappers [{}]
                                                                             :components {}
                                                                             :internationalizationEnabled false
                                                                             :supportedLocales []
                                                                             :defaultLocale ""
                                                                             :authenticationFlows [{:id ""
                                                                                                    :alias ""
                                                                                                    :description ""
                                                                                                    :providerId ""
                                                                                                    :topLevel false
                                                                                                    :builtIn false
                                                                                                    :authenticationExecutions [{:authenticatorConfig ""
                                                                                                                                :authenticator ""
                                                                                                                                :authenticatorFlow false
                                                                                                                                :requirement ""
                                                                                                                                :priority 0
                                                                                                                                :autheticatorFlow false
                                                                                                                                :flowAlias ""
                                                                                                                                :userSetupAllowed false}]}]
                                                                             :authenticatorConfig [{:id ""
                                                                                                    :alias ""
                                                                                                    :config {}}]
                                                                             :requiredActions [{:alias ""
                                                                                                :name ""
                                                                                                :providerId ""
                                                                                                :enabled false
                                                                                                :defaultAction false
                                                                                                :priority 0
                                                                                                :config {}}]
                                                                             :browserFlow ""
                                                                             :registrationFlow ""
                                                                             :directGrantFlow ""
                                                                             :resetCredentialsFlow ""
                                                                             :clientAuthenticationFlow ""
                                                                             :dockerAuthenticationFlow ""
                                                                             :firstBrokerLoginFlow ""
                                                                             :attributes {}
                                                                             :keycloakVersion ""
                                                                             :userManagedAccessAllowed false
                                                                             :organizationsEnabled false
                                                                             :organizations [{:id ""
                                                                                              :name ""
                                                                                              :alias ""
                                                                                              :enabled false
                                                                                              :description ""
                                                                                              :redirectUrl ""
                                                                                              :attributes {}
                                                                                              :domains [{:name ""
                                                                                                         :verified false}]
                                                                                              :members [{:id ""
                                                                                                         :username ""
                                                                                                         :firstName ""
                                                                                                         :lastName ""
                                                                                                         :email ""
                                                                                                         :emailVerified false
                                                                                                         :attributes {}
                                                                                                         :userProfileMetadata {}
                                                                                                         :enabled false
                                                                                                         :self ""
                                                                                                         :origin ""
                                                                                                         :createdTimestamp 0
                                                                                                         :totp false
                                                                                                         :federationLink ""
                                                                                                         :serviceAccountClientId ""
                                                                                                         :credentials [{}]
                                                                                                         :disableableCredentialTypes []
                                                                                                         :requiredActions []
                                                                                                         :federatedIdentities [{}]
                                                                                                         :realmRoles []
                                                                                                         :clientRoles {}
                                                                                                         :clientConsents [{}]
                                                                                                         :notBefore 0
                                                                                                         :applicationRoles {}
                                                                                                         :socialLinks [{}]
                                                                                                         :groups []
                                                                                                         :access {}
                                                                                                         :membershipType ""}]
                                                                                              :identityProviders [{}]}]
                                                                             :verifiableCredentialsEnabled false
                                                                             :adminPermissionsEnabled false
                                                                             :social false
                                                                             :updateProfileOnInitialSocialLogin false
                                                                             :socialProviders {}
                                                                             :applicationScopeMappings {}
                                                                             :applications [{:id ""
                                                                                             :clientId ""
                                                                                             :description ""
                                                                                             :type ""
                                                                                             :rootUrl ""
                                                                                             :adminUrl ""
                                                                                             :baseUrl ""
                                                                                             :surrogateAuthRequired false
                                                                                             :enabled false
                                                                                             :alwaysDisplayInConsole false
                                                                                             :clientAuthenticatorType ""
                                                                                             :secret ""
                                                                                             :registrationAccessToken ""
                                                                                             :defaultRoles []
                                                                                             :redirectUris []
                                                                                             :webOrigins []
                                                                                             :notBefore 0
                                                                                             :bearerOnly false
                                                                                             :consentRequired false
                                                                                             :standardFlowEnabled false
                                                                                             :implicitFlowEnabled false
                                                                                             :directAccessGrantsEnabled false
                                                                                             :serviceAccountsEnabled false
                                                                                             :authorizationServicesEnabled false
                                                                                             :directGrantsOnly false
                                                                                             :publicClient false
                                                                                             :frontchannelLogout false
                                                                                             :protocol ""
                                                                                             :attributes {}
                                                                                             :authenticationFlowBindingOverrides {}
                                                                                             :fullScopeAllowed false
                                                                                             :nodeReRegistrationTimeout 0
                                                                                             :registeredNodes {}
                                                                                             :protocolMappers [{}]
                                                                                             :clientTemplate ""
                                                                                             :useTemplateConfig false
                                                                                             :useTemplateScope false
                                                                                             :useTemplateMappers false
                                                                                             :defaultClientScopes []
                                                                                             :optionalClientScopes []
                                                                                             :authorizationSettings {}
                                                                                             :access {}
                                                                                             :origin ""
                                                                                             :name ""
                                                                                             :claims {}}]
                                                                             :oauthClients [{:id ""
                                                                                             :clientId ""
                                                                                             :description ""
                                                                                             :type ""
                                                                                             :rootUrl ""
                                                                                             :adminUrl ""
                                                                                             :baseUrl ""
                                                                                             :surrogateAuthRequired false
                                                                                             :enabled false
                                                                                             :alwaysDisplayInConsole false
                                                                                             :clientAuthenticatorType ""
                                                                                             :secret ""
                                                                                             :registrationAccessToken ""
                                                                                             :defaultRoles []
                                                                                             :redirectUris []
                                                                                             :webOrigins []
                                                                                             :notBefore 0
                                                                                             :bearerOnly false
                                                                                             :consentRequired false
                                                                                             :standardFlowEnabled false
                                                                                             :implicitFlowEnabled false
                                                                                             :directAccessGrantsEnabled false
                                                                                             :serviceAccountsEnabled false
                                                                                             :authorizationServicesEnabled false
                                                                                             :directGrantsOnly false
                                                                                             :publicClient false
                                                                                             :frontchannelLogout false
                                                                                             :protocol ""
                                                                                             :attributes {}
                                                                                             :authenticationFlowBindingOverrides {}
                                                                                             :fullScopeAllowed false
                                                                                             :nodeReRegistrationTimeout 0
                                                                                             :registeredNodes {}
                                                                                             :protocolMappers [{}]
                                                                                             :clientTemplate ""
                                                                                             :useTemplateConfig false
                                                                                             :useTemplateScope false
                                                                                             :useTemplateMappers false
                                                                                             :defaultClientScopes []
                                                                                             :optionalClientScopes []
                                                                                             :authorizationSettings {}
                                                                                             :access {}
                                                                                             :origin ""
                                                                                             :name ""
                                                                                             :claims {}}]
                                                                             :clientTemplates [{:id ""
                                                                                                :name ""
                                                                                                :description ""
                                                                                                :protocol ""
                                                                                                :fullScopeAllowed false
                                                                                                :bearerOnly false
                                                                                                :consentRequired false
                                                                                                :standardFlowEnabled false
                                                                                                :implicitFlowEnabled false
                                                                                                :directAccessGrantsEnabled false
                                                                                                :serviceAccountsEnabled false
                                                                                                :publicClient false
                                                                                                :frontchannelLogout false
                                                                                                :attributes {}
                                                                                                :protocolMappers [{}]}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\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}}/admin/realms/:realm"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\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}}/admin/realms/:realm");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\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/admin/realms/:realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 17480

{
  "id": "",
  "realm": "",
  "displayName": "",
  "displayNameHtml": "",
  "notBefore": 0,
  "defaultSignatureAlgorithm": "",
  "revokeRefreshToken": false,
  "refreshTokenMaxReuse": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "ssoSessionIdleTimeout": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "offlineSessionMaxLifespan": 0,
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clientOfflineSessionIdleTimeout": 0,
  "clientOfflineSessionMaxLifespan": 0,
  "accessCodeLifespan": 0,
  "accessCodeLifespanUserAction": 0,
  "accessCodeLifespanLogin": 0,
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "oauth2DeviceCodeLifespan": 0,
  "oauth2DevicePollingInterval": 0,
  "enabled": false,
  "sslRequired": "",
  "passwordCredentialGrantAllowed": false,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "rememberMe": false,
  "verifyEmail": false,
  "loginWithEmailAllowed": false,
  "duplicateEmailsAllowed": false,
  "resetPasswordAllowed": false,
  "editUsernameAllowed": false,
  "userCacheEnabled": false,
  "realmCacheEnabled": false,
  "bruteForceProtected": false,
  "permanentLockout": false,
  "maxTemporaryLockouts": 0,
  "bruteForceStrategy": "",
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "waitIncrementSeconds": 0,
  "quickLoginCheckMilliSeconds": 0,
  "maxDeltaTimeSeconds": 0,
  "failureFactor": 0,
  "privateKey": "",
  "publicKey": "",
  "certificate": "",
  "codeSecret": "",
  "roles": {
    "realm": [
      {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": {
          "realm": [],
          "client": {},
          "application": {}
        },
        "clientRole": false,
        "containerId": "",
        "attributes": {}
      }
    ],
    "client": {},
    "application": {}
  },
  "groups": [
    {
      "id": "",
      "name": "",
      "description": "",
      "path": "",
      "parentId": "",
      "subGroupCount": 0,
      "subGroups": [],
      "attributes": {},
      "realmRoles": [],
      "clientRoles": {},
      "access": {}
    }
  ],
  "defaultRoles": [],
  "defaultRole": {},
  "adminPermissionsClient": {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": false,
    "enabled": false,
    "alwaysDisplayInConsole": false,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": false,
    "consentRequired": false,
    "standardFlowEnabled": false,
    "implicitFlowEnabled": false,
    "directAccessGrantsEnabled": false,
    "serviceAccountsEnabled": false,
    "authorizationServicesEnabled": false,
    "directGrantsOnly": false,
    "publicClient": false,
    "frontchannelLogout": false,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": false,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
      {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": {}
      }
    ],
    "clientTemplate": "",
    "useTemplateConfig": false,
    "useTemplateScope": false,
    "useTemplateMappers": false,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
      "id": "",
      "clientId": "",
      "name": "",
      "allowRemoteResourceManagement": false,
      "policyEnforcementMode": "",
      "resources": [
        {
          "_id": "",
          "name": "",
          "uris": [],
          "type": "",
          "scopes": [
            {
              "id": "",
              "name": "",
              "iconUri": "",
              "policies": [
                {
                  "id": "",
                  "name": "",
                  "description": "",
                  "type": "",
                  "policies": [],
                  "resources": [],
                  "scopes": [],
                  "logic": "",
                  "decisionStrategy": "",
                  "owner": "",
                  "resourceType": "",
                  "resourcesData": [],
                  "scopesData": [],
                  "config": {}
                }
              ],
              "resources": [],
              "displayName": ""
            }
          ],
          "icon_uri": "",
          "owner": {},
          "ownerManagedAccess": false,
          "displayName": "",
          "attributes": {},
          "uri": "",
          "scopesUma": [
            {}
          ]
        }
      ],
      "policies": [
        {}
      ],
      "scopes": [
        {}
      ],
      "decisionStrategy": "",
      "authorizationSchema": {
        "resourceTypes": {}
      }
    },
    "access": {},
    "origin": ""
  },
  "defaultGroups": [],
  "requiredCredentials": [],
  "passwordPolicy": "",
  "otpPolicyType": "",
  "otpPolicyAlgorithm": "",
  "otpPolicyInitialCounter": 0,
  "otpPolicyDigits": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyCodeReusable": false,
  "otpSupportedApplications": [],
  "localizationTexts": {},
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyRpId": "",
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyUserVerificationRequirement": "",
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyExtraOrigins": [],
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessExtraOrigins": [],
  "webAuthnPolicyPasswordlessPasskeysEnabled": false,
  "clientProfiles": {
    "profiles": [
      {
        "name": "",
        "description": "",
        "executors": [
          {
            "executor": "",
            "configuration": {}
          }
        ]
      }
    ],
    "globalProfiles": [
      {}
    ]
  },
  "clientPolicies": {
    "policies": [
      {
        "name": "",
        "description": "",
        "enabled": false,
        "conditions": [
          {
            "condition": "",
            "configuration": {}
          }
        ],
        "profiles": []
      }
    ],
    "globalPolicies": [
      {}
    ]
  },
  "users": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {}
    }
  ],
  "federatedUsers": [
    {}
  ],
  "scopeMappings": [
    {
      "self": "",
      "client": "",
      "clientTemplate": "",
      "clientScope": "",
      "roles": []
    }
  ],
  "clientScopeMappings": {},
  "clients": [
    {}
  ],
  "clientScopes": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ],
  "defaultDefaultClientScopes": [],
  "defaultOptionalClientScopes": [],
  "browserSecurityHeaders": {},
  "smtpServer": {},
  "userFederationProviders": [
    {
      "id": "",
      "displayName": "",
      "providerName": "",
      "config": {},
      "priority": 0,
      "fullSyncPeriod": 0,
      "changedSyncPeriod": 0,
      "lastSync": 0
    }
  ],
  "userFederationMappers": [
    {
      "id": "",
      "name": "",
      "federationProviderDisplayName": "",
      "federationMapperType": "",
      "config": {}
    }
  ],
  "loginTheme": "",
  "accountTheme": "",
  "adminTheme": "",
  "emailTheme": "",
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false,
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ],
  "identityProviderMappers": [
    {
      "id": "",
      "name": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "config": {}
    }
  ],
  "protocolMappers": [
    {}
  ],
  "components": {},
  "internationalizationEnabled": false,
  "supportedLocales": [],
  "defaultLocale": "",
  "authenticationFlows": [
    {
      "id": "",
      "alias": "",
      "description": "",
      "providerId": "",
      "topLevel": false,
      "builtIn": false,
      "authenticationExecutions": [
        {
          "authenticatorConfig": "",
          "authenticator": "",
          "authenticatorFlow": false,
          "requirement": "",
          "priority": 0,
          "autheticatorFlow": false,
          "flowAlias": "",
          "userSetupAllowed": false
        }
      ]
    }
  ],
  "authenticatorConfig": [
    {
      "id": "",
      "alias": "",
      "config": {}
    }
  ],
  "requiredActions": [
    {
      "alias": "",
      "name": "",
      "providerId": "",
      "enabled": false,
      "defaultAction": false,
      "priority": 0,
      "config": {}
    }
  ],
  "browserFlow": "",
  "registrationFlow": "",
  "directGrantFlow": "",
  "resetCredentialsFlow": "",
  "clientAuthenticationFlow": "",
  "dockerAuthenticationFlow": "",
  "firstBrokerLoginFlow": "",
  "attributes": {},
  "keycloakVersion": "",
  "userManagedAccessAllowed": false,
  "organizationsEnabled": false,
  "organizations": [
    {
      "id": "",
      "name": "",
      "alias": "",
      "enabled": false,
      "description": "",
      "redirectUrl": "",
      "attributes": {},
      "domains": [
        {
          "name": "",
          "verified": false
        }
      ],
      "members": [
        {
          "id": "",
          "username": "",
          "firstName": "",
          "lastName": "",
          "email": "",
          "emailVerified": false,
          "attributes": {},
          "userProfileMetadata": {},
          "enabled": false,
          "self": "",
          "origin": "",
          "createdTimestamp": 0,
          "totp": false,
          "federationLink": "",
          "serviceAccountClientId": "",
          "credentials": [
            {}
          ],
          "disableableCredentialTypes": [],
          "requiredActions": [],
          "federatedIdentities": [
            {}
          ],
          "realmRoles": [],
          "clientRoles": {},
          "clientConsents": [
            {}
          ],
          "notBefore": 0,
          "applicationRoles": {},
          "socialLinks": [
            {}
          ],
          "groups": [],
          "access": {},
          "membershipType": ""
        }
      ],
      "identityProviders": [
        {}
      ]
    }
  ],
  "verifiableCredentialsEnabled": false,
  "adminPermissionsEnabled": false,
  "social": false,
  "updateProfileOnInitialSocialLogin": false,
  "socialProviders": {},
  "applicationScopeMappings": {},
  "applications": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "oauthClients": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "clientTemplates": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "fullScopeAllowed": false,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\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  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  realm: '',
  displayName: '',
  displayNameHtml: '',
  notBefore: 0,
  defaultSignatureAlgorithm: '',
  revokeRefreshToken: false,
  refreshTokenMaxReuse: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  ssoSessionIdleTimeout: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespanEnabled: false,
  offlineSessionMaxLifespan: 0,
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clientOfflineSessionIdleTimeout: 0,
  clientOfflineSessionMaxLifespan: 0,
  accessCodeLifespan: 0,
  accessCodeLifespanUserAction: 0,
  accessCodeLifespanLogin: 0,
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  oauth2DeviceCodeLifespan: 0,
  oauth2DevicePollingInterval: 0,
  enabled: false,
  sslRequired: '',
  passwordCredentialGrantAllowed: false,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  rememberMe: false,
  verifyEmail: false,
  loginWithEmailAllowed: false,
  duplicateEmailsAllowed: false,
  resetPasswordAllowed: false,
  editUsernameAllowed: false,
  userCacheEnabled: false,
  realmCacheEnabled: false,
  bruteForceProtected: false,
  permanentLockout: false,
  maxTemporaryLockouts: 0,
  bruteForceStrategy: '',
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  waitIncrementSeconds: 0,
  quickLoginCheckMilliSeconds: 0,
  maxDeltaTimeSeconds: 0,
  failureFactor: 0,
  privateKey: '',
  publicKey: '',
  certificate: '',
  codeSecret: '',
  roles: {
    realm: [
      {
        id: '',
        name: '',
        description: '',
        scopeParamRequired: false,
        composite: false,
        composites: {
          realm: [],
          client: {},
          application: {}
        },
        clientRole: false,
        containerId: '',
        attributes: {}
      }
    ],
    client: {},
    application: {}
  },
  groups: [
    {
      id: '',
      name: '',
      description: '',
      path: '',
      parentId: '',
      subGroupCount: 0,
      subGroups: [],
      attributes: {},
      realmRoles: [],
      clientRoles: {},
      access: {}
    }
  ],
  defaultRoles: [],
  defaultRole: {},
  adminPermissionsClient: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [
            {}
          ]
        }
      ],
      policies: [
        {}
      ],
      scopes: [
        {}
      ],
      decisionStrategy: '',
      authorizationSchema: {
        resourceTypes: {}
      }
    },
    access: {},
    origin: ''
  },
  defaultGroups: [],
  requiredCredentials: [],
  passwordPolicy: '',
  otpPolicyType: '',
  otpPolicyAlgorithm: '',
  otpPolicyInitialCounter: 0,
  otpPolicyDigits: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyCodeReusable: false,
  otpSupportedApplications: [],
  localizationTexts: {},
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyRpId: '',
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyUserVerificationRequirement: '',
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyExtraOrigins: [],
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessExtraOrigins: [],
  webAuthnPolicyPasswordlessPasskeysEnabled: false,
  clientProfiles: {
    profiles: [
      {
        name: '',
        description: '',
        executors: [
          {
            executor: '',
            configuration: {}
          }
        ]
      }
    ],
    globalProfiles: [
      {}
    ]
  },
  clientPolicies: {
    policies: [
      {
        name: '',
        description: '',
        enabled: false,
        conditions: [
          {
            condition: '',
            configuration: {}
          }
        ],
        profiles: []
      }
    ],
    globalPolicies: [
      {}
    ]
  },
  users: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [
          {
            name: '',
            displayHeader: '',
            displayDescription: '',
            annotations: {}
          }
        ]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [
        {
          socialProvider: '',
          socialUserId: '',
          socialUsername: ''
        }
      ],
      groups: [],
      access: {}
    }
  ],
  federatedUsers: [
    {}
  ],
  scopeMappings: [
    {
      self: '',
      client: '',
      clientTemplate: '',
      clientScope: '',
      roles: []
    }
  ],
  clientScopeMappings: {},
  clients: [
    {}
  ],
  clientScopes: [
    {
      id: '',
      name: '',
      description: '',
      protocol: '',
      attributes: {},
      protocolMappers: [
        {}
      ]
    }
  ],
  defaultDefaultClientScopes: [],
  defaultOptionalClientScopes: [],
  browserSecurityHeaders: {},
  smtpServer: {},
  userFederationProviders: [
    {
      id: '',
      displayName: '',
      providerName: '',
      config: {},
      priority: 0,
      fullSyncPeriod: 0,
      changedSyncPeriod: 0,
      lastSync: 0
    }
  ],
  userFederationMappers: [
    {
      id: '',
      name: '',
      federationProviderDisplayName: '',
      federationMapperType: '',
      config: {}
    }
  ],
  loginTheme: '',
  accountTheme: '',
  adminTheme: '',
  emailTheme: '',
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  enabledEventTypes: [],
  adminEventsEnabled: false,
  adminEventsDetailsEnabled: false,
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: false
    }
  ],
  identityProviderMappers: [
    {
      id: '',
      name: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      config: {}
    }
  ],
  protocolMappers: [
    {}
  ],
  components: {},
  internationalizationEnabled: false,
  supportedLocales: [],
  defaultLocale: '',
  authenticationFlows: [
    {
      id: '',
      alias: '',
      description: '',
      providerId: '',
      topLevel: false,
      builtIn: false,
      authenticationExecutions: [
        {
          authenticatorConfig: '',
          authenticator: '',
          authenticatorFlow: false,
          requirement: '',
          priority: 0,
          autheticatorFlow: false,
          flowAlias: '',
          userSetupAllowed: false
        }
      ]
    }
  ],
  authenticatorConfig: [
    {
      id: '',
      alias: '',
      config: {}
    }
  ],
  requiredActions: [
    {
      alias: '',
      name: '',
      providerId: '',
      enabled: false,
      defaultAction: false,
      priority: 0,
      config: {}
    }
  ],
  browserFlow: '',
  registrationFlow: '',
  directGrantFlow: '',
  resetCredentialsFlow: '',
  clientAuthenticationFlow: '',
  dockerAuthenticationFlow: '',
  firstBrokerLoginFlow: '',
  attributes: {},
  keycloakVersion: '',
  userManagedAccessAllowed: false,
  organizationsEnabled: false,
  organizations: [
    {
      id: '',
      name: '',
      alias: '',
      enabled: false,
      description: '',
      redirectUrl: '',
      attributes: {},
      domains: [
        {
          name: '',
          verified: false
        }
      ],
      members: [
        {
          id: '',
          username: '',
          firstName: '',
          lastName: '',
          email: '',
          emailVerified: false,
          attributes: {},
          userProfileMetadata: {},
          enabled: false,
          self: '',
          origin: '',
          createdTimestamp: 0,
          totp: false,
          federationLink: '',
          serviceAccountClientId: '',
          credentials: [
            {}
          ],
          disableableCredentialTypes: [],
          requiredActions: [],
          federatedIdentities: [
            {}
          ],
          realmRoles: [],
          clientRoles: {},
          clientConsents: [
            {}
          ],
          notBefore: 0,
          applicationRoles: {},
          socialLinks: [
            {}
          ],
          groups: [],
          access: {},
          membershipType: ''
        }
      ],
      identityProviders: [
        {}
      ]
    }
  ],
  verifiableCredentialsEnabled: false,
  adminPermissionsEnabled: false,
  social: false,
  updateProfileOnInitialSocialLogin: false,
  socialProviders: {},
  applicationScopeMappings: {},
  applications: [
    {
      id: '',
      clientId: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [
        {}
      ],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {},
      access: {},
      origin: '',
      name: '',
      claims: {}
    }
  ],
  oauthClients: [
    {
      id: '',
      clientId: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [
        {}
      ],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {},
      access: {},
      origin: '',
      name: '',
      claims: {}
    }
  ],
  clientTemplates: [
    {
      id: '',
      name: '',
      description: '',
      protocol: '',
      fullScopeAllowed: false,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      publicClient: false,
      frontchannelLogout: false,
      attributes: {},
      protocolMappers: [
        {}
      ]
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    realm: '',
    displayName: '',
    displayNameHtml: '',
    notBefore: 0,
    defaultSignatureAlgorithm: '',
    revokeRefreshToken: false,
    refreshTokenMaxReuse: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    ssoSessionIdleTimeout: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespanEnabled: false,
    offlineSessionMaxLifespan: 0,
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clientOfflineSessionIdleTimeout: 0,
    clientOfflineSessionMaxLifespan: 0,
    accessCodeLifespan: 0,
    accessCodeLifespanUserAction: 0,
    accessCodeLifespanLogin: 0,
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    oauth2DeviceCodeLifespan: 0,
    oauth2DevicePollingInterval: 0,
    enabled: false,
    sslRequired: '',
    passwordCredentialGrantAllowed: false,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    rememberMe: false,
    verifyEmail: false,
    loginWithEmailAllowed: false,
    duplicateEmailsAllowed: false,
    resetPasswordAllowed: false,
    editUsernameAllowed: false,
    userCacheEnabled: false,
    realmCacheEnabled: false,
    bruteForceProtected: false,
    permanentLockout: false,
    maxTemporaryLockouts: 0,
    bruteForceStrategy: '',
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    waitIncrementSeconds: 0,
    quickLoginCheckMilliSeconds: 0,
    maxDeltaTimeSeconds: 0,
    failureFactor: 0,
    privateKey: '',
    publicKey: '',
    certificate: '',
    codeSecret: '',
    roles: {
      realm: [
        {
          id: '',
          name: '',
          description: '',
          scopeParamRequired: false,
          composite: false,
          composites: {realm: [], client: {}, application: {}},
          clientRole: false,
          containerId: '',
          attributes: {}
        }
      ],
      client: {},
      application: {}
    },
    groups: [
      {
        id: '',
        name: '',
        description: '',
        path: '',
        parentId: '',
        subGroupCount: 0,
        subGroups: [],
        attributes: {},
        realmRoles: [],
        clientRoles: {},
        access: {}
      }
    ],
    defaultRoles: [],
    defaultRole: {},
    adminPermissionsClient: {
      id: '',
      clientId: '',
      name: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [
        {
          id: '',
          name: '',
          protocol: '',
          protocolMapper: '',
          consentRequired: false,
          consentText: '',
          config: {}
        }
      ],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {
        id: '',
        clientId: '',
        name: '',
        allowRemoteResourceManagement: false,
        policyEnforcementMode: '',
        resources: [
          {
            _id: '',
            name: '',
            uris: [],
            type: '',
            scopes: [
              {
                id: '',
                name: '',
                iconUri: '',
                policies: [
                  {
                    id: '',
                    name: '',
                    description: '',
                    type: '',
                    policies: [],
                    resources: [],
                    scopes: [],
                    logic: '',
                    decisionStrategy: '',
                    owner: '',
                    resourceType: '',
                    resourcesData: [],
                    scopesData: [],
                    config: {}
                  }
                ],
                resources: [],
                displayName: ''
              }
            ],
            icon_uri: '',
            owner: {},
            ownerManagedAccess: false,
            displayName: '',
            attributes: {},
            uri: '',
            scopesUma: [{}]
          }
        ],
        policies: [{}],
        scopes: [{}],
        decisionStrategy: '',
        authorizationSchema: {resourceTypes: {}}
      },
      access: {},
      origin: ''
    },
    defaultGroups: [],
    requiredCredentials: [],
    passwordPolicy: '',
    otpPolicyType: '',
    otpPolicyAlgorithm: '',
    otpPolicyInitialCounter: 0,
    otpPolicyDigits: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyCodeReusable: false,
    otpSupportedApplications: [],
    localizationTexts: {},
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyRpId: '',
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyUserVerificationRequirement: '',
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyExtraOrigins: [],
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessExtraOrigins: [],
    webAuthnPolicyPasswordlessPasskeysEnabled: false,
    clientProfiles: {
      profiles: [{name: '', description: '', executors: [{executor: '', configuration: {}}]}],
      globalProfiles: [{}]
    },
    clientPolicies: {
      policies: [
        {
          name: '',
          description: '',
          enabled: false,
          conditions: [{condition: '', configuration: {}}],
          profiles: []
        }
      ],
      globalPolicies: [{}]
    },
    users: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {}
      }
    ],
    federatedUsers: [{}],
    scopeMappings: [{self: '', client: '', clientTemplate: '', clientScope: '', roles: []}],
    clientScopeMappings: {},
    clients: [{}],
    clientScopes: [
      {
        id: '',
        name: '',
        description: '',
        protocol: '',
        attributes: {},
        protocolMappers: [{}]
      }
    ],
    defaultDefaultClientScopes: [],
    defaultOptionalClientScopes: [],
    browserSecurityHeaders: {},
    smtpServer: {},
    userFederationProviders: [
      {
        id: '',
        displayName: '',
        providerName: '',
        config: {},
        priority: 0,
        fullSyncPeriod: 0,
        changedSyncPeriod: 0,
        lastSync: 0
      }
    ],
    userFederationMappers: [
      {
        id: '',
        name: '',
        federationProviderDisplayName: '',
        federationMapperType: '',
        config: {}
      }
    ],
    loginTheme: '',
    accountTheme: '',
    adminTheme: '',
    emailTheme: '',
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    enabledEventTypes: [],
    adminEventsEnabled: false,
    adminEventsDetailsEnabled: false,
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: false
      }
    ],
    identityProviderMappers: [
      {
        id: '',
        name: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        config: {}
      }
    ],
    protocolMappers: [{}],
    components: {},
    internationalizationEnabled: false,
    supportedLocales: [],
    defaultLocale: '',
    authenticationFlows: [
      {
        id: '',
        alias: '',
        description: '',
        providerId: '',
        topLevel: false,
        builtIn: false,
        authenticationExecutions: [
          {
            authenticatorConfig: '',
            authenticator: '',
            authenticatorFlow: false,
            requirement: '',
            priority: 0,
            autheticatorFlow: false,
            flowAlias: '',
            userSetupAllowed: false
          }
        ]
      }
    ],
    authenticatorConfig: [{id: '', alias: '', config: {}}],
    requiredActions: [
      {
        alias: '',
        name: '',
        providerId: '',
        enabled: false,
        defaultAction: false,
        priority: 0,
        config: {}
      }
    ],
    browserFlow: '',
    registrationFlow: '',
    directGrantFlow: '',
    resetCredentialsFlow: '',
    clientAuthenticationFlow: '',
    dockerAuthenticationFlow: '',
    firstBrokerLoginFlow: '',
    attributes: {},
    keycloakVersion: '',
    userManagedAccessAllowed: false,
    organizationsEnabled: false,
    organizations: [
      {
        id: '',
        name: '',
        alias: '',
        enabled: false,
        description: '',
        redirectUrl: '',
        attributes: {},
        domains: [{name: '', verified: false}],
        members: [
          {
            id: '',
            username: '',
            firstName: '',
            lastName: '',
            email: '',
            emailVerified: false,
            attributes: {},
            userProfileMetadata: {},
            enabled: false,
            self: '',
            origin: '',
            createdTimestamp: 0,
            totp: false,
            federationLink: '',
            serviceAccountClientId: '',
            credentials: [{}],
            disableableCredentialTypes: [],
            requiredActions: [],
            federatedIdentities: [{}],
            realmRoles: [],
            clientRoles: {},
            clientConsents: [{}],
            notBefore: 0,
            applicationRoles: {},
            socialLinks: [{}],
            groups: [],
            access: {},
            membershipType: ''
          }
        ],
        identityProviders: [{}]
      }
    ],
    verifiableCredentialsEnabled: false,
    adminPermissionsEnabled: false,
    social: false,
    updateProfileOnInitialSocialLogin: false,
    socialProviders: {},
    applicationScopeMappings: {},
    applications: [
      {
        id: '',
        clientId: '',
        description: '',
        type: '',
        rootUrl: '',
        adminUrl: '',
        baseUrl: '',
        surrogateAuthRequired: false,
        enabled: false,
        alwaysDisplayInConsole: false,
        clientAuthenticatorType: '',
        secret: '',
        registrationAccessToken: '',
        defaultRoles: [],
        redirectUris: [],
        webOrigins: [],
        notBefore: 0,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        authorizationServicesEnabled: false,
        directGrantsOnly: false,
        publicClient: false,
        frontchannelLogout: false,
        protocol: '',
        attributes: {},
        authenticationFlowBindingOverrides: {},
        fullScopeAllowed: false,
        nodeReRegistrationTimeout: 0,
        registeredNodes: {},
        protocolMappers: [{}],
        clientTemplate: '',
        useTemplateConfig: false,
        useTemplateScope: false,
        useTemplateMappers: false,
        defaultClientScopes: [],
        optionalClientScopes: [],
        authorizationSettings: {},
        access: {},
        origin: '',
        name: '',
        claims: {}
      }
    ],
    oauthClients: [
      {
        id: '',
        clientId: '',
        description: '',
        type: '',
        rootUrl: '',
        adminUrl: '',
        baseUrl: '',
        surrogateAuthRequired: false,
        enabled: false,
        alwaysDisplayInConsole: false,
        clientAuthenticatorType: '',
        secret: '',
        registrationAccessToken: '',
        defaultRoles: [],
        redirectUris: [],
        webOrigins: [],
        notBefore: 0,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        authorizationServicesEnabled: false,
        directGrantsOnly: false,
        publicClient: false,
        frontchannelLogout: false,
        protocol: '',
        attributes: {},
        authenticationFlowBindingOverrides: {},
        fullScopeAllowed: false,
        nodeReRegistrationTimeout: 0,
        registeredNodes: {},
        protocolMappers: [{}],
        clientTemplate: '',
        useTemplateConfig: false,
        useTemplateScope: false,
        useTemplateMappers: false,
        defaultClientScopes: [],
        optionalClientScopes: [],
        authorizationSettings: {},
        access: {},
        origin: '',
        name: '',
        claims: {}
      }
    ],
    clientTemplates: [
      {
        id: '',
        name: '',
        description: '',
        protocol: '',
        fullScopeAllowed: false,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        publicClient: false,
        frontchannelLogout: false,
        attributes: {},
        protocolMappers: [{}]
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","realm":"","displayName":"","displayNameHtml":"","notBefore":0,"defaultSignatureAlgorithm":"","revokeRefreshToken":false,"refreshTokenMaxReuse":0,"accessTokenLifespan":0,"accessTokenLifespanForImplicitFlow":0,"ssoSessionIdleTimeout":0,"ssoSessionMaxLifespan":0,"ssoSessionIdleTimeoutRememberMe":0,"ssoSessionMaxLifespanRememberMe":0,"offlineSessionIdleTimeout":0,"offlineSessionMaxLifespanEnabled":false,"offlineSessionMaxLifespan":0,"clientSessionIdleTimeout":0,"clientSessionMaxLifespan":0,"clientOfflineSessionIdleTimeout":0,"clientOfflineSessionMaxLifespan":0,"accessCodeLifespan":0,"accessCodeLifespanUserAction":0,"accessCodeLifespanLogin":0,"actionTokenGeneratedByAdminLifespan":0,"actionTokenGeneratedByUserLifespan":0,"oauth2DeviceCodeLifespan":0,"oauth2DevicePollingInterval":0,"enabled":false,"sslRequired":"","passwordCredentialGrantAllowed":false,"registrationAllowed":false,"registrationEmailAsUsername":false,"rememberMe":false,"verifyEmail":false,"loginWithEmailAllowed":false,"duplicateEmailsAllowed":false,"resetPasswordAllowed":false,"editUsernameAllowed":false,"userCacheEnabled":false,"realmCacheEnabled":false,"bruteForceProtected":false,"permanentLockout":false,"maxTemporaryLockouts":0,"bruteForceStrategy":"","maxFailureWaitSeconds":0,"minimumQuickLoginWaitSeconds":0,"waitIncrementSeconds":0,"quickLoginCheckMilliSeconds":0,"maxDeltaTimeSeconds":0,"failureFactor":0,"privateKey":"","publicKey":"","certificate":"","codeSecret":"","roles":{"realm":[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}],"client":{},"application":{}},"groups":[{"id":"","name":"","description":"","path":"","parentId":"","subGroupCount":0,"subGroups":[],"attributes":{},"realmRoles":[],"clientRoles":{},"access":{}}],"defaultRoles":[],"defaultRole":{},"adminPermissionsClient":{"id":"","clientId":"","name":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}},"access":{},"origin":""},"defaultGroups":[],"requiredCredentials":[],"passwordPolicy":"","otpPolicyType":"","otpPolicyAlgorithm":"","otpPolicyInitialCounter":0,"otpPolicyDigits":0,"otpPolicyLookAheadWindow":0,"otpPolicyPeriod":0,"otpPolicyCodeReusable":false,"otpSupportedApplications":[],"localizationTexts":{},"webAuthnPolicyRpEntityName":"","webAuthnPolicySignatureAlgorithms":[],"webAuthnPolicyRpId":"","webAuthnPolicyAttestationConveyancePreference":"","webAuthnPolicyAuthenticatorAttachment":"","webAuthnPolicyRequireResidentKey":"","webAuthnPolicyUserVerificationRequirement":"","webAuthnPolicyCreateTimeout":0,"webAuthnPolicyAvoidSameAuthenticatorRegister":false,"webAuthnPolicyAcceptableAaguids":[],"webAuthnPolicyExtraOrigins":[],"webAuthnPolicyPasswordlessRpEntityName":"","webAuthnPolicyPasswordlessSignatureAlgorithms":[],"webAuthnPolicyPasswordlessRpId":"","webAuthnPolicyPasswordlessAttestationConveyancePreference":"","webAuthnPolicyPasswordlessAuthenticatorAttachment":"","webAuthnPolicyPasswordlessRequireResidentKey":"","webAuthnPolicyPasswordlessUserVerificationRequirement":"","webAuthnPolicyPasswordlessCreateTimeout":0,"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister":false,"webAuthnPolicyPasswordlessAcceptableAaguids":[],"webAuthnPolicyPasswordlessExtraOrigins":[],"webAuthnPolicyPasswordlessPasskeysEnabled":false,"clientProfiles":{"profiles":[{"name":"","description":"","executors":[{"executor":"","configuration":{}}]}],"globalProfiles":[{}]},"clientPolicies":{"policies":[{"name":"","description":"","enabled":false,"conditions":[{"condition":"","configuration":{}}],"profiles":[]}],"globalPolicies":[{}]},"users":[{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{}}],"federatedUsers":[{}],"scopeMappings":[{"self":"","client":"","clientTemplate":"","clientScope":"","roles":[]}],"clientScopeMappings":{},"clients":[{}],"clientScopes":[{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{}]}],"defaultDefaultClientScopes":[],"defaultOptionalClientScopes":[],"browserSecurityHeaders":{},"smtpServer":{},"userFederationProviders":[{"id":"","displayName":"","providerName":"","config":{},"priority":0,"fullSyncPeriod":0,"changedSyncPeriod":0,"lastSync":0}],"userFederationMappers":[{"id":"","name":"","federationProviderDisplayName":"","federationMapperType":"","config":{}}],"loginTheme":"","accountTheme":"","adminTheme":"","emailTheme":"","eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[],"enabledEventTypes":[],"adminEventsEnabled":false,"adminEventsDetailsEnabled":false,"identityProviders":[{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":false}],"identityProviderMappers":[{"id":"","name":"","identityProviderAlias":"","identityProviderMapper":"","config":{}}],"protocolMappers":[{}],"components":{},"internationalizationEnabled":false,"supportedLocales":[],"defaultLocale":"","authenticationFlows":[{"id":"","alias":"","description":"","providerId":"","topLevel":false,"builtIn":false,"authenticationExecutions":[{"authenticatorConfig":"","authenticator":"","authenticatorFlow":false,"requirement":"","priority":0,"autheticatorFlow":false,"flowAlias":"","userSetupAllowed":false}]}],"authenticatorConfig":[{"id":"","alias":"","config":{}}],"requiredActions":[{"alias":"","name":"","providerId":"","enabled":false,"defaultAction":false,"priority":0,"config":{}}],"browserFlow":"","registrationFlow":"","directGrantFlow":"","resetCredentialsFlow":"","clientAuthenticationFlow":"","dockerAuthenticationFlow":"","firstBrokerLoginFlow":"","attributes":{},"keycloakVersion":"","userManagedAccessAllowed":false,"organizationsEnabled":false,"organizations":[{"id":"","name":"","alias":"","enabled":false,"description":"","redirectUrl":"","attributes":{},"domains":[{"name":"","verified":false}],"members":[{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{}],"realmRoles":[],"clientRoles":{},"clientConsents":[{}],"notBefore":0,"applicationRoles":{},"socialLinks":[{}],"groups":[],"access":{},"membershipType":""}],"identityProviders":[{}]}],"verifiableCredentialsEnabled":false,"adminPermissionsEnabled":false,"social":false,"updateProfileOnInitialSocialLogin":false,"socialProviders":{},"applicationScopeMappings":{},"applications":[{"id":"","clientId":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{},"access":{},"origin":"","name":"","claims":{}}],"oauthClients":[{"id":"","clientId":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{},"access":{},"origin":"","name":"","claims":{}}],"clientTemplates":[{"id":"","name":"","description":"","protocol":"","fullScopeAllowed":false,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"publicClient":false,"frontchannelLogout":false,"attributes":{},"protocolMappers":[{}]}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "realm": "",\n  "displayName": "",\n  "displayNameHtml": "",\n  "notBefore": 0,\n  "defaultSignatureAlgorithm": "",\n  "revokeRefreshToken": false,\n  "refreshTokenMaxReuse": 0,\n  "accessTokenLifespan": 0,\n  "accessTokenLifespanForImplicitFlow": 0,\n  "ssoSessionIdleTimeout": 0,\n  "ssoSessionMaxLifespan": 0,\n  "ssoSessionIdleTimeoutRememberMe": 0,\n  "ssoSessionMaxLifespanRememberMe": 0,\n  "offlineSessionIdleTimeout": 0,\n  "offlineSessionMaxLifespanEnabled": false,\n  "offlineSessionMaxLifespan": 0,\n  "clientSessionIdleTimeout": 0,\n  "clientSessionMaxLifespan": 0,\n  "clientOfflineSessionIdleTimeout": 0,\n  "clientOfflineSessionMaxLifespan": 0,\n  "accessCodeLifespan": 0,\n  "accessCodeLifespanUserAction": 0,\n  "accessCodeLifespanLogin": 0,\n  "actionTokenGeneratedByAdminLifespan": 0,\n  "actionTokenGeneratedByUserLifespan": 0,\n  "oauth2DeviceCodeLifespan": 0,\n  "oauth2DevicePollingInterval": 0,\n  "enabled": false,\n  "sslRequired": "",\n  "passwordCredentialGrantAllowed": false,\n  "registrationAllowed": false,\n  "registrationEmailAsUsername": false,\n  "rememberMe": false,\n  "verifyEmail": false,\n  "loginWithEmailAllowed": false,\n  "duplicateEmailsAllowed": false,\n  "resetPasswordAllowed": false,\n  "editUsernameAllowed": false,\n  "userCacheEnabled": false,\n  "realmCacheEnabled": false,\n  "bruteForceProtected": false,\n  "permanentLockout": false,\n  "maxTemporaryLockouts": 0,\n  "bruteForceStrategy": "",\n  "maxFailureWaitSeconds": 0,\n  "minimumQuickLoginWaitSeconds": 0,\n  "waitIncrementSeconds": 0,\n  "quickLoginCheckMilliSeconds": 0,\n  "maxDeltaTimeSeconds": 0,\n  "failureFactor": 0,\n  "privateKey": "",\n  "publicKey": "",\n  "certificate": "",\n  "codeSecret": "",\n  "roles": {\n    "realm": [\n      {\n        "id": "",\n        "name": "",\n        "description": "",\n        "scopeParamRequired": false,\n        "composite": false,\n        "composites": {\n          "realm": [],\n          "client": {},\n          "application": {}\n        },\n        "clientRole": false,\n        "containerId": "",\n        "attributes": {}\n      }\n    ],\n    "client": {},\n    "application": {}\n  },\n  "groups": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "path": "",\n      "parentId": "",\n      "subGroupCount": 0,\n      "subGroups": [],\n      "attributes": {},\n      "realmRoles": [],\n      "clientRoles": {},\n      "access": {}\n    }\n  ],\n  "defaultRoles": [],\n  "defaultRole": {},\n  "adminPermissionsClient": {\n    "id": "",\n    "clientId": "",\n    "name": "",\n    "description": "",\n    "type": "",\n    "rootUrl": "",\n    "adminUrl": "",\n    "baseUrl": "",\n    "surrogateAuthRequired": false,\n    "enabled": false,\n    "alwaysDisplayInConsole": false,\n    "clientAuthenticatorType": "",\n    "secret": "",\n    "registrationAccessToken": "",\n    "defaultRoles": [],\n    "redirectUris": [],\n    "webOrigins": [],\n    "notBefore": 0,\n    "bearerOnly": false,\n    "consentRequired": false,\n    "standardFlowEnabled": false,\n    "implicitFlowEnabled": false,\n    "directAccessGrantsEnabled": false,\n    "serviceAccountsEnabled": false,\n    "authorizationServicesEnabled": false,\n    "directGrantsOnly": false,\n    "publicClient": false,\n    "frontchannelLogout": false,\n    "protocol": "",\n    "attributes": {},\n    "authenticationFlowBindingOverrides": {},\n    "fullScopeAllowed": false,\n    "nodeReRegistrationTimeout": 0,\n    "registeredNodes": {},\n    "protocolMappers": [\n      {\n        "id": "",\n        "name": "",\n        "protocol": "",\n        "protocolMapper": "",\n        "consentRequired": false,\n        "consentText": "",\n        "config": {}\n      }\n    ],\n    "clientTemplate": "",\n    "useTemplateConfig": false,\n    "useTemplateScope": false,\n    "useTemplateMappers": false,\n    "defaultClientScopes": [],\n    "optionalClientScopes": [],\n    "authorizationSettings": {\n      "id": "",\n      "clientId": "",\n      "name": "",\n      "allowRemoteResourceManagement": false,\n      "policyEnforcementMode": "",\n      "resources": [\n        {\n          "_id": "",\n          "name": "",\n          "uris": [],\n          "type": "",\n          "scopes": [\n            {\n              "id": "",\n              "name": "",\n              "iconUri": "",\n              "policies": [\n                {\n                  "id": "",\n                  "name": "",\n                  "description": "",\n                  "type": "",\n                  "policies": [],\n                  "resources": [],\n                  "scopes": [],\n                  "logic": "",\n                  "decisionStrategy": "",\n                  "owner": "",\n                  "resourceType": "",\n                  "resourcesData": [],\n                  "scopesData": [],\n                  "config": {}\n                }\n              ],\n              "resources": [],\n              "displayName": ""\n            }\n          ],\n          "icon_uri": "",\n          "owner": {},\n          "ownerManagedAccess": false,\n          "displayName": "",\n          "attributes": {},\n          "uri": "",\n          "scopesUma": [\n            {}\n          ]\n        }\n      ],\n      "policies": [\n        {}\n      ],\n      "scopes": [\n        {}\n      ],\n      "decisionStrategy": "",\n      "authorizationSchema": {\n        "resourceTypes": {}\n      }\n    },\n    "access": {},\n    "origin": ""\n  },\n  "defaultGroups": [],\n  "requiredCredentials": [],\n  "passwordPolicy": "",\n  "otpPolicyType": "",\n  "otpPolicyAlgorithm": "",\n  "otpPolicyInitialCounter": 0,\n  "otpPolicyDigits": 0,\n  "otpPolicyLookAheadWindow": 0,\n  "otpPolicyPeriod": 0,\n  "otpPolicyCodeReusable": false,\n  "otpSupportedApplications": [],\n  "localizationTexts": {},\n  "webAuthnPolicyRpEntityName": "",\n  "webAuthnPolicySignatureAlgorithms": [],\n  "webAuthnPolicyRpId": "",\n  "webAuthnPolicyAttestationConveyancePreference": "",\n  "webAuthnPolicyAuthenticatorAttachment": "",\n  "webAuthnPolicyRequireResidentKey": "",\n  "webAuthnPolicyUserVerificationRequirement": "",\n  "webAuthnPolicyCreateTimeout": 0,\n  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyAcceptableAaguids": [],\n  "webAuthnPolicyExtraOrigins": [],\n  "webAuthnPolicyPasswordlessRpEntityName": "",\n  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],\n  "webAuthnPolicyPasswordlessRpId": "",\n  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",\n  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",\n  "webAuthnPolicyPasswordlessRequireResidentKey": "",\n  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",\n  "webAuthnPolicyPasswordlessCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyPasswordlessAcceptableAaguids": [],\n  "webAuthnPolicyPasswordlessExtraOrigins": [],\n  "webAuthnPolicyPasswordlessPasskeysEnabled": false,\n  "clientProfiles": {\n    "profiles": [\n      {\n        "name": "",\n        "description": "",\n        "executors": [\n          {\n            "executor": "",\n            "configuration": {}\n          }\n        ]\n      }\n    ],\n    "globalProfiles": [\n      {}\n    ]\n  },\n  "clientPolicies": {\n    "policies": [\n      {\n        "name": "",\n        "description": "",\n        "enabled": false,\n        "conditions": [\n          {\n            "condition": "",\n            "configuration": {}\n          }\n        ],\n        "profiles": []\n      }\n    ],\n    "globalPolicies": [\n      {}\n    ]\n  },\n  "users": [\n    {\n      "id": "",\n      "username": "",\n      "firstName": "",\n      "lastName": "",\n      "email": "",\n      "emailVerified": false,\n      "attributes": {},\n      "userProfileMetadata": {\n        "attributes": [\n          {\n            "name": "",\n            "displayName": "",\n            "required": false,\n            "readOnly": false,\n            "annotations": {},\n            "validators": {},\n            "group": "",\n            "multivalued": false,\n            "defaultValue": ""\n          }\n        ],\n        "groups": [\n          {\n            "name": "",\n            "displayHeader": "",\n            "displayDescription": "",\n            "annotations": {}\n          }\n        ]\n      },\n      "enabled": false,\n      "self": "",\n      "origin": "",\n      "createdTimestamp": 0,\n      "totp": false,\n      "federationLink": "",\n      "serviceAccountClientId": "",\n      "credentials": [\n        {\n          "id": "",\n          "type": "",\n          "userLabel": "",\n          "createdDate": 0,\n          "secretData": "",\n          "credentialData": "",\n          "priority": 0,\n          "value": "",\n          "temporary": false,\n          "device": "",\n          "hashedSaltedValue": "",\n          "salt": "",\n          "hashIterations": 0,\n          "counter": 0,\n          "algorithm": "",\n          "digits": 0,\n          "period": 0,\n          "config": {},\n          "federationLink": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "requiredActions": [],\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "realmRoles": [],\n      "clientRoles": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "grantedClientScopes": [],\n          "createdDate": 0,\n          "lastUpdatedDate": 0,\n          "grantedRealmRoles": []\n        }\n      ],\n      "notBefore": 0,\n      "applicationRoles": {},\n      "socialLinks": [\n        {\n          "socialProvider": "",\n          "socialUserId": "",\n          "socialUsername": ""\n        }\n      ],\n      "groups": [],\n      "access": {}\n    }\n  ],\n  "federatedUsers": [\n    {}\n  ],\n  "scopeMappings": [\n    {\n      "self": "",\n      "client": "",\n      "clientTemplate": "",\n      "clientScope": "",\n      "roles": []\n    }\n  ],\n  "clientScopeMappings": {},\n  "clients": [\n    {}\n  ],\n  "clientScopes": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "protocol": "",\n      "attributes": {},\n      "protocolMappers": [\n        {}\n      ]\n    }\n  ],\n  "defaultDefaultClientScopes": [],\n  "defaultOptionalClientScopes": [],\n  "browserSecurityHeaders": {},\n  "smtpServer": {},\n  "userFederationProviders": [\n    {\n      "id": "",\n      "displayName": "",\n      "providerName": "",\n      "config": {},\n      "priority": 0,\n      "fullSyncPeriod": 0,\n      "changedSyncPeriod": 0,\n      "lastSync": 0\n    }\n  ],\n  "userFederationMappers": [\n    {\n      "id": "",\n      "name": "",\n      "federationProviderDisplayName": "",\n      "federationMapperType": "",\n      "config": {}\n    }\n  ],\n  "loginTheme": "",\n  "accountTheme": "",\n  "adminTheme": "",\n  "emailTheme": "",\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": [],\n  "enabledEventTypes": [],\n  "adminEventsEnabled": false,\n  "adminEventsDetailsEnabled": false,\n  "identityProviders": [\n    {\n      "alias": "",\n      "displayName": "",\n      "internalId": "",\n      "providerId": "",\n      "enabled": false,\n      "updateProfileFirstLoginMode": "",\n      "trustEmail": false,\n      "storeToken": false,\n      "addReadTokenRoleOnCreate": false,\n      "authenticateByDefault": false,\n      "linkOnly": false,\n      "hideOnLogin": false,\n      "firstBrokerLoginFlowAlias": "",\n      "postBrokerLoginFlowAlias": "",\n      "organizationId": "",\n      "config": {},\n      "updateProfileFirstLogin": false\n    }\n  ],\n  "identityProviderMappers": [\n    {\n      "id": "",\n      "name": "",\n      "identityProviderAlias": "",\n      "identityProviderMapper": "",\n      "config": {}\n    }\n  ],\n  "protocolMappers": [\n    {}\n  ],\n  "components": {},\n  "internationalizationEnabled": false,\n  "supportedLocales": [],\n  "defaultLocale": "",\n  "authenticationFlows": [\n    {\n      "id": "",\n      "alias": "",\n      "description": "",\n      "providerId": "",\n      "topLevel": false,\n      "builtIn": false,\n      "authenticationExecutions": [\n        {\n          "authenticatorConfig": "",\n          "authenticator": "",\n          "authenticatorFlow": false,\n          "requirement": "",\n          "priority": 0,\n          "autheticatorFlow": false,\n          "flowAlias": "",\n          "userSetupAllowed": false\n        }\n      ]\n    }\n  ],\n  "authenticatorConfig": [\n    {\n      "id": "",\n      "alias": "",\n      "config": {}\n    }\n  ],\n  "requiredActions": [\n    {\n      "alias": "",\n      "name": "",\n      "providerId": "",\n      "enabled": false,\n      "defaultAction": false,\n      "priority": 0,\n      "config": {}\n    }\n  ],\n  "browserFlow": "",\n  "registrationFlow": "",\n  "directGrantFlow": "",\n  "resetCredentialsFlow": "",\n  "clientAuthenticationFlow": "",\n  "dockerAuthenticationFlow": "",\n  "firstBrokerLoginFlow": "",\n  "attributes": {},\n  "keycloakVersion": "",\n  "userManagedAccessAllowed": false,\n  "organizationsEnabled": false,\n  "organizations": [\n    {\n      "id": "",\n      "name": "",\n      "alias": "",\n      "enabled": false,\n      "description": "",\n      "redirectUrl": "",\n      "attributes": {},\n      "domains": [\n        {\n          "name": "",\n          "verified": false\n        }\n      ],\n      "members": [\n        {\n          "id": "",\n          "username": "",\n          "firstName": "",\n          "lastName": "",\n          "email": "",\n          "emailVerified": false,\n          "attributes": {},\n          "userProfileMetadata": {},\n          "enabled": false,\n          "self": "",\n          "origin": "",\n          "createdTimestamp": 0,\n          "totp": false,\n          "federationLink": "",\n          "serviceAccountClientId": "",\n          "credentials": [\n            {}\n          ],\n          "disableableCredentialTypes": [],\n          "requiredActions": [],\n          "federatedIdentities": [\n            {}\n          ],\n          "realmRoles": [],\n          "clientRoles": {},\n          "clientConsents": [\n            {}\n          ],\n          "notBefore": 0,\n          "applicationRoles": {},\n          "socialLinks": [\n            {}\n          ],\n          "groups": [],\n          "access": {},\n          "membershipType": ""\n        }\n      ],\n      "identityProviders": [\n        {}\n      ]\n    }\n  ],\n  "verifiableCredentialsEnabled": false,\n  "adminPermissionsEnabled": false,\n  "social": false,\n  "updateProfileOnInitialSocialLogin": false,\n  "socialProviders": {},\n  "applicationScopeMappings": {},\n  "applications": [\n    {\n      "id": "",\n      "clientId": "",\n      "description": "",\n      "type": "",\n      "rootUrl": "",\n      "adminUrl": "",\n      "baseUrl": "",\n      "surrogateAuthRequired": false,\n      "enabled": false,\n      "alwaysDisplayInConsole": false,\n      "clientAuthenticatorType": "",\n      "secret": "",\n      "registrationAccessToken": "",\n      "defaultRoles": [],\n      "redirectUris": [],\n      "webOrigins": [],\n      "notBefore": 0,\n      "bearerOnly": false,\n      "consentRequired": false,\n      "standardFlowEnabled": false,\n      "implicitFlowEnabled": false,\n      "directAccessGrantsEnabled": false,\n      "serviceAccountsEnabled": false,\n      "authorizationServicesEnabled": false,\n      "directGrantsOnly": false,\n      "publicClient": false,\n      "frontchannelLogout": false,\n      "protocol": "",\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "fullScopeAllowed": false,\n      "nodeReRegistrationTimeout": 0,\n      "registeredNodes": {},\n      "protocolMappers": [\n        {}\n      ],\n      "clientTemplate": "",\n      "useTemplateConfig": false,\n      "useTemplateScope": false,\n      "useTemplateMappers": false,\n      "defaultClientScopes": [],\n      "optionalClientScopes": [],\n      "authorizationSettings": {},\n      "access": {},\n      "origin": "",\n      "name": "",\n      "claims": {}\n    }\n  ],\n  "oauthClients": [\n    {\n      "id": "",\n      "clientId": "",\n      "description": "",\n      "type": "",\n      "rootUrl": "",\n      "adminUrl": "",\n      "baseUrl": "",\n      "surrogateAuthRequired": false,\n      "enabled": false,\n      "alwaysDisplayInConsole": false,\n      "clientAuthenticatorType": "",\n      "secret": "",\n      "registrationAccessToken": "",\n      "defaultRoles": [],\n      "redirectUris": [],\n      "webOrigins": [],\n      "notBefore": 0,\n      "bearerOnly": false,\n      "consentRequired": false,\n      "standardFlowEnabled": false,\n      "implicitFlowEnabled": false,\n      "directAccessGrantsEnabled": false,\n      "serviceAccountsEnabled": false,\n      "authorizationServicesEnabled": false,\n      "directGrantsOnly": false,\n      "publicClient": false,\n      "frontchannelLogout": false,\n      "protocol": "",\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "fullScopeAllowed": false,\n      "nodeReRegistrationTimeout": 0,\n      "registeredNodes": {},\n      "protocolMappers": [\n        {}\n      ],\n      "clientTemplate": "",\n      "useTemplateConfig": false,\n      "useTemplateScope": false,\n      "useTemplateMappers": false,\n      "defaultClientScopes": [],\n      "optionalClientScopes": [],\n      "authorizationSettings": {},\n      "access": {},\n      "origin": "",\n      "name": "",\n      "claims": {}\n    }\n  ],\n  "clientTemplates": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "protocol": "",\n      "fullScopeAllowed": false,\n      "bearerOnly": false,\n      "consentRequired": false,\n      "standardFlowEnabled": false,\n      "implicitFlowEnabled": false,\n      "directAccessGrantsEnabled": false,\n      "serviceAccountsEnabled": false,\n      "publicClient": false,\n      "frontchannelLogout": false,\n      "attributes": {},\n      "protocolMappers": [\n        {}\n      ]\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  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  realm: '',
  displayName: '',
  displayNameHtml: '',
  notBefore: 0,
  defaultSignatureAlgorithm: '',
  revokeRefreshToken: false,
  refreshTokenMaxReuse: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  ssoSessionIdleTimeout: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespanEnabled: false,
  offlineSessionMaxLifespan: 0,
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clientOfflineSessionIdleTimeout: 0,
  clientOfflineSessionMaxLifespan: 0,
  accessCodeLifespan: 0,
  accessCodeLifespanUserAction: 0,
  accessCodeLifespanLogin: 0,
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  oauth2DeviceCodeLifespan: 0,
  oauth2DevicePollingInterval: 0,
  enabled: false,
  sslRequired: '',
  passwordCredentialGrantAllowed: false,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  rememberMe: false,
  verifyEmail: false,
  loginWithEmailAllowed: false,
  duplicateEmailsAllowed: false,
  resetPasswordAllowed: false,
  editUsernameAllowed: false,
  userCacheEnabled: false,
  realmCacheEnabled: false,
  bruteForceProtected: false,
  permanentLockout: false,
  maxTemporaryLockouts: 0,
  bruteForceStrategy: '',
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  waitIncrementSeconds: 0,
  quickLoginCheckMilliSeconds: 0,
  maxDeltaTimeSeconds: 0,
  failureFactor: 0,
  privateKey: '',
  publicKey: '',
  certificate: '',
  codeSecret: '',
  roles: {
    realm: [
      {
        id: '',
        name: '',
        description: '',
        scopeParamRequired: false,
        composite: false,
        composites: {realm: [], client: {}, application: {}},
        clientRole: false,
        containerId: '',
        attributes: {}
      }
    ],
    client: {},
    application: {}
  },
  groups: [
    {
      id: '',
      name: '',
      description: '',
      path: '',
      parentId: '',
      subGroupCount: 0,
      subGroups: [],
      attributes: {},
      realmRoles: [],
      clientRoles: {},
      access: {}
    }
  ],
  defaultRoles: [],
  defaultRole: {},
  adminPermissionsClient: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [{}]
        }
      ],
      policies: [{}],
      scopes: [{}],
      decisionStrategy: '',
      authorizationSchema: {resourceTypes: {}}
    },
    access: {},
    origin: ''
  },
  defaultGroups: [],
  requiredCredentials: [],
  passwordPolicy: '',
  otpPolicyType: '',
  otpPolicyAlgorithm: '',
  otpPolicyInitialCounter: 0,
  otpPolicyDigits: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyCodeReusable: false,
  otpSupportedApplications: [],
  localizationTexts: {},
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyRpId: '',
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyUserVerificationRequirement: '',
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyExtraOrigins: [],
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessExtraOrigins: [],
  webAuthnPolicyPasswordlessPasskeysEnabled: false,
  clientProfiles: {
    profiles: [{name: '', description: '', executors: [{executor: '', configuration: {}}]}],
    globalProfiles: [{}]
  },
  clientPolicies: {
    policies: [
      {
        name: '',
        description: '',
        enabled: false,
        conditions: [{condition: '', configuration: {}}],
        profiles: []
      }
    ],
    globalPolicies: [{}]
  },
  users: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
      groups: [],
      access: {}
    }
  ],
  federatedUsers: [{}],
  scopeMappings: [{self: '', client: '', clientTemplate: '', clientScope: '', roles: []}],
  clientScopeMappings: {},
  clients: [{}],
  clientScopes: [
    {
      id: '',
      name: '',
      description: '',
      protocol: '',
      attributes: {},
      protocolMappers: [{}]
    }
  ],
  defaultDefaultClientScopes: [],
  defaultOptionalClientScopes: [],
  browserSecurityHeaders: {},
  smtpServer: {},
  userFederationProviders: [
    {
      id: '',
      displayName: '',
      providerName: '',
      config: {},
      priority: 0,
      fullSyncPeriod: 0,
      changedSyncPeriod: 0,
      lastSync: 0
    }
  ],
  userFederationMappers: [
    {
      id: '',
      name: '',
      federationProviderDisplayName: '',
      federationMapperType: '',
      config: {}
    }
  ],
  loginTheme: '',
  accountTheme: '',
  adminTheme: '',
  emailTheme: '',
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  enabledEventTypes: [],
  adminEventsEnabled: false,
  adminEventsDetailsEnabled: false,
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: false
    }
  ],
  identityProviderMappers: [
    {
      id: '',
      name: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      config: {}
    }
  ],
  protocolMappers: [{}],
  components: {},
  internationalizationEnabled: false,
  supportedLocales: [],
  defaultLocale: '',
  authenticationFlows: [
    {
      id: '',
      alias: '',
      description: '',
      providerId: '',
      topLevel: false,
      builtIn: false,
      authenticationExecutions: [
        {
          authenticatorConfig: '',
          authenticator: '',
          authenticatorFlow: false,
          requirement: '',
          priority: 0,
          autheticatorFlow: false,
          flowAlias: '',
          userSetupAllowed: false
        }
      ]
    }
  ],
  authenticatorConfig: [{id: '', alias: '', config: {}}],
  requiredActions: [
    {
      alias: '',
      name: '',
      providerId: '',
      enabled: false,
      defaultAction: false,
      priority: 0,
      config: {}
    }
  ],
  browserFlow: '',
  registrationFlow: '',
  directGrantFlow: '',
  resetCredentialsFlow: '',
  clientAuthenticationFlow: '',
  dockerAuthenticationFlow: '',
  firstBrokerLoginFlow: '',
  attributes: {},
  keycloakVersion: '',
  userManagedAccessAllowed: false,
  organizationsEnabled: false,
  organizations: [
    {
      id: '',
      name: '',
      alias: '',
      enabled: false,
      description: '',
      redirectUrl: '',
      attributes: {},
      domains: [{name: '', verified: false}],
      members: [
        {
          id: '',
          username: '',
          firstName: '',
          lastName: '',
          email: '',
          emailVerified: false,
          attributes: {},
          userProfileMetadata: {},
          enabled: false,
          self: '',
          origin: '',
          createdTimestamp: 0,
          totp: false,
          federationLink: '',
          serviceAccountClientId: '',
          credentials: [{}],
          disableableCredentialTypes: [],
          requiredActions: [],
          federatedIdentities: [{}],
          realmRoles: [],
          clientRoles: {},
          clientConsents: [{}],
          notBefore: 0,
          applicationRoles: {},
          socialLinks: [{}],
          groups: [],
          access: {},
          membershipType: ''
        }
      ],
      identityProviders: [{}]
    }
  ],
  verifiableCredentialsEnabled: false,
  adminPermissionsEnabled: false,
  social: false,
  updateProfileOnInitialSocialLogin: false,
  socialProviders: {},
  applicationScopeMappings: {},
  applications: [
    {
      id: '',
      clientId: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [{}],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {},
      access: {},
      origin: '',
      name: '',
      claims: {}
    }
  ],
  oauthClients: [
    {
      id: '',
      clientId: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [{}],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {},
      access: {},
      origin: '',
      name: '',
      claims: {}
    }
  ],
  clientTemplates: [
    {
      id: '',
      name: '',
      description: '',
      protocol: '',
      fullScopeAllowed: false,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      publicClient: false,
      frontchannelLogout: false,
      attributes: {},
      protocolMappers: [{}]
    }
  ]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    realm: '',
    displayName: '',
    displayNameHtml: '',
    notBefore: 0,
    defaultSignatureAlgorithm: '',
    revokeRefreshToken: false,
    refreshTokenMaxReuse: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    ssoSessionIdleTimeout: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespanEnabled: false,
    offlineSessionMaxLifespan: 0,
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clientOfflineSessionIdleTimeout: 0,
    clientOfflineSessionMaxLifespan: 0,
    accessCodeLifespan: 0,
    accessCodeLifespanUserAction: 0,
    accessCodeLifespanLogin: 0,
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    oauth2DeviceCodeLifespan: 0,
    oauth2DevicePollingInterval: 0,
    enabled: false,
    sslRequired: '',
    passwordCredentialGrantAllowed: false,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    rememberMe: false,
    verifyEmail: false,
    loginWithEmailAllowed: false,
    duplicateEmailsAllowed: false,
    resetPasswordAllowed: false,
    editUsernameAllowed: false,
    userCacheEnabled: false,
    realmCacheEnabled: false,
    bruteForceProtected: false,
    permanentLockout: false,
    maxTemporaryLockouts: 0,
    bruteForceStrategy: '',
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    waitIncrementSeconds: 0,
    quickLoginCheckMilliSeconds: 0,
    maxDeltaTimeSeconds: 0,
    failureFactor: 0,
    privateKey: '',
    publicKey: '',
    certificate: '',
    codeSecret: '',
    roles: {
      realm: [
        {
          id: '',
          name: '',
          description: '',
          scopeParamRequired: false,
          composite: false,
          composites: {realm: [], client: {}, application: {}},
          clientRole: false,
          containerId: '',
          attributes: {}
        }
      ],
      client: {},
      application: {}
    },
    groups: [
      {
        id: '',
        name: '',
        description: '',
        path: '',
        parentId: '',
        subGroupCount: 0,
        subGroups: [],
        attributes: {},
        realmRoles: [],
        clientRoles: {},
        access: {}
      }
    ],
    defaultRoles: [],
    defaultRole: {},
    adminPermissionsClient: {
      id: '',
      clientId: '',
      name: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [
        {
          id: '',
          name: '',
          protocol: '',
          protocolMapper: '',
          consentRequired: false,
          consentText: '',
          config: {}
        }
      ],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {
        id: '',
        clientId: '',
        name: '',
        allowRemoteResourceManagement: false,
        policyEnforcementMode: '',
        resources: [
          {
            _id: '',
            name: '',
            uris: [],
            type: '',
            scopes: [
              {
                id: '',
                name: '',
                iconUri: '',
                policies: [
                  {
                    id: '',
                    name: '',
                    description: '',
                    type: '',
                    policies: [],
                    resources: [],
                    scopes: [],
                    logic: '',
                    decisionStrategy: '',
                    owner: '',
                    resourceType: '',
                    resourcesData: [],
                    scopesData: [],
                    config: {}
                  }
                ],
                resources: [],
                displayName: ''
              }
            ],
            icon_uri: '',
            owner: {},
            ownerManagedAccess: false,
            displayName: '',
            attributes: {},
            uri: '',
            scopesUma: [{}]
          }
        ],
        policies: [{}],
        scopes: [{}],
        decisionStrategy: '',
        authorizationSchema: {resourceTypes: {}}
      },
      access: {},
      origin: ''
    },
    defaultGroups: [],
    requiredCredentials: [],
    passwordPolicy: '',
    otpPolicyType: '',
    otpPolicyAlgorithm: '',
    otpPolicyInitialCounter: 0,
    otpPolicyDigits: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyCodeReusable: false,
    otpSupportedApplications: [],
    localizationTexts: {},
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyRpId: '',
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyUserVerificationRequirement: '',
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyExtraOrigins: [],
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessExtraOrigins: [],
    webAuthnPolicyPasswordlessPasskeysEnabled: false,
    clientProfiles: {
      profiles: [{name: '', description: '', executors: [{executor: '', configuration: {}}]}],
      globalProfiles: [{}]
    },
    clientPolicies: {
      policies: [
        {
          name: '',
          description: '',
          enabled: false,
          conditions: [{condition: '', configuration: {}}],
          profiles: []
        }
      ],
      globalPolicies: [{}]
    },
    users: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {}
      }
    ],
    federatedUsers: [{}],
    scopeMappings: [{self: '', client: '', clientTemplate: '', clientScope: '', roles: []}],
    clientScopeMappings: {},
    clients: [{}],
    clientScopes: [
      {
        id: '',
        name: '',
        description: '',
        protocol: '',
        attributes: {},
        protocolMappers: [{}]
      }
    ],
    defaultDefaultClientScopes: [],
    defaultOptionalClientScopes: [],
    browserSecurityHeaders: {},
    smtpServer: {},
    userFederationProviders: [
      {
        id: '',
        displayName: '',
        providerName: '',
        config: {},
        priority: 0,
        fullSyncPeriod: 0,
        changedSyncPeriod: 0,
        lastSync: 0
      }
    ],
    userFederationMappers: [
      {
        id: '',
        name: '',
        federationProviderDisplayName: '',
        federationMapperType: '',
        config: {}
      }
    ],
    loginTheme: '',
    accountTheme: '',
    adminTheme: '',
    emailTheme: '',
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    enabledEventTypes: [],
    adminEventsEnabled: false,
    adminEventsDetailsEnabled: false,
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: false
      }
    ],
    identityProviderMappers: [
      {
        id: '',
        name: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        config: {}
      }
    ],
    protocolMappers: [{}],
    components: {},
    internationalizationEnabled: false,
    supportedLocales: [],
    defaultLocale: '',
    authenticationFlows: [
      {
        id: '',
        alias: '',
        description: '',
        providerId: '',
        topLevel: false,
        builtIn: false,
        authenticationExecutions: [
          {
            authenticatorConfig: '',
            authenticator: '',
            authenticatorFlow: false,
            requirement: '',
            priority: 0,
            autheticatorFlow: false,
            flowAlias: '',
            userSetupAllowed: false
          }
        ]
      }
    ],
    authenticatorConfig: [{id: '', alias: '', config: {}}],
    requiredActions: [
      {
        alias: '',
        name: '',
        providerId: '',
        enabled: false,
        defaultAction: false,
        priority: 0,
        config: {}
      }
    ],
    browserFlow: '',
    registrationFlow: '',
    directGrantFlow: '',
    resetCredentialsFlow: '',
    clientAuthenticationFlow: '',
    dockerAuthenticationFlow: '',
    firstBrokerLoginFlow: '',
    attributes: {},
    keycloakVersion: '',
    userManagedAccessAllowed: false,
    organizationsEnabled: false,
    organizations: [
      {
        id: '',
        name: '',
        alias: '',
        enabled: false,
        description: '',
        redirectUrl: '',
        attributes: {},
        domains: [{name: '', verified: false}],
        members: [
          {
            id: '',
            username: '',
            firstName: '',
            lastName: '',
            email: '',
            emailVerified: false,
            attributes: {},
            userProfileMetadata: {},
            enabled: false,
            self: '',
            origin: '',
            createdTimestamp: 0,
            totp: false,
            federationLink: '',
            serviceAccountClientId: '',
            credentials: [{}],
            disableableCredentialTypes: [],
            requiredActions: [],
            federatedIdentities: [{}],
            realmRoles: [],
            clientRoles: {},
            clientConsents: [{}],
            notBefore: 0,
            applicationRoles: {},
            socialLinks: [{}],
            groups: [],
            access: {},
            membershipType: ''
          }
        ],
        identityProviders: [{}]
      }
    ],
    verifiableCredentialsEnabled: false,
    adminPermissionsEnabled: false,
    social: false,
    updateProfileOnInitialSocialLogin: false,
    socialProviders: {},
    applicationScopeMappings: {},
    applications: [
      {
        id: '',
        clientId: '',
        description: '',
        type: '',
        rootUrl: '',
        adminUrl: '',
        baseUrl: '',
        surrogateAuthRequired: false,
        enabled: false,
        alwaysDisplayInConsole: false,
        clientAuthenticatorType: '',
        secret: '',
        registrationAccessToken: '',
        defaultRoles: [],
        redirectUris: [],
        webOrigins: [],
        notBefore: 0,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        authorizationServicesEnabled: false,
        directGrantsOnly: false,
        publicClient: false,
        frontchannelLogout: false,
        protocol: '',
        attributes: {},
        authenticationFlowBindingOverrides: {},
        fullScopeAllowed: false,
        nodeReRegistrationTimeout: 0,
        registeredNodes: {},
        protocolMappers: [{}],
        clientTemplate: '',
        useTemplateConfig: false,
        useTemplateScope: false,
        useTemplateMappers: false,
        defaultClientScopes: [],
        optionalClientScopes: [],
        authorizationSettings: {},
        access: {},
        origin: '',
        name: '',
        claims: {}
      }
    ],
    oauthClients: [
      {
        id: '',
        clientId: '',
        description: '',
        type: '',
        rootUrl: '',
        adminUrl: '',
        baseUrl: '',
        surrogateAuthRequired: false,
        enabled: false,
        alwaysDisplayInConsole: false,
        clientAuthenticatorType: '',
        secret: '',
        registrationAccessToken: '',
        defaultRoles: [],
        redirectUris: [],
        webOrigins: [],
        notBefore: 0,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        authorizationServicesEnabled: false,
        directGrantsOnly: false,
        publicClient: false,
        frontchannelLogout: false,
        protocol: '',
        attributes: {},
        authenticationFlowBindingOverrides: {},
        fullScopeAllowed: false,
        nodeReRegistrationTimeout: 0,
        registeredNodes: {},
        protocolMappers: [{}],
        clientTemplate: '',
        useTemplateConfig: false,
        useTemplateScope: false,
        useTemplateMappers: false,
        defaultClientScopes: [],
        optionalClientScopes: [],
        authorizationSettings: {},
        access: {},
        origin: '',
        name: '',
        claims: {}
      }
    ],
    clientTemplates: [
      {
        id: '',
        name: '',
        description: '',
        protocol: '',
        fullScopeAllowed: false,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        publicClient: false,
        frontchannelLogout: false,
        attributes: {},
        protocolMappers: [{}]
      }
    ]
  },
  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}}/admin/realms/:realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  realm: '',
  displayName: '',
  displayNameHtml: '',
  notBefore: 0,
  defaultSignatureAlgorithm: '',
  revokeRefreshToken: false,
  refreshTokenMaxReuse: 0,
  accessTokenLifespan: 0,
  accessTokenLifespanForImplicitFlow: 0,
  ssoSessionIdleTimeout: 0,
  ssoSessionMaxLifespan: 0,
  ssoSessionIdleTimeoutRememberMe: 0,
  ssoSessionMaxLifespanRememberMe: 0,
  offlineSessionIdleTimeout: 0,
  offlineSessionMaxLifespanEnabled: false,
  offlineSessionMaxLifespan: 0,
  clientSessionIdleTimeout: 0,
  clientSessionMaxLifespan: 0,
  clientOfflineSessionIdleTimeout: 0,
  clientOfflineSessionMaxLifespan: 0,
  accessCodeLifespan: 0,
  accessCodeLifespanUserAction: 0,
  accessCodeLifespanLogin: 0,
  actionTokenGeneratedByAdminLifespan: 0,
  actionTokenGeneratedByUserLifespan: 0,
  oauth2DeviceCodeLifespan: 0,
  oauth2DevicePollingInterval: 0,
  enabled: false,
  sslRequired: '',
  passwordCredentialGrantAllowed: false,
  registrationAllowed: false,
  registrationEmailAsUsername: false,
  rememberMe: false,
  verifyEmail: false,
  loginWithEmailAllowed: false,
  duplicateEmailsAllowed: false,
  resetPasswordAllowed: false,
  editUsernameAllowed: false,
  userCacheEnabled: false,
  realmCacheEnabled: false,
  bruteForceProtected: false,
  permanentLockout: false,
  maxTemporaryLockouts: 0,
  bruteForceStrategy: '',
  maxFailureWaitSeconds: 0,
  minimumQuickLoginWaitSeconds: 0,
  waitIncrementSeconds: 0,
  quickLoginCheckMilliSeconds: 0,
  maxDeltaTimeSeconds: 0,
  failureFactor: 0,
  privateKey: '',
  publicKey: '',
  certificate: '',
  codeSecret: '',
  roles: {
    realm: [
      {
        id: '',
        name: '',
        description: '',
        scopeParamRequired: false,
        composite: false,
        composites: {
          realm: [],
          client: {},
          application: {}
        },
        clientRole: false,
        containerId: '',
        attributes: {}
      }
    ],
    client: {},
    application: {}
  },
  groups: [
    {
      id: '',
      name: '',
      description: '',
      path: '',
      parentId: '',
      subGroupCount: 0,
      subGroups: [],
      attributes: {},
      realmRoles: [],
      clientRoles: {},
      access: {}
    }
  ],
  defaultRoles: [],
  defaultRole: {},
  adminPermissionsClient: {
    id: '',
    clientId: '',
    name: '',
    description: '',
    type: '',
    rootUrl: '',
    adminUrl: '',
    baseUrl: '',
    surrogateAuthRequired: false,
    enabled: false,
    alwaysDisplayInConsole: false,
    clientAuthenticatorType: '',
    secret: '',
    registrationAccessToken: '',
    defaultRoles: [],
    redirectUris: [],
    webOrigins: [],
    notBefore: 0,
    bearerOnly: false,
    consentRequired: false,
    standardFlowEnabled: false,
    implicitFlowEnabled: false,
    directAccessGrantsEnabled: false,
    serviceAccountsEnabled: false,
    authorizationServicesEnabled: false,
    directGrantsOnly: false,
    publicClient: false,
    frontchannelLogout: false,
    protocol: '',
    attributes: {},
    authenticationFlowBindingOverrides: {},
    fullScopeAllowed: false,
    nodeReRegistrationTimeout: 0,
    registeredNodes: {},
    protocolMappers: [
      {
        id: '',
        name: '',
        protocol: '',
        protocolMapper: '',
        consentRequired: false,
        consentText: '',
        config: {}
      }
    ],
    clientTemplate: '',
    useTemplateConfig: false,
    useTemplateScope: false,
    useTemplateMappers: false,
    defaultClientScopes: [],
    optionalClientScopes: [],
    authorizationSettings: {
      id: '',
      clientId: '',
      name: '',
      allowRemoteResourceManagement: false,
      policyEnforcementMode: '',
      resources: [
        {
          _id: '',
          name: '',
          uris: [],
          type: '',
          scopes: [
            {
              id: '',
              name: '',
              iconUri: '',
              policies: [
                {
                  id: '',
                  name: '',
                  description: '',
                  type: '',
                  policies: [],
                  resources: [],
                  scopes: [],
                  logic: '',
                  decisionStrategy: '',
                  owner: '',
                  resourceType: '',
                  resourcesData: [],
                  scopesData: [],
                  config: {}
                }
              ],
              resources: [],
              displayName: ''
            }
          ],
          icon_uri: '',
          owner: {},
          ownerManagedAccess: false,
          displayName: '',
          attributes: {},
          uri: '',
          scopesUma: [
            {}
          ]
        }
      ],
      policies: [
        {}
      ],
      scopes: [
        {}
      ],
      decisionStrategy: '',
      authorizationSchema: {
        resourceTypes: {}
      }
    },
    access: {},
    origin: ''
  },
  defaultGroups: [],
  requiredCredentials: [],
  passwordPolicy: '',
  otpPolicyType: '',
  otpPolicyAlgorithm: '',
  otpPolicyInitialCounter: 0,
  otpPolicyDigits: 0,
  otpPolicyLookAheadWindow: 0,
  otpPolicyPeriod: 0,
  otpPolicyCodeReusable: false,
  otpSupportedApplications: [],
  localizationTexts: {},
  webAuthnPolicyRpEntityName: '',
  webAuthnPolicySignatureAlgorithms: [],
  webAuthnPolicyRpId: '',
  webAuthnPolicyAttestationConveyancePreference: '',
  webAuthnPolicyAuthenticatorAttachment: '',
  webAuthnPolicyRequireResidentKey: '',
  webAuthnPolicyUserVerificationRequirement: '',
  webAuthnPolicyCreateTimeout: 0,
  webAuthnPolicyAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyAcceptableAaguids: [],
  webAuthnPolicyExtraOrigins: [],
  webAuthnPolicyPasswordlessRpEntityName: '',
  webAuthnPolicyPasswordlessSignatureAlgorithms: [],
  webAuthnPolicyPasswordlessRpId: '',
  webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
  webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
  webAuthnPolicyPasswordlessRequireResidentKey: '',
  webAuthnPolicyPasswordlessUserVerificationRequirement: '',
  webAuthnPolicyPasswordlessCreateTimeout: 0,
  webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
  webAuthnPolicyPasswordlessAcceptableAaguids: [],
  webAuthnPolicyPasswordlessExtraOrigins: [],
  webAuthnPolicyPasswordlessPasskeysEnabled: false,
  clientProfiles: {
    profiles: [
      {
        name: '',
        description: '',
        executors: [
          {
            executor: '',
            configuration: {}
          }
        ]
      }
    ],
    globalProfiles: [
      {}
    ]
  },
  clientPolicies: {
    policies: [
      {
        name: '',
        description: '',
        enabled: false,
        conditions: [
          {
            condition: '',
            configuration: {}
          }
        ],
        profiles: []
      }
    ],
    globalPolicies: [
      {}
    ]
  },
  users: [
    {
      id: '',
      username: '',
      firstName: '',
      lastName: '',
      email: '',
      emailVerified: false,
      attributes: {},
      userProfileMetadata: {
        attributes: [
          {
            name: '',
            displayName: '',
            required: false,
            readOnly: false,
            annotations: {},
            validators: {},
            group: '',
            multivalued: false,
            defaultValue: ''
          }
        ],
        groups: [
          {
            name: '',
            displayHeader: '',
            displayDescription: '',
            annotations: {}
          }
        ]
      },
      enabled: false,
      self: '',
      origin: '',
      createdTimestamp: 0,
      totp: false,
      federationLink: '',
      serviceAccountClientId: '',
      credentials: [
        {
          id: '',
          type: '',
          userLabel: '',
          createdDate: 0,
          secretData: '',
          credentialData: '',
          priority: 0,
          value: '',
          temporary: false,
          device: '',
          hashedSaltedValue: '',
          salt: '',
          hashIterations: 0,
          counter: 0,
          algorithm: '',
          digits: 0,
          period: 0,
          config: {},
          federationLink: ''
        }
      ],
      disableableCredentialTypes: [],
      requiredActions: [],
      federatedIdentities: [
        {
          identityProvider: '',
          userId: '',
          userName: ''
        }
      ],
      realmRoles: [],
      clientRoles: {},
      clientConsents: [
        {
          clientId: '',
          grantedClientScopes: [],
          createdDate: 0,
          lastUpdatedDate: 0,
          grantedRealmRoles: []
        }
      ],
      notBefore: 0,
      applicationRoles: {},
      socialLinks: [
        {
          socialProvider: '',
          socialUserId: '',
          socialUsername: ''
        }
      ],
      groups: [],
      access: {}
    }
  ],
  federatedUsers: [
    {}
  ],
  scopeMappings: [
    {
      self: '',
      client: '',
      clientTemplate: '',
      clientScope: '',
      roles: []
    }
  ],
  clientScopeMappings: {},
  clients: [
    {}
  ],
  clientScopes: [
    {
      id: '',
      name: '',
      description: '',
      protocol: '',
      attributes: {},
      protocolMappers: [
        {}
      ]
    }
  ],
  defaultDefaultClientScopes: [],
  defaultOptionalClientScopes: [],
  browserSecurityHeaders: {},
  smtpServer: {},
  userFederationProviders: [
    {
      id: '',
      displayName: '',
      providerName: '',
      config: {},
      priority: 0,
      fullSyncPeriod: 0,
      changedSyncPeriod: 0,
      lastSync: 0
    }
  ],
  userFederationMappers: [
    {
      id: '',
      name: '',
      federationProviderDisplayName: '',
      federationMapperType: '',
      config: {}
    }
  ],
  loginTheme: '',
  accountTheme: '',
  adminTheme: '',
  emailTheme: '',
  eventsEnabled: false,
  eventsExpiration: 0,
  eventsListeners: [],
  enabledEventTypes: [],
  adminEventsEnabled: false,
  adminEventsDetailsEnabled: false,
  identityProviders: [
    {
      alias: '',
      displayName: '',
      internalId: '',
      providerId: '',
      enabled: false,
      updateProfileFirstLoginMode: '',
      trustEmail: false,
      storeToken: false,
      addReadTokenRoleOnCreate: false,
      authenticateByDefault: false,
      linkOnly: false,
      hideOnLogin: false,
      firstBrokerLoginFlowAlias: '',
      postBrokerLoginFlowAlias: '',
      organizationId: '',
      config: {},
      updateProfileFirstLogin: false
    }
  ],
  identityProviderMappers: [
    {
      id: '',
      name: '',
      identityProviderAlias: '',
      identityProviderMapper: '',
      config: {}
    }
  ],
  protocolMappers: [
    {}
  ],
  components: {},
  internationalizationEnabled: false,
  supportedLocales: [],
  defaultLocale: '',
  authenticationFlows: [
    {
      id: '',
      alias: '',
      description: '',
      providerId: '',
      topLevel: false,
      builtIn: false,
      authenticationExecutions: [
        {
          authenticatorConfig: '',
          authenticator: '',
          authenticatorFlow: false,
          requirement: '',
          priority: 0,
          autheticatorFlow: false,
          flowAlias: '',
          userSetupAllowed: false
        }
      ]
    }
  ],
  authenticatorConfig: [
    {
      id: '',
      alias: '',
      config: {}
    }
  ],
  requiredActions: [
    {
      alias: '',
      name: '',
      providerId: '',
      enabled: false,
      defaultAction: false,
      priority: 0,
      config: {}
    }
  ],
  browserFlow: '',
  registrationFlow: '',
  directGrantFlow: '',
  resetCredentialsFlow: '',
  clientAuthenticationFlow: '',
  dockerAuthenticationFlow: '',
  firstBrokerLoginFlow: '',
  attributes: {},
  keycloakVersion: '',
  userManagedAccessAllowed: false,
  organizationsEnabled: false,
  organizations: [
    {
      id: '',
      name: '',
      alias: '',
      enabled: false,
      description: '',
      redirectUrl: '',
      attributes: {},
      domains: [
        {
          name: '',
          verified: false
        }
      ],
      members: [
        {
          id: '',
          username: '',
          firstName: '',
          lastName: '',
          email: '',
          emailVerified: false,
          attributes: {},
          userProfileMetadata: {},
          enabled: false,
          self: '',
          origin: '',
          createdTimestamp: 0,
          totp: false,
          federationLink: '',
          serviceAccountClientId: '',
          credentials: [
            {}
          ],
          disableableCredentialTypes: [],
          requiredActions: [],
          federatedIdentities: [
            {}
          ],
          realmRoles: [],
          clientRoles: {},
          clientConsents: [
            {}
          ],
          notBefore: 0,
          applicationRoles: {},
          socialLinks: [
            {}
          ],
          groups: [],
          access: {},
          membershipType: ''
        }
      ],
      identityProviders: [
        {}
      ]
    }
  ],
  verifiableCredentialsEnabled: false,
  adminPermissionsEnabled: false,
  social: false,
  updateProfileOnInitialSocialLogin: false,
  socialProviders: {},
  applicationScopeMappings: {},
  applications: [
    {
      id: '',
      clientId: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [
        {}
      ],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {},
      access: {},
      origin: '',
      name: '',
      claims: {}
    }
  ],
  oauthClients: [
    {
      id: '',
      clientId: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [
        {}
      ],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {},
      access: {},
      origin: '',
      name: '',
      claims: {}
    }
  ],
  clientTemplates: [
    {
      id: '',
      name: '',
      description: '',
      protocol: '',
      fullScopeAllowed: false,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      publicClient: false,
      frontchannelLogout: false,
      attributes: {},
      protocolMappers: [
        {}
      ]
    }
  ]
});

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}}/admin/realms/:realm',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    realm: '',
    displayName: '',
    displayNameHtml: '',
    notBefore: 0,
    defaultSignatureAlgorithm: '',
    revokeRefreshToken: false,
    refreshTokenMaxReuse: 0,
    accessTokenLifespan: 0,
    accessTokenLifespanForImplicitFlow: 0,
    ssoSessionIdleTimeout: 0,
    ssoSessionMaxLifespan: 0,
    ssoSessionIdleTimeoutRememberMe: 0,
    ssoSessionMaxLifespanRememberMe: 0,
    offlineSessionIdleTimeout: 0,
    offlineSessionMaxLifespanEnabled: false,
    offlineSessionMaxLifespan: 0,
    clientSessionIdleTimeout: 0,
    clientSessionMaxLifespan: 0,
    clientOfflineSessionIdleTimeout: 0,
    clientOfflineSessionMaxLifespan: 0,
    accessCodeLifespan: 0,
    accessCodeLifespanUserAction: 0,
    accessCodeLifespanLogin: 0,
    actionTokenGeneratedByAdminLifespan: 0,
    actionTokenGeneratedByUserLifespan: 0,
    oauth2DeviceCodeLifespan: 0,
    oauth2DevicePollingInterval: 0,
    enabled: false,
    sslRequired: '',
    passwordCredentialGrantAllowed: false,
    registrationAllowed: false,
    registrationEmailAsUsername: false,
    rememberMe: false,
    verifyEmail: false,
    loginWithEmailAllowed: false,
    duplicateEmailsAllowed: false,
    resetPasswordAllowed: false,
    editUsernameAllowed: false,
    userCacheEnabled: false,
    realmCacheEnabled: false,
    bruteForceProtected: false,
    permanentLockout: false,
    maxTemporaryLockouts: 0,
    bruteForceStrategy: '',
    maxFailureWaitSeconds: 0,
    minimumQuickLoginWaitSeconds: 0,
    waitIncrementSeconds: 0,
    quickLoginCheckMilliSeconds: 0,
    maxDeltaTimeSeconds: 0,
    failureFactor: 0,
    privateKey: '',
    publicKey: '',
    certificate: '',
    codeSecret: '',
    roles: {
      realm: [
        {
          id: '',
          name: '',
          description: '',
          scopeParamRequired: false,
          composite: false,
          composites: {realm: [], client: {}, application: {}},
          clientRole: false,
          containerId: '',
          attributes: {}
        }
      ],
      client: {},
      application: {}
    },
    groups: [
      {
        id: '',
        name: '',
        description: '',
        path: '',
        parentId: '',
        subGroupCount: 0,
        subGroups: [],
        attributes: {},
        realmRoles: [],
        clientRoles: {},
        access: {}
      }
    ],
    defaultRoles: [],
    defaultRole: {},
    adminPermissionsClient: {
      id: '',
      clientId: '',
      name: '',
      description: '',
      type: '',
      rootUrl: '',
      adminUrl: '',
      baseUrl: '',
      surrogateAuthRequired: false,
      enabled: false,
      alwaysDisplayInConsole: false,
      clientAuthenticatorType: '',
      secret: '',
      registrationAccessToken: '',
      defaultRoles: [],
      redirectUris: [],
      webOrigins: [],
      notBefore: 0,
      bearerOnly: false,
      consentRequired: false,
      standardFlowEnabled: false,
      implicitFlowEnabled: false,
      directAccessGrantsEnabled: false,
      serviceAccountsEnabled: false,
      authorizationServicesEnabled: false,
      directGrantsOnly: false,
      publicClient: false,
      frontchannelLogout: false,
      protocol: '',
      attributes: {},
      authenticationFlowBindingOverrides: {},
      fullScopeAllowed: false,
      nodeReRegistrationTimeout: 0,
      registeredNodes: {},
      protocolMappers: [
        {
          id: '',
          name: '',
          protocol: '',
          protocolMapper: '',
          consentRequired: false,
          consentText: '',
          config: {}
        }
      ],
      clientTemplate: '',
      useTemplateConfig: false,
      useTemplateScope: false,
      useTemplateMappers: false,
      defaultClientScopes: [],
      optionalClientScopes: [],
      authorizationSettings: {
        id: '',
        clientId: '',
        name: '',
        allowRemoteResourceManagement: false,
        policyEnforcementMode: '',
        resources: [
          {
            _id: '',
            name: '',
            uris: [],
            type: '',
            scopes: [
              {
                id: '',
                name: '',
                iconUri: '',
                policies: [
                  {
                    id: '',
                    name: '',
                    description: '',
                    type: '',
                    policies: [],
                    resources: [],
                    scopes: [],
                    logic: '',
                    decisionStrategy: '',
                    owner: '',
                    resourceType: '',
                    resourcesData: [],
                    scopesData: [],
                    config: {}
                  }
                ],
                resources: [],
                displayName: ''
              }
            ],
            icon_uri: '',
            owner: {},
            ownerManagedAccess: false,
            displayName: '',
            attributes: {},
            uri: '',
            scopesUma: [{}]
          }
        ],
        policies: [{}],
        scopes: [{}],
        decisionStrategy: '',
        authorizationSchema: {resourceTypes: {}}
      },
      access: {},
      origin: ''
    },
    defaultGroups: [],
    requiredCredentials: [],
    passwordPolicy: '',
    otpPolicyType: '',
    otpPolicyAlgorithm: '',
    otpPolicyInitialCounter: 0,
    otpPolicyDigits: 0,
    otpPolicyLookAheadWindow: 0,
    otpPolicyPeriod: 0,
    otpPolicyCodeReusable: false,
    otpSupportedApplications: [],
    localizationTexts: {},
    webAuthnPolicyRpEntityName: '',
    webAuthnPolicySignatureAlgorithms: [],
    webAuthnPolicyRpId: '',
    webAuthnPolicyAttestationConveyancePreference: '',
    webAuthnPolicyAuthenticatorAttachment: '',
    webAuthnPolicyRequireResidentKey: '',
    webAuthnPolicyUserVerificationRequirement: '',
    webAuthnPolicyCreateTimeout: 0,
    webAuthnPolicyAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyAcceptableAaguids: [],
    webAuthnPolicyExtraOrigins: [],
    webAuthnPolicyPasswordlessRpEntityName: '',
    webAuthnPolicyPasswordlessSignatureAlgorithms: [],
    webAuthnPolicyPasswordlessRpId: '',
    webAuthnPolicyPasswordlessAttestationConveyancePreference: '',
    webAuthnPolicyPasswordlessAuthenticatorAttachment: '',
    webAuthnPolicyPasswordlessRequireResidentKey: '',
    webAuthnPolicyPasswordlessUserVerificationRequirement: '',
    webAuthnPolicyPasswordlessCreateTimeout: 0,
    webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: false,
    webAuthnPolicyPasswordlessAcceptableAaguids: [],
    webAuthnPolicyPasswordlessExtraOrigins: [],
    webAuthnPolicyPasswordlessPasskeysEnabled: false,
    clientProfiles: {
      profiles: [{name: '', description: '', executors: [{executor: '', configuration: {}}]}],
      globalProfiles: [{}]
    },
    clientPolicies: {
      policies: [
        {
          name: '',
          description: '',
          enabled: false,
          conditions: [{condition: '', configuration: {}}],
          profiles: []
        }
      ],
      globalPolicies: [{}]
    },
    users: [
      {
        id: '',
        username: '',
        firstName: '',
        lastName: '',
        email: '',
        emailVerified: false,
        attributes: {},
        userProfileMetadata: {
          attributes: [
            {
              name: '',
              displayName: '',
              required: false,
              readOnly: false,
              annotations: {},
              validators: {},
              group: '',
              multivalued: false,
              defaultValue: ''
            }
          ],
          groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
        },
        enabled: false,
        self: '',
        origin: '',
        createdTimestamp: 0,
        totp: false,
        federationLink: '',
        serviceAccountClientId: '',
        credentials: [
          {
            id: '',
            type: '',
            userLabel: '',
            createdDate: 0,
            secretData: '',
            credentialData: '',
            priority: 0,
            value: '',
            temporary: false,
            device: '',
            hashedSaltedValue: '',
            salt: '',
            hashIterations: 0,
            counter: 0,
            algorithm: '',
            digits: 0,
            period: 0,
            config: {},
            federationLink: ''
          }
        ],
        disableableCredentialTypes: [],
        requiredActions: [],
        federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
        realmRoles: [],
        clientRoles: {},
        clientConsents: [
          {
            clientId: '',
            grantedClientScopes: [],
            createdDate: 0,
            lastUpdatedDate: 0,
            grantedRealmRoles: []
          }
        ],
        notBefore: 0,
        applicationRoles: {},
        socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
        groups: [],
        access: {}
      }
    ],
    federatedUsers: [{}],
    scopeMappings: [{self: '', client: '', clientTemplate: '', clientScope: '', roles: []}],
    clientScopeMappings: {},
    clients: [{}],
    clientScopes: [
      {
        id: '',
        name: '',
        description: '',
        protocol: '',
        attributes: {},
        protocolMappers: [{}]
      }
    ],
    defaultDefaultClientScopes: [],
    defaultOptionalClientScopes: [],
    browserSecurityHeaders: {},
    smtpServer: {},
    userFederationProviders: [
      {
        id: '',
        displayName: '',
        providerName: '',
        config: {},
        priority: 0,
        fullSyncPeriod: 0,
        changedSyncPeriod: 0,
        lastSync: 0
      }
    ],
    userFederationMappers: [
      {
        id: '',
        name: '',
        federationProviderDisplayName: '',
        federationMapperType: '',
        config: {}
      }
    ],
    loginTheme: '',
    accountTheme: '',
    adminTheme: '',
    emailTheme: '',
    eventsEnabled: false,
    eventsExpiration: 0,
    eventsListeners: [],
    enabledEventTypes: [],
    adminEventsEnabled: false,
    adminEventsDetailsEnabled: false,
    identityProviders: [
      {
        alias: '',
        displayName: '',
        internalId: '',
        providerId: '',
        enabled: false,
        updateProfileFirstLoginMode: '',
        trustEmail: false,
        storeToken: false,
        addReadTokenRoleOnCreate: false,
        authenticateByDefault: false,
        linkOnly: false,
        hideOnLogin: false,
        firstBrokerLoginFlowAlias: '',
        postBrokerLoginFlowAlias: '',
        organizationId: '',
        config: {},
        updateProfileFirstLogin: false
      }
    ],
    identityProviderMappers: [
      {
        id: '',
        name: '',
        identityProviderAlias: '',
        identityProviderMapper: '',
        config: {}
      }
    ],
    protocolMappers: [{}],
    components: {},
    internationalizationEnabled: false,
    supportedLocales: [],
    defaultLocale: '',
    authenticationFlows: [
      {
        id: '',
        alias: '',
        description: '',
        providerId: '',
        topLevel: false,
        builtIn: false,
        authenticationExecutions: [
          {
            authenticatorConfig: '',
            authenticator: '',
            authenticatorFlow: false,
            requirement: '',
            priority: 0,
            autheticatorFlow: false,
            flowAlias: '',
            userSetupAllowed: false
          }
        ]
      }
    ],
    authenticatorConfig: [{id: '', alias: '', config: {}}],
    requiredActions: [
      {
        alias: '',
        name: '',
        providerId: '',
        enabled: false,
        defaultAction: false,
        priority: 0,
        config: {}
      }
    ],
    browserFlow: '',
    registrationFlow: '',
    directGrantFlow: '',
    resetCredentialsFlow: '',
    clientAuthenticationFlow: '',
    dockerAuthenticationFlow: '',
    firstBrokerLoginFlow: '',
    attributes: {},
    keycloakVersion: '',
    userManagedAccessAllowed: false,
    organizationsEnabled: false,
    organizations: [
      {
        id: '',
        name: '',
        alias: '',
        enabled: false,
        description: '',
        redirectUrl: '',
        attributes: {},
        domains: [{name: '', verified: false}],
        members: [
          {
            id: '',
            username: '',
            firstName: '',
            lastName: '',
            email: '',
            emailVerified: false,
            attributes: {},
            userProfileMetadata: {},
            enabled: false,
            self: '',
            origin: '',
            createdTimestamp: 0,
            totp: false,
            federationLink: '',
            serviceAccountClientId: '',
            credentials: [{}],
            disableableCredentialTypes: [],
            requiredActions: [],
            federatedIdentities: [{}],
            realmRoles: [],
            clientRoles: {},
            clientConsents: [{}],
            notBefore: 0,
            applicationRoles: {},
            socialLinks: [{}],
            groups: [],
            access: {},
            membershipType: ''
          }
        ],
        identityProviders: [{}]
      }
    ],
    verifiableCredentialsEnabled: false,
    adminPermissionsEnabled: false,
    social: false,
    updateProfileOnInitialSocialLogin: false,
    socialProviders: {},
    applicationScopeMappings: {},
    applications: [
      {
        id: '',
        clientId: '',
        description: '',
        type: '',
        rootUrl: '',
        adminUrl: '',
        baseUrl: '',
        surrogateAuthRequired: false,
        enabled: false,
        alwaysDisplayInConsole: false,
        clientAuthenticatorType: '',
        secret: '',
        registrationAccessToken: '',
        defaultRoles: [],
        redirectUris: [],
        webOrigins: [],
        notBefore: 0,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        authorizationServicesEnabled: false,
        directGrantsOnly: false,
        publicClient: false,
        frontchannelLogout: false,
        protocol: '',
        attributes: {},
        authenticationFlowBindingOverrides: {},
        fullScopeAllowed: false,
        nodeReRegistrationTimeout: 0,
        registeredNodes: {},
        protocolMappers: [{}],
        clientTemplate: '',
        useTemplateConfig: false,
        useTemplateScope: false,
        useTemplateMappers: false,
        defaultClientScopes: [],
        optionalClientScopes: [],
        authorizationSettings: {},
        access: {},
        origin: '',
        name: '',
        claims: {}
      }
    ],
    oauthClients: [
      {
        id: '',
        clientId: '',
        description: '',
        type: '',
        rootUrl: '',
        adminUrl: '',
        baseUrl: '',
        surrogateAuthRequired: false,
        enabled: false,
        alwaysDisplayInConsole: false,
        clientAuthenticatorType: '',
        secret: '',
        registrationAccessToken: '',
        defaultRoles: [],
        redirectUris: [],
        webOrigins: [],
        notBefore: 0,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        authorizationServicesEnabled: false,
        directGrantsOnly: false,
        publicClient: false,
        frontchannelLogout: false,
        protocol: '',
        attributes: {},
        authenticationFlowBindingOverrides: {},
        fullScopeAllowed: false,
        nodeReRegistrationTimeout: 0,
        registeredNodes: {},
        protocolMappers: [{}],
        clientTemplate: '',
        useTemplateConfig: false,
        useTemplateScope: false,
        useTemplateMappers: false,
        defaultClientScopes: [],
        optionalClientScopes: [],
        authorizationSettings: {},
        access: {},
        origin: '',
        name: '',
        claims: {}
      }
    ],
    clientTemplates: [
      {
        id: '',
        name: '',
        description: '',
        protocol: '',
        fullScopeAllowed: false,
        bearerOnly: false,
        consentRequired: false,
        standardFlowEnabled: false,
        implicitFlowEnabled: false,
        directAccessGrantsEnabled: false,
        serviceAccountsEnabled: false,
        publicClient: false,
        frontchannelLogout: false,
        attributes: {},
        protocolMappers: [{}]
      }
    ]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","realm":"","displayName":"","displayNameHtml":"","notBefore":0,"defaultSignatureAlgorithm":"","revokeRefreshToken":false,"refreshTokenMaxReuse":0,"accessTokenLifespan":0,"accessTokenLifespanForImplicitFlow":0,"ssoSessionIdleTimeout":0,"ssoSessionMaxLifespan":0,"ssoSessionIdleTimeoutRememberMe":0,"ssoSessionMaxLifespanRememberMe":0,"offlineSessionIdleTimeout":0,"offlineSessionMaxLifespanEnabled":false,"offlineSessionMaxLifespan":0,"clientSessionIdleTimeout":0,"clientSessionMaxLifespan":0,"clientOfflineSessionIdleTimeout":0,"clientOfflineSessionMaxLifespan":0,"accessCodeLifespan":0,"accessCodeLifespanUserAction":0,"accessCodeLifespanLogin":0,"actionTokenGeneratedByAdminLifespan":0,"actionTokenGeneratedByUserLifespan":0,"oauth2DeviceCodeLifespan":0,"oauth2DevicePollingInterval":0,"enabled":false,"sslRequired":"","passwordCredentialGrantAllowed":false,"registrationAllowed":false,"registrationEmailAsUsername":false,"rememberMe":false,"verifyEmail":false,"loginWithEmailAllowed":false,"duplicateEmailsAllowed":false,"resetPasswordAllowed":false,"editUsernameAllowed":false,"userCacheEnabled":false,"realmCacheEnabled":false,"bruteForceProtected":false,"permanentLockout":false,"maxTemporaryLockouts":0,"bruteForceStrategy":"","maxFailureWaitSeconds":0,"minimumQuickLoginWaitSeconds":0,"waitIncrementSeconds":0,"quickLoginCheckMilliSeconds":0,"maxDeltaTimeSeconds":0,"failureFactor":0,"privateKey":"","publicKey":"","certificate":"","codeSecret":"","roles":{"realm":[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}],"client":{},"application":{}},"groups":[{"id":"","name":"","description":"","path":"","parentId":"","subGroupCount":0,"subGroups":[],"attributes":{},"realmRoles":[],"clientRoles":{},"access":{}}],"defaultRoles":[],"defaultRole":{},"adminPermissionsClient":{"id":"","clientId":"","name":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{"id":"","name":"","protocol":"","protocolMapper":"","consentRequired":false,"consentText":"","config":{}}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}},"access":{},"origin":""},"defaultGroups":[],"requiredCredentials":[],"passwordPolicy":"","otpPolicyType":"","otpPolicyAlgorithm":"","otpPolicyInitialCounter":0,"otpPolicyDigits":0,"otpPolicyLookAheadWindow":0,"otpPolicyPeriod":0,"otpPolicyCodeReusable":false,"otpSupportedApplications":[],"localizationTexts":{},"webAuthnPolicyRpEntityName":"","webAuthnPolicySignatureAlgorithms":[],"webAuthnPolicyRpId":"","webAuthnPolicyAttestationConveyancePreference":"","webAuthnPolicyAuthenticatorAttachment":"","webAuthnPolicyRequireResidentKey":"","webAuthnPolicyUserVerificationRequirement":"","webAuthnPolicyCreateTimeout":0,"webAuthnPolicyAvoidSameAuthenticatorRegister":false,"webAuthnPolicyAcceptableAaguids":[],"webAuthnPolicyExtraOrigins":[],"webAuthnPolicyPasswordlessRpEntityName":"","webAuthnPolicyPasswordlessSignatureAlgorithms":[],"webAuthnPolicyPasswordlessRpId":"","webAuthnPolicyPasswordlessAttestationConveyancePreference":"","webAuthnPolicyPasswordlessAuthenticatorAttachment":"","webAuthnPolicyPasswordlessRequireResidentKey":"","webAuthnPolicyPasswordlessUserVerificationRequirement":"","webAuthnPolicyPasswordlessCreateTimeout":0,"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister":false,"webAuthnPolicyPasswordlessAcceptableAaguids":[],"webAuthnPolicyPasswordlessExtraOrigins":[],"webAuthnPolicyPasswordlessPasskeysEnabled":false,"clientProfiles":{"profiles":[{"name":"","description":"","executors":[{"executor":"","configuration":{}}]}],"globalProfiles":[{}]},"clientPolicies":{"policies":[{"name":"","description":"","enabled":false,"conditions":[{"condition":"","configuration":{}}],"profiles":[]}],"globalPolicies":[{}]},"users":[{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{}}],"federatedUsers":[{}],"scopeMappings":[{"self":"","client":"","clientTemplate":"","clientScope":"","roles":[]}],"clientScopeMappings":{},"clients":[{}],"clientScopes":[{"id":"","name":"","description":"","protocol":"","attributes":{},"protocolMappers":[{}]}],"defaultDefaultClientScopes":[],"defaultOptionalClientScopes":[],"browserSecurityHeaders":{},"smtpServer":{},"userFederationProviders":[{"id":"","displayName":"","providerName":"","config":{},"priority":0,"fullSyncPeriod":0,"changedSyncPeriod":0,"lastSync":0}],"userFederationMappers":[{"id":"","name":"","federationProviderDisplayName":"","federationMapperType":"","config":{}}],"loginTheme":"","accountTheme":"","adminTheme":"","emailTheme":"","eventsEnabled":false,"eventsExpiration":0,"eventsListeners":[],"enabledEventTypes":[],"adminEventsEnabled":false,"adminEventsDetailsEnabled":false,"identityProviders":[{"alias":"","displayName":"","internalId":"","providerId":"","enabled":false,"updateProfileFirstLoginMode":"","trustEmail":false,"storeToken":false,"addReadTokenRoleOnCreate":false,"authenticateByDefault":false,"linkOnly":false,"hideOnLogin":false,"firstBrokerLoginFlowAlias":"","postBrokerLoginFlowAlias":"","organizationId":"","config":{},"updateProfileFirstLogin":false}],"identityProviderMappers":[{"id":"","name":"","identityProviderAlias":"","identityProviderMapper":"","config":{}}],"protocolMappers":[{}],"components":{},"internationalizationEnabled":false,"supportedLocales":[],"defaultLocale":"","authenticationFlows":[{"id":"","alias":"","description":"","providerId":"","topLevel":false,"builtIn":false,"authenticationExecutions":[{"authenticatorConfig":"","authenticator":"","authenticatorFlow":false,"requirement":"","priority":0,"autheticatorFlow":false,"flowAlias":"","userSetupAllowed":false}]}],"authenticatorConfig":[{"id":"","alias":"","config":{}}],"requiredActions":[{"alias":"","name":"","providerId":"","enabled":false,"defaultAction":false,"priority":0,"config":{}}],"browserFlow":"","registrationFlow":"","directGrantFlow":"","resetCredentialsFlow":"","clientAuthenticationFlow":"","dockerAuthenticationFlow":"","firstBrokerLoginFlow":"","attributes":{},"keycloakVersion":"","userManagedAccessAllowed":false,"organizationsEnabled":false,"organizations":[{"id":"","name":"","alias":"","enabled":false,"description":"","redirectUrl":"","attributes":{},"domains":[{"name":"","verified":false}],"members":[{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{}],"realmRoles":[],"clientRoles":{},"clientConsents":[{}],"notBefore":0,"applicationRoles":{},"socialLinks":[{}],"groups":[],"access":{},"membershipType":""}],"identityProviders":[{}]}],"verifiableCredentialsEnabled":false,"adminPermissionsEnabled":false,"social":false,"updateProfileOnInitialSocialLogin":false,"socialProviders":{},"applicationScopeMappings":{},"applications":[{"id":"","clientId":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{},"access":{},"origin":"","name":"","claims":{}}],"oauthClients":[{"id":"","clientId":"","description":"","type":"","rootUrl":"","adminUrl":"","baseUrl":"","surrogateAuthRequired":false,"enabled":false,"alwaysDisplayInConsole":false,"clientAuthenticatorType":"","secret":"","registrationAccessToken":"","defaultRoles":[],"redirectUris":[],"webOrigins":[],"notBefore":0,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"authorizationServicesEnabled":false,"directGrantsOnly":false,"publicClient":false,"frontchannelLogout":false,"protocol":"","attributes":{},"authenticationFlowBindingOverrides":{},"fullScopeAllowed":false,"nodeReRegistrationTimeout":0,"registeredNodes":{},"protocolMappers":[{}],"clientTemplate":"","useTemplateConfig":false,"useTemplateScope":false,"useTemplateMappers":false,"defaultClientScopes":[],"optionalClientScopes":[],"authorizationSettings":{},"access":{},"origin":"","name":"","claims":{}}],"clientTemplates":[{"id":"","name":"","description":"","protocol":"","fullScopeAllowed":false,"bearerOnly":false,"consentRequired":false,"standardFlowEnabled":false,"implicitFlowEnabled":false,"directAccessGrantsEnabled":false,"serviceAccountsEnabled":false,"publicClient":false,"frontchannelLogout":false,"attributes":{},"protocolMappers":[{}]}]}'
};

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 = @{ @"id": @"",
                              @"realm": @"",
                              @"displayName": @"",
                              @"displayNameHtml": @"",
                              @"notBefore": @0,
                              @"defaultSignatureAlgorithm": @"",
                              @"revokeRefreshToken": @NO,
                              @"refreshTokenMaxReuse": @0,
                              @"accessTokenLifespan": @0,
                              @"accessTokenLifespanForImplicitFlow": @0,
                              @"ssoSessionIdleTimeout": @0,
                              @"ssoSessionMaxLifespan": @0,
                              @"ssoSessionIdleTimeoutRememberMe": @0,
                              @"ssoSessionMaxLifespanRememberMe": @0,
                              @"offlineSessionIdleTimeout": @0,
                              @"offlineSessionMaxLifespanEnabled": @NO,
                              @"offlineSessionMaxLifespan": @0,
                              @"clientSessionIdleTimeout": @0,
                              @"clientSessionMaxLifespan": @0,
                              @"clientOfflineSessionIdleTimeout": @0,
                              @"clientOfflineSessionMaxLifespan": @0,
                              @"accessCodeLifespan": @0,
                              @"accessCodeLifespanUserAction": @0,
                              @"accessCodeLifespanLogin": @0,
                              @"actionTokenGeneratedByAdminLifespan": @0,
                              @"actionTokenGeneratedByUserLifespan": @0,
                              @"oauth2DeviceCodeLifespan": @0,
                              @"oauth2DevicePollingInterval": @0,
                              @"enabled": @NO,
                              @"sslRequired": @"",
                              @"passwordCredentialGrantAllowed": @NO,
                              @"registrationAllowed": @NO,
                              @"registrationEmailAsUsername": @NO,
                              @"rememberMe": @NO,
                              @"verifyEmail": @NO,
                              @"loginWithEmailAllowed": @NO,
                              @"duplicateEmailsAllowed": @NO,
                              @"resetPasswordAllowed": @NO,
                              @"editUsernameAllowed": @NO,
                              @"userCacheEnabled": @NO,
                              @"realmCacheEnabled": @NO,
                              @"bruteForceProtected": @NO,
                              @"permanentLockout": @NO,
                              @"maxTemporaryLockouts": @0,
                              @"bruteForceStrategy": @"",
                              @"maxFailureWaitSeconds": @0,
                              @"minimumQuickLoginWaitSeconds": @0,
                              @"waitIncrementSeconds": @0,
                              @"quickLoginCheckMilliSeconds": @0,
                              @"maxDeltaTimeSeconds": @0,
                              @"failureFactor": @0,
                              @"privateKey": @"",
                              @"publicKey": @"",
                              @"certificate": @"",
                              @"codeSecret": @"",
                              @"roles": @{ @"realm": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ], @"client": @{  }, @"application": @{  } },
                              @"groups": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"path": @"", @"parentId": @"", @"subGroupCount": @0, @"subGroups": @[  ], @"attributes": @{  }, @"realmRoles": @[  ], @"clientRoles": @{  }, @"access": @{  } } ],
                              @"defaultRoles": @[  ],
                              @"defaultRole": @{  },
                              @"adminPermissionsClient": @{ @"id": @"", @"clientId": @"", @"name": @"", @"description": @"", @"type": @"", @"rootUrl": @"", @"adminUrl": @"", @"baseUrl": @"", @"surrogateAuthRequired": @NO, @"enabled": @NO, @"alwaysDisplayInConsole": @NO, @"clientAuthenticatorType": @"", @"secret": @"", @"registrationAccessToken": @"", @"defaultRoles": @[  ], @"redirectUris": @[  ], @"webOrigins": @[  ], @"notBefore": @0, @"bearerOnly": @NO, @"consentRequired": @NO, @"standardFlowEnabled": @NO, @"implicitFlowEnabled": @NO, @"directAccessGrantsEnabled": @NO, @"serviceAccountsEnabled": @NO, @"authorizationServicesEnabled": @NO, @"directGrantsOnly": @NO, @"publicClient": @NO, @"frontchannelLogout": @NO, @"protocol": @"", @"attributes": @{  }, @"authenticationFlowBindingOverrides": @{  }, @"fullScopeAllowed": @NO, @"nodeReRegistrationTimeout": @0, @"registeredNodes": @{  }, @"protocolMappers": @[ @{ @"id": @"", @"name": @"", @"protocol": @"", @"protocolMapper": @"", @"consentRequired": @NO, @"consentText": @"", @"config": @{  } } ], @"clientTemplate": @"", @"useTemplateConfig": @NO, @"useTemplateScope": @NO, @"useTemplateMappers": @NO, @"defaultClientScopes": @[  ], @"optionalClientScopes": @[  ], @"authorizationSettings": @{ @"id": @"", @"clientId": @"", @"name": @"", @"allowRemoteResourceManagement": @NO, @"policyEnforcementMode": @"", @"resources": @[ @{ @"_id": @"", @"name": @"", @"uris": @[  ], @"type": @"", @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ], @"icon_uri": @"", @"owner": @{  }, @"ownerManagedAccess": @NO, @"displayName": @"", @"attributes": @{  }, @"uri": @"", @"scopesUma": @[ @{  } ] } ], @"policies": @[ @{  } ], @"scopes": @[ @{  } ], @"decisionStrategy": @"", @"authorizationSchema": @{ @"resourceTypes": @{  } } }, @"access": @{  }, @"origin": @"" },
                              @"defaultGroups": @[  ],
                              @"requiredCredentials": @[  ],
                              @"passwordPolicy": @"",
                              @"otpPolicyType": @"",
                              @"otpPolicyAlgorithm": @"",
                              @"otpPolicyInitialCounter": @0,
                              @"otpPolicyDigits": @0,
                              @"otpPolicyLookAheadWindow": @0,
                              @"otpPolicyPeriod": @0,
                              @"otpPolicyCodeReusable": @NO,
                              @"otpSupportedApplications": @[  ],
                              @"localizationTexts": @{  },
                              @"webAuthnPolicyRpEntityName": @"",
                              @"webAuthnPolicySignatureAlgorithms": @[  ],
                              @"webAuthnPolicyRpId": @"",
                              @"webAuthnPolicyAttestationConveyancePreference": @"",
                              @"webAuthnPolicyAuthenticatorAttachment": @"",
                              @"webAuthnPolicyRequireResidentKey": @"",
                              @"webAuthnPolicyUserVerificationRequirement": @"",
                              @"webAuthnPolicyCreateTimeout": @0,
                              @"webAuthnPolicyAvoidSameAuthenticatorRegister": @NO,
                              @"webAuthnPolicyAcceptableAaguids": @[  ],
                              @"webAuthnPolicyExtraOrigins": @[  ],
                              @"webAuthnPolicyPasswordlessRpEntityName": @"",
                              @"webAuthnPolicyPasswordlessSignatureAlgorithms": @[  ],
                              @"webAuthnPolicyPasswordlessRpId": @"",
                              @"webAuthnPolicyPasswordlessAttestationConveyancePreference": @"",
                              @"webAuthnPolicyPasswordlessAuthenticatorAttachment": @"",
                              @"webAuthnPolicyPasswordlessRequireResidentKey": @"",
                              @"webAuthnPolicyPasswordlessUserVerificationRequirement": @"",
                              @"webAuthnPolicyPasswordlessCreateTimeout": @0,
                              @"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": @NO,
                              @"webAuthnPolicyPasswordlessAcceptableAaguids": @[  ],
                              @"webAuthnPolicyPasswordlessExtraOrigins": @[  ],
                              @"webAuthnPolicyPasswordlessPasskeysEnabled": @NO,
                              @"clientProfiles": @{ @"profiles": @[ @{ @"name": @"", @"description": @"", @"executors": @[ @{ @"executor": @"", @"configuration": @{  } } ] } ], @"globalProfiles": @[ @{  } ] },
                              @"clientPolicies": @{ @"policies": @[ @{ @"name": @"", @"description": @"", @"enabled": @NO, @"conditions": @[ @{ @"condition": @"", @"configuration": @{  } } ], @"profiles": @[  ] } ], @"globalPolicies": @[ @{  } ] },
                              @"users": @[ @{ @"id": @"", @"username": @"", @"firstName": @"", @"lastName": @"", @"email": @"", @"emailVerified": @NO, @"attributes": @{  }, @"userProfileMetadata": @{ @"attributes": @[ @{ @"name": @"", @"displayName": @"", @"required": @NO, @"readOnly": @NO, @"annotations": @{  }, @"validators": @{  }, @"group": @"", @"multivalued": @NO, @"defaultValue": @"" } ], @"groups": @[ @{ @"name": @"", @"displayHeader": @"", @"displayDescription": @"", @"annotations": @{  } } ] }, @"enabled": @NO, @"self": @"", @"origin": @"", @"createdTimestamp": @0, @"totp": @NO, @"federationLink": @"", @"serviceAccountClientId": @"", @"credentials": @[ @{ @"id": @"", @"type": @"", @"userLabel": @"", @"createdDate": @0, @"secretData": @"", @"credentialData": @"", @"priority": @0, @"value": @"", @"temporary": @NO, @"device": @"", @"hashedSaltedValue": @"", @"salt": @"", @"hashIterations": @0, @"counter": @0, @"algorithm": @"", @"digits": @0, @"period": @0, @"config": @{  }, @"federationLink": @"" } ], @"disableableCredentialTypes": @[  ], @"requiredActions": @[  ], @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ], @"realmRoles": @[  ], @"clientRoles": @{  }, @"clientConsents": @[ @{ @"clientId": @"", @"grantedClientScopes": @[  ], @"createdDate": @0, @"lastUpdatedDate": @0, @"grantedRealmRoles": @[  ] } ], @"notBefore": @0, @"applicationRoles": @{  }, @"socialLinks": @[ @{ @"socialProvider": @"", @"socialUserId": @"", @"socialUsername": @"" } ], @"groups": @[  ], @"access": @{  } } ],
                              @"federatedUsers": @[ @{  } ],
                              @"scopeMappings": @[ @{ @"self": @"", @"client": @"", @"clientTemplate": @"", @"clientScope": @"", @"roles": @[  ] } ],
                              @"clientScopeMappings": @{  },
                              @"clients": @[ @{  } ],
                              @"clientScopes": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"protocol": @"", @"attributes": @{  }, @"protocolMappers": @[ @{  } ] } ],
                              @"defaultDefaultClientScopes": @[  ],
                              @"defaultOptionalClientScopes": @[  ],
                              @"browserSecurityHeaders": @{  },
                              @"smtpServer": @{  },
                              @"userFederationProviders": @[ @{ @"id": @"", @"displayName": @"", @"providerName": @"", @"config": @{  }, @"priority": @0, @"fullSyncPeriod": @0, @"changedSyncPeriod": @0, @"lastSync": @0 } ],
                              @"userFederationMappers": @[ @{ @"id": @"", @"name": @"", @"federationProviderDisplayName": @"", @"federationMapperType": @"", @"config": @{  } } ],
                              @"loginTheme": @"",
                              @"accountTheme": @"",
                              @"adminTheme": @"",
                              @"emailTheme": @"",
                              @"eventsEnabled": @NO,
                              @"eventsExpiration": @0,
                              @"eventsListeners": @[  ],
                              @"enabledEventTypes": @[  ],
                              @"adminEventsEnabled": @NO,
                              @"adminEventsDetailsEnabled": @NO,
                              @"identityProviders": @[ @{ @"alias": @"", @"displayName": @"", @"internalId": @"", @"providerId": @"", @"enabled": @NO, @"updateProfileFirstLoginMode": @"", @"trustEmail": @NO, @"storeToken": @NO, @"addReadTokenRoleOnCreate": @NO, @"authenticateByDefault": @NO, @"linkOnly": @NO, @"hideOnLogin": @NO, @"firstBrokerLoginFlowAlias": @"", @"postBrokerLoginFlowAlias": @"", @"organizationId": @"", @"config": @{  }, @"updateProfileFirstLogin": @NO } ],
                              @"identityProviderMappers": @[ @{ @"id": @"", @"name": @"", @"identityProviderAlias": @"", @"identityProviderMapper": @"", @"config": @{  } } ],
                              @"protocolMappers": @[ @{  } ],
                              @"components": @{  },
                              @"internationalizationEnabled": @NO,
                              @"supportedLocales": @[  ],
                              @"defaultLocale": @"",
                              @"authenticationFlows": @[ @{ @"id": @"", @"alias": @"", @"description": @"", @"providerId": @"", @"topLevel": @NO, @"builtIn": @NO, @"authenticationExecutions": @[ @{ @"authenticatorConfig": @"", @"authenticator": @"", @"authenticatorFlow": @NO, @"requirement": @"", @"priority": @0, @"autheticatorFlow": @NO, @"flowAlias": @"", @"userSetupAllowed": @NO } ] } ],
                              @"authenticatorConfig": @[ @{ @"id": @"", @"alias": @"", @"config": @{  } } ],
                              @"requiredActions": @[ @{ @"alias": @"", @"name": @"", @"providerId": @"", @"enabled": @NO, @"defaultAction": @NO, @"priority": @0, @"config": @{  } } ],
                              @"browserFlow": @"",
                              @"registrationFlow": @"",
                              @"directGrantFlow": @"",
                              @"resetCredentialsFlow": @"",
                              @"clientAuthenticationFlow": @"",
                              @"dockerAuthenticationFlow": @"",
                              @"firstBrokerLoginFlow": @"",
                              @"attributes": @{  },
                              @"keycloakVersion": @"",
                              @"userManagedAccessAllowed": @NO,
                              @"organizationsEnabled": @NO,
                              @"organizations": @[ @{ @"id": @"", @"name": @"", @"alias": @"", @"enabled": @NO, @"description": @"", @"redirectUrl": @"", @"attributes": @{  }, @"domains": @[ @{ @"name": @"", @"verified": @NO } ], @"members": @[ @{ @"id": @"", @"username": @"", @"firstName": @"", @"lastName": @"", @"email": @"", @"emailVerified": @NO, @"attributes": @{  }, @"userProfileMetadata": @{  }, @"enabled": @NO, @"self": @"", @"origin": @"", @"createdTimestamp": @0, @"totp": @NO, @"federationLink": @"", @"serviceAccountClientId": @"", @"credentials": @[ @{  } ], @"disableableCredentialTypes": @[  ], @"requiredActions": @[  ], @"federatedIdentities": @[ @{  } ], @"realmRoles": @[  ], @"clientRoles": @{  }, @"clientConsents": @[ @{  } ], @"notBefore": @0, @"applicationRoles": @{  }, @"socialLinks": @[ @{  } ], @"groups": @[  ], @"access": @{  }, @"membershipType": @"" } ], @"identityProviders": @[ @{  } ] } ],
                              @"verifiableCredentialsEnabled": @NO,
                              @"adminPermissionsEnabled": @NO,
                              @"social": @NO,
                              @"updateProfileOnInitialSocialLogin": @NO,
                              @"socialProviders": @{  },
                              @"applicationScopeMappings": @{  },
                              @"applications": @[ @{ @"id": @"", @"clientId": @"", @"description": @"", @"type": @"", @"rootUrl": @"", @"adminUrl": @"", @"baseUrl": @"", @"surrogateAuthRequired": @NO, @"enabled": @NO, @"alwaysDisplayInConsole": @NO, @"clientAuthenticatorType": @"", @"secret": @"", @"registrationAccessToken": @"", @"defaultRoles": @[  ], @"redirectUris": @[  ], @"webOrigins": @[  ], @"notBefore": @0, @"bearerOnly": @NO, @"consentRequired": @NO, @"standardFlowEnabled": @NO, @"implicitFlowEnabled": @NO, @"directAccessGrantsEnabled": @NO, @"serviceAccountsEnabled": @NO, @"authorizationServicesEnabled": @NO, @"directGrantsOnly": @NO, @"publicClient": @NO, @"frontchannelLogout": @NO, @"protocol": @"", @"attributes": @{  }, @"authenticationFlowBindingOverrides": @{  }, @"fullScopeAllowed": @NO, @"nodeReRegistrationTimeout": @0, @"registeredNodes": @{  }, @"protocolMappers": @[ @{  } ], @"clientTemplate": @"", @"useTemplateConfig": @NO, @"useTemplateScope": @NO, @"useTemplateMappers": @NO, @"defaultClientScopes": @[  ], @"optionalClientScopes": @[  ], @"authorizationSettings": @{  }, @"access": @{  }, @"origin": @"", @"name": @"", @"claims": @{  } } ],
                              @"oauthClients": @[ @{ @"id": @"", @"clientId": @"", @"description": @"", @"type": @"", @"rootUrl": @"", @"adminUrl": @"", @"baseUrl": @"", @"surrogateAuthRequired": @NO, @"enabled": @NO, @"alwaysDisplayInConsole": @NO, @"clientAuthenticatorType": @"", @"secret": @"", @"registrationAccessToken": @"", @"defaultRoles": @[  ], @"redirectUris": @[  ], @"webOrigins": @[  ], @"notBefore": @0, @"bearerOnly": @NO, @"consentRequired": @NO, @"standardFlowEnabled": @NO, @"implicitFlowEnabled": @NO, @"directAccessGrantsEnabled": @NO, @"serviceAccountsEnabled": @NO, @"authorizationServicesEnabled": @NO, @"directGrantsOnly": @NO, @"publicClient": @NO, @"frontchannelLogout": @NO, @"protocol": @"", @"attributes": @{  }, @"authenticationFlowBindingOverrides": @{  }, @"fullScopeAllowed": @NO, @"nodeReRegistrationTimeout": @0, @"registeredNodes": @{  }, @"protocolMappers": @[ @{  } ], @"clientTemplate": @"", @"useTemplateConfig": @NO, @"useTemplateScope": @NO, @"useTemplateMappers": @NO, @"defaultClientScopes": @[  ], @"optionalClientScopes": @[  ], @"authorizationSettings": @{  }, @"access": @{  }, @"origin": @"", @"name": @"", @"claims": @{  } } ],
                              @"clientTemplates": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"protocol": @"", @"fullScopeAllowed": @NO, @"bearerOnly": @NO, @"consentRequired": @NO, @"standardFlowEnabled": @NO, @"implicitFlowEnabled": @NO, @"directAccessGrantsEnabled": @NO, @"serviceAccountsEnabled": @NO, @"publicClient": @NO, @"frontchannelLogout": @NO, @"attributes": @{  }, @"protocolMappers": @[ @{  } ] } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'realm' => '',
    'displayName' => '',
    'displayNameHtml' => '',
    'notBefore' => 0,
    'defaultSignatureAlgorithm' => '',
    'revokeRefreshToken' => null,
    'refreshTokenMaxReuse' => 0,
    'accessTokenLifespan' => 0,
    'accessTokenLifespanForImplicitFlow' => 0,
    'ssoSessionIdleTimeout' => 0,
    'ssoSessionMaxLifespan' => 0,
    'ssoSessionIdleTimeoutRememberMe' => 0,
    'ssoSessionMaxLifespanRememberMe' => 0,
    'offlineSessionIdleTimeout' => 0,
    'offlineSessionMaxLifespanEnabled' => null,
    'offlineSessionMaxLifespan' => 0,
    'clientSessionIdleTimeout' => 0,
    'clientSessionMaxLifespan' => 0,
    'clientOfflineSessionIdleTimeout' => 0,
    'clientOfflineSessionMaxLifespan' => 0,
    'accessCodeLifespan' => 0,
    'accessCodeLifespanUserAction' => 0,
    'accessCodeLifespanLogin' => 0,
    'actionTokenGeneratedByAdminLifespan' => 0,
    'actionTokenGeneratedByUserLifespan' => 0,
    'oauth2DeviceCodeLifespan' => 0,
    'oauth2DevicePollingInterval' => 0,
    'enabled' => null,
    'sslRequired' => '',
    'passwordCredentialGrantAllowed' => null,
    'registrationAllowed' => null,
    'registrationEmailAsUsername' => null,
    'rememberMe' => null,
    'verifyEmail' => null,
    'loginWithEmailAllowed' => null,
    'duplicateEmailsAllowed' => null,
    'resetPasswordAllowed' => null,
    'editUsernameAllowed' => null,
    'userCacheEnabled' => null,
    'realmCacheEnabled' => null,
    'bruteForceProtected' => null,
    'permanentLockout' => null,
    'maxTemporaryLockouts' => 0,
    'bruteForceStrategy' => '',
    'maxFailureWaitSeconds' => 0,
    'minimumQuickLoginWaitSeconds' => 0,
    'waitIncrementSeconds' => 0,
    'quickLoginCheckMilliSeconds' => 0,
    'maxDeltaTimeSeconds' => 0,
    'failureFactor' => 0,
    'privateKey' => '',
    'publicKey' => '',
    'certificate' => '',
    'codeSecret' => '',
    'roles' => [
        'realm' => [
                [
                                'id' => '',
                                'name' => '',
                                'description' => '',
                                'scopeParamRequired' => null,
                                'composite' => null,
                                'composites' => [
                                                                'realm' => [
                                                                                                                                
                                                                ],
                                                                'client' => [
                                                                                                                                
                                                                ],
                                                                'application' => [
                                                                                                                                
                                                                ]
                                ],
                                'clientRole' => null,
                                'containerId' => '',
                                'attributes' => [
                                                                
                                ]
                ]
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'groups' => [
        [
                'id' => '',
                'name' => '',
                'description' => '',
                'path' => '',
                'parentId' => '',
                'subGroupCount' => 0,
                'subGroups' => [
                                
                ],
                'attributes' => [
                                
                ],
                'realmRoles' => [
                                
                ],
                'clientRoles' => [
                                
                ],
                'access' => [
                                
                ]
        ]
    ],
    'defaultRoles' => [
        
    ],
    'defaultRole' => [
        
    ],
    'adminPermissionsClient' => [
        'id' => '',
        'clientId' => '',
        'name' => '',
        'description' => '',
        'type' => '',
        'rootUrl' => '',
        'adminUrl' => '',
        'baseUrl' => '',
        'surrogateAuthRequired' => null,
        'enabled' => null,
        'alwaysDisplayInConsole' => null,
        'clientAuthenticatorType' => '',
        'secret' => '',
        'registrationAccessToken' => '',
        'defaultRoles' => [
                
        ],
        'redirectUris' => [
                
        ],
        'webOrigins' => [
                
        ],
        'notBefore' => 0,
        'bearerOnly' => null,
        'consentRequired' => null,
        'standardFlowEnabled' => null,
        'implicitFlowEnabled' => null,
        'directAccessGrantsEnabled' => null,
        'serviceAccountsEnabled' => null,
        'authorizationServicesEnabled' => null,
        'directGrantsOnly' => null,
        'publicClient' => null,
        'frontchannelLogout' => null,
        'protocol' => '',
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'fullScopeAllowed' => null,
        'nodeReRegistrationTimeout' => 0,
        'registeredNodes' => [
                
        ],
        'protocolMappers' => [
                [
                                'id' => '',
                                'name' => '',
                                'protocol' => '',
                                'protocolMapper' => '',
                                'consentRequired' => null,
                                'consentText' => '',
                                'config' => [
                                                                
                                ]
                ]
        ],
        'clientTemplate' => '',
        'useTemplateConfig' => null,
        'useTemplateScope' => null,
        'useTemplateMappers' => null,
        'defaultClientScopes' => [
                
        ],
        'optionalClientScopes' => [
                
        ],
        'authorizationSettings' => [
                'id' => '',
                'clientId' => '',
                'name' => '',
                'allowRemoteResourceManagement' => null,
                'policyEnforcementMode' => '',
                'resources' => [
                                [
                                                                '_id' => '',
                                                                'name' => '',
                                                                'uris' => [
                                                                                                                                
                                                                ],
                                                                'type' => '',
                                                                'scopes' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'iconUri' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'displayName' => ''
                                                                                                                                ]
                                                                ],
                                                                'icon_uri' => '',
                                                                'owner' => [
                                                                                                                                
                                                                ],
                                                                'ownerManagedAccess' => null,
                                                                'displayName' => '',
                                                                'attributes' => [
                                                                                                                                
                                                                ],
                                                                'uri' => '',
                                                                'scopesUma' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'policies' => [
                                [
                                                                
                                ]
                ],
                'scopes' => [
                                [
                                                                
                                ]
                ],
                'decisionStrategy' => '',
                'authorizationSchema' => [
                                'resourceTypes' => [
                                                                
                                ]
                ]
        ],
        'access' => [
                
        ],
        'origin' => ''
    ],
    'defaultGroups' => [
        
    ],
    'requiredCredentials' => [
        
    ],
    'passwordPolicy' => '',
    'otpPolicyType' => '',
    'otpPolicyAlgorithm' => '',
    'otpPolicyInitialCounter' => 0,
    'otpPolicyDigits' => 0,
    'otpPolicyLookAheadWindow' => 0,
    'otpPolicyPeriod' => 0,
    'otpPolicyCodeReusable' => null,
    'otpSupportedApplications' => [
        
    ],
    'localizationTexts' => [
        
    ],
    'webAuthnPolicyRpEntityName' => '',
    'webAuthnPolicySignatureAlgorithms' => [
        
    ],
    'webAuthnPolicyRpId' => '',
    'webAuthnPolicyAttestationConveyancePreference' => '',
    'webAuthnPolicyAuthenticatorAttachment' => '',
    'webAuthnPolicyRequireResidentKey' => '',
    'webAuthnPolicyUserVerificationRequirement' => '',
    'webAuthnPolicyCreateTimeout' => 0,
    'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
    'webAuthnPolicyAcceptableAaguids' => [
        
    ],
    'webAuthnPolicyExtraOrigins' => [
        
    ],
    'webAuthnPolicyPasswordlessRpEntityName' => '',
    'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
        
    ],
    'webAuthnPolicyPasswordlessRpId' => '',
    'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
    'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
    'webAuthnPolicyPasswordlessRequireResidentKey' => '',
    'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
    'webAuthnPolicyPasswordlessCreateTimeout' => 0,
    'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
    'webAuthnPolicyPasswordlessAcceptableAaguids' => [
        
    ],
    'webAuthnPolicyPasswordlessExtraOrigins' => [
        
    ],
    'webAuthnPolicyPasswordlessPasskeysEnabled' => null,
    'clientProfiles' => [
        'profiles' => [
                [
                                'name' => '',
                                'description' => '',
                                'executors' => [
                                                                [
                                                                                                                                'executor' => '',
                                                                                                                                'configuration' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ]
        ],
        'globalProfiles' => [
                [
                                
                ]
        ]
    ],
    'clientPolicies' => [
        'policies' => [
                [
                                'name' => '',
                                'description' => '',
                                'enabled' => null,
                                'conditions' => [
                                                                [
                                                                                                                                'condition' => '',
                                                                                                                                'configuration' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'profiles' => [
                                                                
                                ]
                ]
        ],
        'globalPolicies' => [
                [
                                
                ]
        ]
    ],
    'users' => [
        [
                'id' => '',
                'username' => '',
                'firstName' => '',
                'lastName' => '',
                'email' => '',
                'emailVerified' => null,
                'attributes' => [
                                
                ],
                'userProfileMetadata' => [
                                'attributes' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'displayName' => '',
                                                                                                                                'required' => null,
                                                                                                                                'readOnly' => null,
                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'validators' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'group' => '',
                                                                                                                                'multivalued' => null,
                                                                                                                                'defaultValue' => ''
                                                                ]
                                ],
                                'groups' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'displayHeader' => '',
                                                                                                                                'displayDescription' => '',
                                                                                                                                'annotations' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ]
                ],
                'enabled' => null,
                'self' => '',
                'origin' => '',
                'createdTimestamp' => 0,
                'totp' => null,
                'federationLink' => '',
                'serviceAccountClientId' => '',
                'credentials' => [
                                [
                                                                'id' => '',
                                                                'type' => '',
                                                                'userLabel' => '',
                                                                'createdDate' => 0,
                                                                'secretData' => '',
                                                                'credentialData' => '',
                                                                'priority' => 0,
                                                                'value' => '',
                                                                'temporary' => null,
                                                                'device' => '',
                                                                'hashedSaltedValue' => '',
                                                                'salt' => '',
                                                                'hashIterations' => 0,
                                                                'counter' => 0,
                                                                'algorithm' => '',
                                                                'digits' => 0,
                                                                'period' => 0,
                                                                'config' => [
                                                                                                                                
                                                                ],
                                                                'federationLink' => ''
                                ]
                ],
                'disableableCredentialTypes' => [
                                
                ],
                'requiredActions' => [
                                
                ],
                'federatedIdentities' => [
                                [
                                                                'identityProvider' => '',
                                                                'userId' => '',
                                                                'userName' => ''
                                ]
                ],
                'realmRoles' => [
                                
                ],
                'clientRoles' => [
                                
                ],
                'clientConsents' => [
                                [
                                                                'clientId' => '',
                                                                'grantedClientScopes' => [
                                                                                                                                
                                                                ],
                                                                'createdDate' => 0,
                                                                'lastUpdatedDate' => 0,
                                                                'grantedRealmRoles' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'notBefore' => 0,
                'applicationRoles' => [
                                
                ],
                'socialLinks' => [
                                [
                                                                'socialProvider' => '',
                                                                'socialUserId' => '',
                                                                'socialUsername' => ''
                                ]
                ],
                'groups' => [
                                
                ],
                'access' => [
                                
                ]
        ]
    ],
    'federatedUsers' => [
        [
                
        ]
    ],
    'scopeMappings' => [
        [
                'self' => '',
                'client' => '',
                'clientTemplate' => '',
                'clientScope' => '',
                'roles' => [
                                
                ]
        ]
    ],
    'clientScopeMappings' => [
        
    ],
    'clients' => [
        [
                
        ]
    ],
    'clientScopes' => [
        [
                'id' => '',
                'name' => '',
                'description' => '',
                'protocol' => '',
                'attributes' => [
                                
                ],
                'protocolMappers' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'defaultDefaultClientScopes' => [
        
    ],
    'defaultOptionalClientScopes' => [
        
    ],
    'browserSecurityHeaders' => [
        
    ],
    'smtpServer' => [
        
    ],
    'userFederationProviders' => [
        [
                'id' => '',
                'displayName' => '',
                'providerName' => '',
                'config' => [
                                
                ],
                'priority' => 0,
                'fullSyncPeriod' => 0,
                'changedSyncPeriod' => 0,
                'lastSync' => 0
        ]
    ],
    'userFederationMappers' => [
        [
                'id' => '',
                'name' => '',
                'federationProviderDisplayName' => '',
                'federationMapperType' => '',
                'config' => [
                                
                ]
        ]
    ],
    'loginTheme' => '',
    'accountTheme' => '',
    'adminTheme' => '',
    'emailTheme' => '',
    'eventsEnabled' => null,
    'eventsExpiration' => 0,
    'eventsListeners' => [
        
    ],
    'enabledEventTypes' => [
        
    ],
    'adminEventsEnabled' => null,
    'adminEventsDetailsEnabled' => null,
    'identityProviders' => [
        [
                'alias' => '',
                'displayName' => '',
                'internalId' => '',
                'providerId' => '',
                'enabled' => null,
                'updateProfileFirstLoginMode' => '',
                'trustEmail' => null,
                'storeToken' => null,
                'addReadTokenRoleOnCreate' => null,
                'authenticateByDefault' => null,
                'linkOnly' => null,
                'hideOnLogin' => null,
                'firstBrokerLoginFlowAlias' => '',
                'postBrokerLoginFlowAlias' => '',
                'organizationId' => '',
                'config' => [
                                
                ],
                'updateProfileFirstLogin' => null
        ]
    ],
    'identityProviderMappers' => [
        [
                'id' => '',
                'name' => '',
                'identityProviderAlias' => '',
                'identityProviderMapper' => '',
                'config' => [
                                
                ]
        ]
    ],
    'protocolMappers' => [
        [
                
        ]
    ],
    'components' => [
        
    ],
    'internationalizationEnabled' => null,
    'supportedLocales' => [
        
    ],
    'defaultLocale' => '',
    'authenticationFlows' => [
        [
                'id' => '',
                'alias' => '',
                'description' => '',
                'providerId' => '',
                'topLevel' => null,
                'builtIn' => null,
                'authenticationExecutions' => [
                                [
                                                                'authenticatorConfig' => '',
                                                                'authenticator' => '',
                                                                'authenticatorFlow' => null,
                                                                'requirement' => '',
                                                                'priority' => 0,
                                                                'autheticatorFlow' => null,
                                                                'flowAlias' => '',
                                                                'userSetupAllowed' => null
                                ]
                ]
        ]
    ],
    'authenticatorConfig' => [
        [
                'id' => '',
                'alias' => '',
                'config' => [
                                
                ]
        ]
    ],
    'requiredActions' => [
        [
                'alias' => '',
                'name' => '',
                'providerId' => '',
                'enabled' => null,
                'defaultAction' => null,
                'priority' => 0,
                'config' => [
                                
                ]
        ]
    ],
    'browserFlow' => '',
    'registrationFlow' => '',
    'directGrantFlow' => '',
    'resetCredentialsFlow' => '',
    'clientAuthenticationFlow' => '',
    'dockerAuthenticationFlow' => '',
    'firstBrokerLoginFlow' => '',
    'attributes' => [
        
    ],
    'keycloakVersion' => '',
    'userManagedAccessAllowed' => null,
    'organizationsEnabled' => null,
    'organizations' => [
        [
                'id' => '',
                'name' => '',
                'alias' => '',
                'enabled' => null,
                'description' => '',
                'redirectUrl' => '',
                'attributes' => [
                                
                ],
                'domains' => [
                                [
                                                                'name' => '',
                                                                'verified' => null
                                ]
                ],
                'members' => [
                                [
                                                                'id' => '',
                                                                'username' => '',
                                                                'firstName' => '',
                                                                'lastName' => '',
                                                                'email' => '',
                                                                'emailVerified' => null,
                                                                'attributes' => [
                                                                                                                                
                                                                ],
                                                                'userProfileMetadata' => [
                                                                                                                                
                                                                ],
                                                                'enabled' => null,
                                                                'self' => '',
                                                                'origin' => '',
                                                                'createdTimestamp' => 0,
                                                                'totp' => null,
                                                                'federationLink' => '',
                                                                'serviceAccountClientId' => '',
                                                                'credentials' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'disableableCredentialTypes' => [
                                                                                                                                
                                                                ],
                                                                'requiredActions' => [
                                                                                                                                
                                                                ],
                                                                'federatedIdentities' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'realmRoles' => [
                                                                                                                                
                                                                ],
                                                                'clientRoles' => [
                                                                                                                                
                                                                ],
                                                                'clientConsents' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'notBefore' => 0,
                                                                'applicationRoles' => [
                                                                                                                                
                                                                ],
                                                                'socialLinks' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'groups' => [
                                                                                                                                
                                                                ],
                                                                'access' => [
                                                                                                                                
                                                                ],
                                                                'membershipType' => ''
                                ]
                ],
                'identityProviders' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'verifiableCredentialsEnabled' => null,
    'adminPermissionsEnabled' => null,
    'social' => null,
    'updateProfileOnInitialSocialLogin' => null,
    'socialProviders' => [
        
    ],
    'applicationScopeMappings' => [
        
    ],
    'applications' => [
        [
                'id' => '',
                'clientId' => '',
                'description' => '',
                'type' => '',
                'rootUrl' => '',
                'adminUrl' => '',
                'baseUrl' => '',
                'surrogateAuthRequired' => null,
                'enabled' => null,
                'alwaysDisplayInConsole' => null,
                'clientAuthenticatorType' => '',
                'secret' => '',
                'registrationAccessToken' => '',
                'defaultRoles' => [
                                
                ],
                'redirectUris' => [
                                
                ],
                'webOrigins' => [
                                
                ],
                'notBefore' => 0,
                'bearerOnly' => null,
                'consentRequired' => null,
                'standardFlowEnabled' => null,
                'implicitFlowEnabled' => null,
                'directAccessGrantsEnabled' => null,
                'serviceAccountsEnabled' => null,
                'authorizationServicesEnabled' => null,
                'directGrantsOnly' => null,
                'publicClient' => null,
                'frontchannelLogout' => null,
                'protocol' => '',
                'attributes' => [
                                
                ],
                'authenticationFlowBindingOverrides' => [
                                
                ],
                'fullScopeAllowed' => null,
                'nodeReRegistrationTimeout' => 0,
                'registeredNodes' => [
                                
                ],
                'protocolMappers' => [
                                [
                                                                
                                ]
                ],
                'clientTemplate' => '',
                'useTemplateConfig' => null,
                'useTemplateScope' => null,
                'useTemplateMappers' => null,
                'defaultClientScopes' => [
                                
                ],
                'optionalClientScopes' => [
                                
                ],
                'authorizationSettings' => [
                                
                ],
                'access' => [
                                
                ],
                'origin' => '',
                'name' => '',
                'claims' => [
                                
                ]
        ]
    ],
    'oauthClients' => [
        [
                'id' => '',
                'clientId' => '',
                'description' => '',
                'type' => '',
                'rootUrl' => '',
                'adminUrl' => '',
                'baseUrl' => '',
                'surrogateAuthRequired' => null,
                'enabled' => null,
                'alwaysDisplayInConsole' => null,
                'clientAuthenticatorType' => '',
                'secret' => '',
                'registrationAccessToken' => '',
                'defaultRoles' => [
                                
                ],
                'redirectUris' => [
                                
                ],
                'webOrigins' => [
                                
                ],
                'notBefore' => 0,
                'bearerOnly' => null,
                'consentRequired' => null,
                'standardFlowEnabled' => null,
                'implicitFlowEnabled' => null,
                'directAccessGrantsEnabled' => null,
                'serviceAccountsEnabled' => null,
                'authorizationServicesEnabled' => null,
                'directGrantsOnly' => null,
                'publicClient' => null,
                'frontchannelLogout' => null,
                'protocol' => '',
                'attributes' => [
                                
                ],
                'authenticationFlowBindingOverrides' => [
                                
                ],
                'fullScopeAllowed' => null,
                'nodeReRegistrationTimeout' => 0,
                'registeredNodes' => [
                                
                ],
                'protocolMappers' => [
                                [
                                                                
                                ]
                ],
                'clientTemplate' => '',
                'useTemplateConfig' => null,
                'useTemplateScope' => null,
                'useTemplateMappers' => null,
                'defaultClientScopes' => [
                                
                ],
                'optionalClientScopes' => [
                                
                ],
                'authorizationSettings' => [
                                
                ],
                'access' => [
                                
                ],
                'origin' => '',
                'name' => '',
                'claims' => [
                                
                ]
        ]
    ],
    'clientTemplates' => [
        [
                'id' => '',
                'name' => '',
                'description' => '',
                'protocol' => '',
                'fullScopeAllowed' => null,
                'bearerOnly' => null,
                'consentRequired' => null,
                'standardFlowEnabled' => null,
                'implicitFlowEnabled' => null,
                'directAccessGrantsEnabled' => null,
                'serviceAccountsEnabled' => null,
                'publicClient' => null,
                'frontchannelLogout' => null,
                'attributes' => [
                                
                ],
                'protocolMappers' => [
                                [
                                                                
                                ]
                ]
        ]
    ]
  ]),
  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}}/admin/realms/:realm', [
  'body' => '{
  "id": "",
  "realm": "",
  "displayName": "",
  "displayNameHtml": "",
  "notBefore": 0,
  "defaultSignatureAlgorithm": "",
  "revokeRefreshToken": false,
  "refreshTokenMaxReuse": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "ssoSessionIdleTimeout": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "offlineSessionMaxLifespan": 0,
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clientOfflineSessionIdleTimeout": 0,
  "clientOfflineSessionMaxLifespan": 0,
  "accessCodeLifespan": 0,
  "accessCodeLifespanUserAction": 0,
  "accessCodeLifespanLogin": 0,
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "oauth2DeviceCodeLifespan": 0,
  "oauth2DevicePollingInterval": 0,
  "enabled": false,
  "sslRequired": "",
  "passwordCredentialGrantAllowed": false,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "rememberMe": false,
  "verifyEmail": false,
  "loginWithEmailAllowed": false,
  "duplicateEmailsAllowed": false,
  "resetPasswordAllowed": false,
  "editUsernameAllowed": false,
  "userCacheEnabled": false,
  "realmCacheEnabled": false,
  "bruteForceProtected": false,
  "permanentLockout": false,
  "maxTemporaryLockouts": 0,
  "bruteForceStrategy": "",
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "waitIncrementSeconds": 0,
  "quickLoginCheckMilliSeconds": 0,
  "maxDeltaTimeSeconds": 0,
  "failureFactor": 0,
  "privateKey": "",
  "publicKey": "",
  "certificate": "",
  "codeSecret": "",
  "roles": {
    "realm": [
      {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": {
          "realm": [],
          "client": {},
          "application": {}
        },
        "clientRole": false,
        "containerId": "",
        "attributes": {}
      }
    ],
    "client": {},
    "application": {}
  },
  "groups": [
    {
      "id": "",
      "name": "",
      "description": "",
      "path": "",
      "parentId": "",
      "subGroupCount": 0,
      "subGroups": [],
      "attributes": {},
      "realmRoles": [],
      "clientRoles": {},
      "access": {}
    }
  ],
  "defaultRoles": [],
  "defaultRole": {},
  "adminPermissionsClient": {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": false,
    "enabled": false,
    "alwaysDisplayInConsole": false,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": false,
    "consentRequired": false,
    "standardFlowEnabled": false,
    "implicitFlowEnabled": false,
    "directAccessGrantsEnabled": false,
    "serviceAccountsEnabled": false,
    "authorizationServicesEnabled": false,
    "directGrantsOnly": false,
    "publicClient": false,
    "frontchannelLogout": false,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": false,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
      {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": {}
      }
    ],
    "clientTemplate": "",
    "useTemplateConfig": false,
    "useTemplateScope": false,
    "useTemplateMappers": false,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
      "id": "",
      "clientId": "",
      "name": "",
      "allowRemoteResourceManagement": false,
      "policyEnforcementMode": "",
      "resources": [
        {
          "_id": "",
          "name": "",
          "uris": [],
          "type": "",
          "scopes": [
            {
              "id": "",
              "name": "",
              "iconUri": "",
              "policies": [
                {
                  "id": "",
                  "name": "",
                  "description": "",
                  "type": "",
                  "policies": [],
                  "resources": [],
                  "scopes": [],
                  "logic": "",
                  "decisionStrategy": "",
                  "owner": "",
                  "resourceType": "",
                  "resourcesData": [],
                  "scopesData": [],
                  "config": {}
                }
              ],
              "resources": [],
              "displayName": ""
            }
          ],
          "icon_uri": "",
          "owner": {},
          "ownerManagedAccess": false,
          "displayName": "",
          "attributes": {},
          "uri": "",
          "scopesUma": [
            {}
          ]
        }
      ],
      "policies": [
        {}
      ],
      "scopes": [
        {}
      ],
      "decisionStrategy": "",
      "authorizationSchema": {
        "resourceTypes": {}
      }
    },
    "access": {},
    "origin": ""
  },
  "defaultGroups": [],
  "requiredCredentials": [],
  "passwordPolicy": "",
  "otpPolicyType": "",
  "otpPolicyAlgorithm": "",
  "otpPolicyInitialCounter": 0,
  "otpPolicyDigits": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyCodeReusable": false,
  "otpSupportedApplications": [],
  "localizationTexts": {},
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyRpId": "",
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyUserVerificationRequirement": "",
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyExtraOrigins": [],
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessExtraOrigins": [],
  "webAuthnPolicyPasswordlessPasskeysEnabled": false,
  "clientProfiles": {
    "profiles": [
      {
        "name": "",
        "description": "",
        "executors": [
          {
            "executor": "",
            "configuration": {}
          }
        ]
      }
    ],
    "globalProfiles": [
      {}
    ]
  },
  "clientPolicies": {
    "policies": [
      {
        "name": "",
        "description": "",
        "enabled": false,
        "conditions": [
          {
            "condition": "",
            "configuration": {}
          }
        ],
        "profiles": []
      }
    ],
    "globalPolicies": [
      {}
    ]
  },
  "users": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {}
    }
  ],
  "federatedUsers": [
    {}
  ],
  "scopeMappings": [
    {
      "self": "",
      "client": "",
      "clientTemplate": "",
      "clientScope": "",
      "roles": []
    }
  ],
  "clientScopeMappings": {},
  "clients": [
    {}
  ],
  "clientScopes": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ],
  "defaultDefaultClientScopes": [],
  "defaultOptionalClientScopes": [],
  "browserSecurityHeaders": {},
  "smtpServer": {},
  "userFederationProviders": [
    {
      "id": "",
      "displayName": "",
      "providerName": "",
      "config": {},
      "priority": 0,
      "fullSyncPeriod": 0,
      "changedSyncPeriod": 0,
      "lastSync": 0
    }
  ],
  "userFederationMappers": [
    {
      "id": "",
      "name": "",
      "federationProviderDisplayName": "",
      "federationMapperType": "",
      "config": {}
    }
  ],
  "loginTheme": "",
  "accountTheme": "",
  "adminTheme": "",
  "emailTheme": "",
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false,
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ],
  "identityProviderMappers": [
    {
      "id": "",
      "name": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "config": {}
    }
  ],
  "protocolMappers": [
    {}
  ],
  "components": {},
  "internationalizationEnabled": false,
  "supportedLocales": [],
  "defaultLocale": "",
  "authenticationFlows": [
    {
      "id": "",
      "alias": "",
      "description": "",
      "providerId": "",
      "topLevel": false,
      "builtIn": false,
      "authenticationExecutions": [
        {
          "authenticatorConfig": "",
          "authenticator": "",
          "authenticatorFlow": false,
          "requirement": "",
          "priority": 0,
          "autheticatorFlow": false,
          "flowAlias": "",
          "userSetupAllowed": false
        }
      ]
    }
  ],
  "authenticatorConfig": [
    {
      "id": "",
      "alias": "",
      "config": {}
    }
  ],
  "requiredActions": [
    {
      "alias": "",
      "name": "",
      "providerId": "",
      "enabled": false,
      "defaultAction": false,
      "priority": 0,
      "config": {}
    }
  ],
  "browserFlow": "",
  "registrationFlow": "",
  "directGrantFlow": "",
  "resetCredentialsFlow": "",
  "clientAuthenticationFlow": "",
  "dockerAuthenticationFlow": "",
  "firstBrokerLoginFlow": "",
  "attributes": {},
  "keycloakVersion": "",
  "userManagedAccessAllowed": false,
  "organizationsEnabled": false,
  "organizations": [
    {
      "id": "",
      "name": "",
      "alias": "",
      "enabled": false,
      "description": "",
      "redirectUrl": "",
      "attributes": {},
      "domains": [
        {
          "name": "",
          "verified": false
        }
      ],
      "members": [
        {
          "id": "",
          "username": "",
          "firstName": "",
          "lastName": "",
          "email": "",
          "emailVerified": false,
          "attributes": {},
          "userProfileMetadata": {},
          "enabled": false,
          "self": "",
          "origin": "",
          "createdTimestamp": 0,
          "totp": false,
          "federationLink": "",
          "serviceAccountClientId": "",
          "credentials": [
            {}
          ],
          "disableableCredentialTypes": [],
          "requiredActions": [],
          "federatedIdentities": [
            {}
          ],
          "realmRoles": [],
          "clientRoles": {},
          "clientConsents": [
            {}
          ],
          "notBefore": 0,
          "applicationRoles": {},
          "socialLinks": [
            {}
          ],
          "groups": [],
          "access": {},
          "membershipType": ""
        }
      ],
      "identityProviders": [
        {}
      ]
    }
  ],
  "verifiableCredentialsEnabled": false,
  "adminPermissionsEnabled": false,
  "social": false,
  "updateProfileOnInitialSocialLogin": false,
  "socialProviders": {},
  "applicationScopeMappings": {},
  "applications": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "oauthClients": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "clientTemplates": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "fullScopeAllowed": false,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'realm' => '',
  'displayName' => '',
  'displayNameHtml' => '',
  'notBefore' => 0,
  'defaultSignatureAlgorithm' => '',
  'revokeRefreshToken' => null,
  'refreshTokenMaxReuse' => 0,
  'accessTokenLifespan' => 0,
  'accessTokenLifespanForImplicitFlow' => 0,
  'ssoSessionIdleTimeout' => 0,
  'ssoSessionMaxLifespan' => 0,
  'ssoSessionIdleTimeoutRememberMe' => 0,
  'ssoSessionMaxLifespanRememberMe' => 0,
  'offlineSessionIdleTimeout' => 0,
  'offlineSessionMaxLifespanEnabled' => null,
  'offlineSessionMaxLifespan' => 0,
  'clientSessionIdleTimeout' => 0,
  'clientSessionMaxLifespan' => 0,
  'clientOfflineSessionIdleTimeout' => 0,
  'clientOfflineSessionMaxLifespan' => 0,
  'accessCodeLifespan' => 0,
  'accessCodeLifespanUserAction' => 0,
  'accessCodeLifespanLogin' => 0,
  'actionTokenGeneratedByAdminLifespan' => 0,
  'actionTokenGeneratedByUserLifespan' => 0,
  'oauth2DeviceCodeLifespan' => 0,
  'oauth2DevicePollingInterval' => 0,
  'enabled' => null,
  'sslRequired' => '',
  'passwordCredentialGrantAllowed' => null,
  'registrationAllowed' => null,
  'registrationEmailAsUsername' => null,
  'rememberMe' => null,
  'verifyEmail' => null,
  'loginWithEmailAllowed' => null,
  'duplicateEmailsAllowed' => null,
  'resetPasswordAllowed' => null,
  'editUsernameAllowed' => null,
  'userCacheEnabled' => null,
  'realmCacheEnabled' => null,
  'bruteForceProtected' => null,
  'permanentLockout' => null,
  'maxTemporaryLockouts' => 0,
  'bruteForceStrategy' => '',
  'maxFailureWaitSeconds' => 0,
  'minimumQuickLoginWaitSeconds' => 0,
  'waitIncrementSeconds' => 0,
  'quickLoginCheckMilliSeconds' => 0,
  'maxDeltaTimeSeconds' => 0,
  'failureFactor' => 0,
  'privateKey' => '',
  'publicKey' => '',
  'certificate' => '',
  'codeSecret' => '',
  'roles' => [
    'realm' => [
        [
                'id' => '',
                'name' => '',
                'description' => '',
                'scopeParamRequired' => null,
                'composite' => null,
                'composites' => [
                                'realm' => [
                                                                
                                ],
                                'client' => [
                                                                
                                ],
                                'application' => [
                                                                
                                ]
                ],
                'clientRole' => null,
                'containerId' => '',
                'attributes' => [
                                
                ]
        ]
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'groups' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'path' => '',
        'parentId' => '',
        'subGroupCount' => 0,
        'subGroups' => [
                
        ],
        'attributes' => [
                
        ],
        'realmRoles' => [
                
        ],
        'clientRoles' => [
                
        ],
        'access' => [
                
        ]
    ]
  ],
  'defaultRoles' => [
    
  ],
  'defaultRole' => [
    
  ],
  'adminPermissionsClient' => [
    'id' => '',
    'clientId' => '',
    'name' => '',
    'description' => '',
    'type' => '',
    'rootUrl' => '',
    'adminUrl' => '',
    'baseUrl' => '',
    'surrogateAuthRequired' => null,
    'enabled' => null,
    'alwaysDisplayInConsole' => null,
    'clientAuthenticatorType' => '',
    'secret' => '',
    'registrationAccessToken' => '',
    'defaultRoles' => [
        
    ],
    'redirectUris' => [
        
    ],
    'webOrigins' => [
        
    ],
    'notBefore' => 0,
    'bearerOnly' => null,
    'consentRequired' => null,
    'standardFlowEnabled' => null,
    'implicitFlowEnabled' => null,
    'directAccessGrantsEnabled' => null,
    'serviceAccountsEnabled' => null,
    'authorizationServicesEnabled' => null,
    'directGrantsOnly' => null,
    'publicClient' => null,
    'frontchannelLogout' => null,
    'protocol' => '',
    'attributes' => [
        
    ],
    'authenticationFlowBindingOverrides' => [
        
    ],
    'fullScopeAllowed' => null,
    'nodeReRegistrationTimeout' => 0,
    'registeredNodes' => [
        
    ],
    'protocolMappers' => [
        [
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => '',
                'consentRequired' => null,
                'consentText' => '',
                'config' => [
                                
                ]
        ]
    ],
    'clientTemplate' => '',
    'useTemplateConfig' => null,
    'useTemplateScope' => null,
    'useTemplateMappers' => null,
    'defaultClientScopes' => [
        
    ],
    'optionalClientScopes' => [
        
    ],
    'authorizationSettings' => [
        'id' => '',
        'clientId' => '',
        'name' => '',
        'allowRemoteResourceManagement' => null,
        'policyEnforcementMode' => '',
        'resources' => [
                [
                                '_id' => '',
                                'name' => '',
                                'uris' => [
                                                                
                                ],
                                'type' => '',
                                'scopes' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'iconUri' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayName' => ''
                                                                ]
                                ],
                                'icon_uri' => '',
                                'owner' => [
                                                                
                                ],
                                'ownerManagedAccess' => null,
                                'displayName' => '',
                                'attributes' => [
                                                                
                                ],
                                'uri' => '',
                                'scopesUma' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'policies' => [
                [
                                
                ]
        ],
        'scopes' => [
                [
                                
                ]
        ],
        'decisionStrategy' => '',
        'authorizationSchema' => [
                'resourceTypes' => [
                                
                ]
        ]
    ],
    'access' => [
        
    ],
    'origin' => ''
  ],
  'defaultGroups' => [
    
  ],
  'requiredCredentials' => [
    
  ],
  'passwordPolicy' => '',
  'otpPolicyType' => '',
  'otpPolicyAlgorithm' => '',
  'otpPolicyInitialCounter' => 0,
  'otpPolicyDigits' => 0,
  'otpPolicyLookAheadWindow' => 0,
  'otpPolicyPeriod' => 0,
  'otpPolicyCodeReusable' => null,
  'otpSupportedApplications' => [
    
  ],
  'localizationTexts' => [
    
  ],
  'webAuthnPolicyRpEntityName' => '',
  'webAuthnPolicySignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyRpId' => '',
  'webAuthnPolicyAttestationConveyancePreference' => '',
  'webAuthnPolicyAuthenticatorAttachment' => '',
  'webAuthnPolicyRequireResidentKey' => '',
  'webAuthnPolicyUserVerificationRequirement' => '',
  'webAuthnPolicyCreateTimeout' => 0,
  'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyExtraOrigins' => [
    
  ],
  'webAuthnPolicyPasswordlessRpEntityName' => '',
  'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyPasswordlessRpId' => '',
  'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
  'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
  'webAuthnPolicyPasswordlessRequireResidentKey' => '',
  'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
  'webAuthnPolicyPasswordlessCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyPasswordlessAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyPasswordlessExtraOrigins' => [
    
  ],
  'webAuthnPolicyPasswordlessPasskeysEnabled' => null,
  'clientProfiles' => [
    'profiles' => [
        [
                'name' => '',
                'description' => '',
                'executors' => [
                                [
                                                                'executor' => '',
                                                                'configuration' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ]
    ],
    'globalProfiles' => [
        [
                
        ]
    ]
  ],
  'clientPolicies' => [
    'policies' => [
        [
                'name' => '',
                'description' => '',
                'enabled' => null,
                'conditions' => [
                                [
                                                                'condition' => '',
                                                                'configuration' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'profiles' => [
                                
                ]
        ]
    ],
    'globalPolicies' => [
        [
                
        ]
    ]
  ],
  'users' => [
    [
        'id' => '',
        'username' => '',
        'firstName' => '',
        'lastName' => '',
        'email' => '',
        'emailVerified' => null,
        'attributes' => [
                
        ],
        'userProfileMetadata' => [
                'attributes' => [
                                [
                                                                'name' => '',
                                                                'displayName' => '',
                                                                'required' => null,
                                                                'readOnly' => null,
                                                                'annotations' => [
                                                                                                                                
                                                                ],
                                                                'validators' => [
                                                                                                                                
                                                                ],
                                                                'group' => '',
                                                                'multivalued' => null,
                                                                'defaultValue' => ''
                                ]
                ],
                'groups' => [
                                [
                                                                'name' => '',
                                                                'displayHeader' => '',
                                                                'displayDescription' => '',
                                                                'annotations' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'enabled' => null,
        'self' => '',
        'origin' => '',
        'createdTimestamp' => 0,
        'totp' => null,
        'federationLink' => '',
        'serviceAccountClientId' => '',
        'credentials' => [
                [
                                'id' => '',
                                'type' => '',
                                'userLabel' => '',
                                'createdDate' => 0,
                                'secretData' => '',
                                'credentialData' => '',
                                'priority' => 0,
                                'value' => '',
                                'temporary' => null,
                                'device' => '',
                                'hashedSaltedValue' => '',
                                'salt' => '',
                                'hashIterations' => 0,
                                'counter' => 0,
                                'algorithm' => '',
                                'digits' => 0,
                                'period' => 0,
                                'config' => [
                                                                
                                ],
                                'federationLink' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'requiredActions' => [
                
        ],
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'realmRoles' => [
                
        ],
        'clientRoles' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'grantedClientScopes' => [
                                                                
                                ],
                                'createdDate' => 0,
                                'lastUpdatedDate' => 0,
                                'grantedRealmRoles' => [
                                                                
                                ]
                ]
        ],
        'notBefore' => 0,
        'applicationRoles' => [
                
        ],
        'socialLinks' => [
                [
                                'socialProvider' => '',
                                'socialUserId' => '',
                                'socialUsername' => ''
                ]
        ],
        'groups' => [
                
        ],
        'access' => [
                
        ]
    ]
  ],
  'federatedUsers' => [
    [
        
    ]
  ],
  'scopeMappings' => [
    [
        'self' => '',
        'client' => '',
        'clientTemplate' => '',
        'clientScope' => '',
        'roles' => [
                
        ]
    ]
  ],
  'clientScopeMappings' => [
    
  ],
  'clients' => [
    [
        
    ]
  ],
  'clientScopes' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'protocol' => '',
        'attributes' => [
                
        ],
        'protocolMappers' => [
                [
                                
                ]
        ]
    ]
  ],
  'defaultDefaultClientScopes' => [
    
  ],
  'defaultOptionalClientScopes' => [
    
  ],
  'browserSecurityHeaders' => [
    
  ],
  'smtpServer' => [
    
  ],
  'userFederationProviders' => [
    [
        'id' => '',
        'displayName' => '',
        'providerName' => '',
        'config' => [
                
        ],
        'priority' => 0,
        'fullSyncPeriod' => 0,
        'changedSyncPeriod' => 0,
        'lastSync' => 0
    ]
  ],
  'userFederationMappers' => [
    [
        'id' => '',
        'name' => '',
        'federationProviderDisplayName' => '',
        'federationMapperType' => '',
        'config' => [
                
        ]
    ]
  ],
  'loginTheme' => '',
  'accountTheme' => '',
  'adminTheme' => '',
  'emailTheme' => '',
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ],
  'enabledEventTypes' => [
    
  ],
  'adminEventsEnabled' => null,
  'adminEventsDetailsEnabled' => null,
  'identityProviders' => [
    [
        'alias' => '',
        'displayName' => '',
        'internalId' => '',
        'providerId' => '',
        'enabled' => null,
        'updateProfileFirstLoginMode' => '',
        'trustEmail' => null,
        'storeToken' => null,
        'addReadTokenRoleOnCreate' => null,
        'authenticateByDefault' => null,
        'linkOnly' => null,
        'hideOnLogin' => null,
        'firstBrokerLoginFlowAlias' => '',
        'postBrokerLoginFlowAlias' => '',
        'organizationId' => '',
        'config' => [
                
        ],
        'updateProfileFirstLogin' => null
    ]
  ],
  'identityProviderMappers' => [
    [
        'id' => '',
        'name' => '',
        'identityProviderAlias' => '',
        'identityProviderMapper' => '',
        'config' => [
                
        ]
    ]
  ],
  'protocolMappers' => [
    [
        
    ]
  ],
  'components' => [
    
  ],
  'internationalizationEnabled' => null,
  'supportedLocales' => [
    
  ],
  'defaultLocale' => '',
  'authenticationFlows' => [
    [
        'id' => '',
        'alias' => '',
        'description' => '',
        'providerId' => '',
        'topLevel' => null,
        'builtIn' => null,
        'authenticationExecutions' => [
                [
                                'authenticatorConfig' => '',
                                'authenticator' => '',
                                'authenticatorFlow' => null,
                                'requirement' => '',
                                'priority' => 0,
                                'autheticatorFlow' => null,
                                'flowAlias' => '',
                                'userSetupAllowed' => null
                ]
        ]
    ]
  ],
  'authenticatorConfig' => [
    [
        'id' => '',
        'alias' => '',
        'config' => [
                
        ]
    ]
  ],
  'requiredActions' => [
    [
        'alias' => '',
        'name' => '',
        'providerId' => '',
        'enabled' => null,
        'defaultAction' => null,
        'priority' => 0,
        'config' => [
                
        ]
    ]
  ],
  'browserFlow' => '',
  'registrationFlow' => '',
  'directGrantFlow' => '',
  'resetCredentialsFlow' => '',
  'clientAuthenticationFlow' => '',
  'dockerAuthenticationFlow' => '',
  'firstBrokerLoginFlow' => '',
  'attributes' => [
    
  ],
  'keycloakVersion' => '',
  'userManagedAccessAllowed' => null,
  'organizationsEnabled' => null,
  'organizations' => [
    [
        'id' => '',
        'name' => '',
        'alias' => '',
        'enabled' => null,
        'description' => '',
        'redirectUrl' => '',
        'attributes' => [
                
        ],
        'domains' => [
                [
                                'name' => '',
                                'verified' => null
                ]
        ],
        'members' => [
                [
                                'id' => '',
                                'username' => '',
                                'firstName' => '',
                                'lastName' => '',
                                'email' => '',
                                'emailVerified' => null,
                                'attributes' => [
                                                                
                                ],
                                'userProfileMetadata' => [
                                                                
                                ],
                                'enabled' => null,
                                'self' => '',
                                'origin' => '',
                                'createdTimestamp' => 0,
                                'totp' => null,
                                'federationLink' => '',
                                'serviceAccountClientId' => '',
                                'credentials' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'disableableCredentialTypes' => [
                                                                
                                ],
                                'requiredActions' => [
                                                                
                                ],
                                'federatedIdentities' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'realmRoles' => [
                                                                
                                ],
                                'clientRoles' => [
                                                                
                                ],
                                'clientConsents' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'notBefore' => 0,
                                'applicationRoles' => [
                                                                
                                ],
                                'socialLinks' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'groups' => [
                                                                
                                ],
                                'access' => [
                                                                
                                ],
                                'membershipType' => ''
                ]
        ],
        'identityProviders' => [
                [
                                
                ]
        ]
    ]
  ],
  'verifiableCredentialsEnabled' => null,
  'adminPermissionsEnabled' => null,
  'social' => null,
  'updateProfileOnInitialSocialLogin' => null,
  'socialProviders' => [
    
  ],
  'applicationScopeMappings' => [
    
  ],
  'applications' => [
    [
        'id' => '',
        'clientId' => '',
        'description' => '',
        'type' => '',
        'rootUrl' => '',
        'adminUrl' => '',
        'baseUrl' => '',
        'surrogateAuthRequired' => null,
        'enabled' => null,
        'alwaysDisplayInConsole' => null,
        'clientAuthenticatorType' => '',
        'secret' => '',
        'registrationAccessToken' => '',
        'defaultRoles' => [
                
        ],
        'redirectUris' => [
                
        ],
        'webOrigins' => [
                
        ],
        'notBefore' => 0,
        'bearerOnly' => null,
        'consentRequired' => null,
        'standardFlowEnabled' => null,
        'implicitFlowEnabled' => null,
        'directAccessGrantsEnabled' => null,
        'serviceAccountsEnabled' => null,
        'authorizationServicesEnabled' => null,
        'directGrantsOnly' => null,
        'publicClient' => null,
        'frontchannelLogout' => null,
        'protocol' => '',
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'fullScopeAllowed' => null,
        'nodeReRegistrationTimeout' => 0,
        'registeredNodes' => [
                
        ],
        'protocolMappers' => [
                [
                                
                ]
        ],
        'clientTemplate' => '',
        'useTemplateConfig' => null,
        'useTemplateScope' => null,
        'useTemplateMappers' => null,
        'defaultClientScopes' => [
                
        ],
        'optionalClientScopes' => [
                
        ],
        'authorizationSettings' => [
                
        ],
        'access' => [
                
        ],
        'origin' => '',
        'name' => '',
        'claims' => [
                
        ]
    ]
  ],
  'oauthClients' => [
    [
        'id' => '',
        'clientId' => '',
        'description' => '',
        'type' => '',
        'rootUrl' => '',
        'adminUrl' => '',
        'baseUrl' => '',
        'surrogateAuthRequired' => null,
        'enabled' => null,
        'alwaysDisplayInConsole' => null,
        'clientAuthenticatorType' => '',
        'secret' => '',
        'registrationAccessToken' => '',
        'defaultRoles' => [
                
        ],
        'redirectUris' => [
                
        ],
        'webOrigins' => [
                
        ],
        'notBefore' => 0,
        'bearerOnly' => null,
        'consentRequired' => null,
        'standardFlowEnabled' => null,
        'implicitFlowEnabled' => null,
        'directAccessGrantsEnabled' => null,
        'serviceAccountsEnabled' => null,
        'authorizationServicesEnabled' => null,
        'directGrantsOnly' => null,
        'publicClient' => null,
        'frontchannelLogout' => null,
        'protocol' => '',
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'fullScopeAllowed' => null,
        'nodeReRegistrationTimeout' => 0,
        'registeredNodes' => [
                
        ],
        'protocolMappers' => [
                [
                                
                ]
        ],
        'clientTemplate' => '',
        'useTemplateConfig' => null,
        'useTemplateScope' => null,
        'useTemplateMappers' => null,
        'defaultClientScopes' => [
                
        ],
        'optionalClientScopes' => [
                
        ],
        'authorizationSettings' => [
                
        ],
        'access' => [
                
        ],
        'origin' => '',
        'name' => '',
        'claims' => [
                
        ]
    ]
  ],
  'clientTemplates' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'protocol' => '',
        'fullScopeAllowed' => null,
        'bearerOnly' => null,
        'consentRequired' => null,
        'standardFlowEnabled' => null,
        'implicitFlowEnabled' => null,
        'directAccessGrantsEnabled' => null,
        'serviceAccountsEnabled' => null,
        'publicClient' => null,
        'frontchannelLogout' => null,
        'attributes' => [
                
        ],
        'protocolMappers' => [
                [
                                
                ]
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'realm' => '',
  'displayName' => '',
  'displayNameHtml' => '',
  'notBefore' => 0,
  'defaultSignatureAlgorithm' => '',
  'revokeRefreshToken' => null,
  'refreshTokenMaxReuse' => 0,
  'accessTokenLifespan' => 0,
  'accessTokenLifespanForImplicitFlow' => 0,
  'ssoSessionIdleTimeout' => 0,
  'ssoSessionMaxLifespan' => 0,
  'ssoSessionIdleTimeoutRememberMe' => 0,
  'ssoSessionMaxLifespanRememberMe' => 0,
  'offlineSessionIdleTimeout' => 0,
  'offlineSessionMaxLifespanEnabled' => null,
  'offlineSessionMaxLifespan' => 0,
  'clientSessionIdleTimeout' => 0,
  'clientSessionMaxLifespan' => 0,
  'clientOfflineSessionIdleTimeout' => 0,
  'clientOfflineSessionMaxLifespan' => 0,
  'accessCodeLifespan' => 0,
  'accessCodeLifespanUserAction' => 0,
  'accessCodeLifespanLogin' => 0,
  'actionTokenGeneratedByAdminLifespan' => 0,
  'actionTokenGeneratedByUserLifespan' => 0,
  'oauth2DeviceCodeLifespan' => 0,
  'oauth2DevicePollingInterval' => 0,
  'enabled' => null,
  'sslRequired' => '',
  'passwordCredentialGrantAllowed' => null,
  'registrationAllowed' => null,
  'registrationEmailAsUsername' => null,
  'rememberMe' => null,
  'verifyEmail' => null,
  'loginWithEmailAllowed' => null,
  'duplicateEmailsAllowed' => null,
  'resetPasswordAllowed' => null,
  'editUsernameAllowed' => null,
  'userCacheEnabled' => null,
  'realmCacheEnabled' => null,
  'bruteForceProtected' => null,
  'permanentLockout' => null,
  'maxTemporaryLockouts' => 0,
  'bruteForceStrategy' => '',
  'maxFailureWaitSeconds' => 0,
  'minimumQuickLoginWaitSeconds' => 0,
  'waitIncrementSeconds' => 0,
  'quickLoginCheckMilliSeconds' => 0,
  'maxDeltaTimeSeconds' => 0,
  'failureFactor' => 0,
  'privateKey' => '',
  'publicKey' => '',
  'certificate' => '',
  'codeSecret' => '',
  'roles' => [
    'realm' => [
        [
                'id' => '',
                'name' => '',
                'description' => '',
                'scopeParamRequired' => null,
                'composite' => null,
                'composites' => [
                                'realm' => [
                                                                
                                ],
                                'client' => [
                                                                
                                ],
                                'application' => [
                                                                
                                ]
                ],
                'clientRole' => null,
                'containerId' => '',
                'attributes' => [
                                
                ]
        ]
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'groups' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'path' => '',
        'parentId' => '',
        'subGroupCount' => 0,
        'subGroups' => [
                
        ],
        'attributes' => [
                
        ],
        'realmRoles' => [
                
        ],
        'clientRoles' => [
                
        ],
        'access' => [
                
        ]
    ]
  ],
  'defaultRoles' => [
    
  ],
  'defaultRole' => [
    
  ],
  'adminPermissionsClient' => [
    'id' => '',
    'clientId' => '',
    'name' => '',
    'description' => '',
    'type' => '',
    'rootUrl' => '',
    'adminUrl' => '',
    'baseUrl' => '',
    'surrogateAuthRequired' => null,
    'enabled' => null,
    'alwaysDisplayInConsole' => null,
    'clientAuthenticatorType' => '',
    'secret' => '',
    'registrationAccessToken' => '',
    'defaultRoles' => [
        
    ],
    'redirectUris' => [
        
    ],
    'webOrigins' => [
        
    ],
    'notBefore' => 0,
    'bearerOnly' => null,
    'consentRequired' => null,
    'standardFlowEnabled' => null,
    'implicitFlowEnabled' => null,
    'directAccessGrantsEnabled' => null,
    'serviceAccountsEnabled' => null,
    'authorizationServicesEnabled' => null,
    'directGrantsOnly' => null,
    'publicClient' => null,
    'frontchannelLogout' => null,
    'protocol' => '',
    'attributes' => [
        
    ],
    'authenticationFlowBindingOverrides' => [
        
    ],
    'fullScopeAllowed' => null,
    'nodeReRegistrationTimeout' => 0,
    'registeredNodes' => [
        
    ],
    'protocolMappers' => [
        [
                'id' => '',
                'name' => '',
                'protocol' => '',
                'protocolMapper' => '',
                'consentRequired' => null,
                'consentText' => '',
                'config' => [
                                
                ]
        ]
    ],
    'clientTemplate' => '',
    'useTemplateConfig' => null,
    'useTemplateScope' => null,
    'useTemplateMappers' => null,
    'defaultClientScopes' => [
        
    ],
    'optionalClientScopes' => [
        
    ],
    'authorizationSettings' => [
        'id' => '',
        'clientId' => '',
        'name' => '',
        'allowRemoteResourceManagement' => null,
        'policyEnforcementMode' => '',
        'resources' => [
                [
                                '_id' => '',
                                'name' => '',
                                'uris' => [
                                                                
                                ],
                                'type' => '',
                                'scopes' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'iconUri' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'displayName' => ''
                                                                ]
                                ],
                                'icon_uri' => '',
                                'owner' => [
                                                                
                                ],
                                'ownerManagedAccess' => null,
                                'displayName' => '',
                                'attributes' => [
                                                                
                                ],
                                'uri' => '',
                                'scopesUma' => [
                                                                [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'policies' => [
                [
                                
                ]
        ],
        'scopes' => [
                [
                                
                ]
        ],
        'decisionStrategy' => '',
        'authorizationSchema' => [
                'resourceTypes' => [
                                
                ]
        ]
    ],
    'access' => [
        
    ],
    'origin' => ''
  ],
  'defaultGroups' => [
    
  ],
  'requiredCredentials' => [
    
  ],
  'passwordPolicy' => '',
  'otpPolicyType' => '',
  'otpPolicyAlgorithm' => '',
  'otpPolicyInitialCounter' => 0,
  'otpPolicyDigits' => 0,
  'otpPolicyLookAheadWindow' => 0,
  'otpPolicyPeriod' => 0,
  'otpPolicyCodeReusable' => null,
  'otpSupportedApplications' => [
    
  ],
  'localizationTexts' => [
    
  ],
  'webAuthnPolicyRpEntityName' => '',
  'webAuthnPolicySignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyRpId' => '',
  'webAuthnPolicyAttestationConveyancePreference' => '',
  'webAuthnPolicyAuthenticatorAttachment' => '',
  'webAuthnPolicyRequireResidentKey' => '',
  'webAuthnPolicyUserVerificationRequirement' => '',
  'webAuthnPolicyCreateTimeout' => 0,
  'webAuthnPolicyAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyExtraOrigins' => [
    
  ],
  'webAuthnPolicyPasswordlessRpEntityName' => '',
  'webAuthnPolicyPasswordlessSignatureAlgorithms' => [
    
  ],
  'webAuthnPolicyPasswordlessRpId' => '',
  'webAuthnPolicyPasswordlessAttestationConveyancePreference' => '',
  'webAuthnPolicyPasswordlessAuthenticatorAttachment' => '',
  'webAuthnPolicyPasswordlessRequireResidentKey' => '',
  'webAuthnPolicyPasswordlessUserVerificationRequirement' => '',
  'webAuthnPolicyPasswordlessCreateTimeout' => 0,
  'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister' => null,
  'webAuthnPolicyPasswordlessAcceptableAaguids' => [
    
  ],
  'webAuthnPolicyPasswordlessExtraOrigins' => [
    
  ],
  'webAuthnPolicyPasswordlessPasskeysEnabled' => null,
  'clientProfiles' => [
    'profiles' => [
        [
                'name' => '',
                'description' => '',
                'executors' => [
                                [
                                                                'executor' => '',
                                                                'configuration' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ]
    ],
    'globalProfiles' => [
        [
                
        ]
    ]
  ],
  'clientPolicies' => [
    'policies' => [
        [
                'name' => '',
                'description' => '',
                'enabled' => null,
                'conditions' => [
                                [
                                                                'condition' => '',
                                                                'configuration' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'profiles' => [
                                
                ]
        ]
    ],
    'globalPolicies' => [
        [
                
        ]
    ]
  ],
  'users' => [
    [
        'id' => '',
        'username' => '',
        'firstName' => '',
        'lastName' => '',
        'email' => '',
        'emailVerified' => null,
        'attributes' => [
                
        ],
        'userProfileMetadata' => [
                'attributes' => [
                                [
                                                                'name' => '',
                                                                'displayName' => '',
                                                                'required' => null,
                                                                'readOnly' => null,
                                                                'annotations' => [
                                                                                                                                
                                                                ],
                                                                'validators' => [
                                                                                                                                
                                                                ],
                                                                'group' => '',
                                                                'multivalued' => null,
                                                                'defaultValue' => ''
                                ]
                ],
                'groups' => [
                                [
                                                                'name' => '',
                                                                'displayHeader' => '',
                                                                'displayDescription' => '',
                                                                'annotations' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ],
        'enabled' => null,
        'self' => '',
        'origin' => '',
        'createdTimestamp' => 0,
        'totp' => null,
        'federationLink' => '',
        'serviceAccountClientId' => '',
        'credentials' => [
                [
                                'id' => '',
                                'type' => '',
                                'userLabel' => '',
                                'createdDate' => 0,
                                'secretData' => '',
                                'credentialData' => '',
                                'priority' => 0,
                                'value' => '',
                                'temporary' => null,
                                'device' => '',
                                'hashedSaltedValue' => '',
                                'salt' => '',
                                'hashIterations' => 0,
                                'counter' => 0,
                                'algorithm' => '',
                                'digits' => 0,
                                'period' => 0,
                                'config' => [
                                                                
                                ],
                                'federationLink' => ''
                ]
        ],
        'disableableCredentialTypes' => [
                
        ],
        'requiredActions' => [
                
        ],
        'federatedIdentities' => [
                [
                                'identityProvider' => '',
                                'userId' => '',
                                'userName' => ''
                ]
        ],
        'realmRoles' => [
                
        ],
        'clientRoles' => [
                
        ],
        'clientConsents' => [
                [
                                'clientId' => '',
                                'grantedClientScopes' => [
                                                                
                                ],
                                'createdDate' => 0,
                                'lastUpdatedDate' => 0,
                                'grantedRealmRoles' => [
                                                                
                                ]
                ]
        ],
        'notBefore' => 0,
        'applicationRoles' => [
                
        ],
        'socialLinks' => [
                [
                                'socialProvider' => '',
                                'socialUserId' => '',
                                'socialUsername' => ''
                ]
        ],
        'groups' => [
                
        ],
        'access' => [
                
        ]
    ]
  ],
  'federatedUsers' => [
    [
        
    ]
  ],
  'scopeMappings' => [
    [
        'self' => '',
        'client' => '',
        'clientTemplate' => '',
        'clientScope' => '',
        'roles' => [
                
        ]
    ]
  ],
  'clientScopeMappings' => [
    
  ],
  'clients' => [
    [
        
    ]
  ],
  'clientScopes' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'protocol' => '',
        'attributes' => [
                
        ],
        'protocolMappers' => [
                [
                                
                ]
        ]
    ]
  ],
  'defaultDefaultClientScopes' => [
    
  ],
  'defaultOptionalClientScopes' => [
    
  ],
  'browserSecurityHeaders' => [
    
  ],
  'smtpServer' => [
    
  ],
  'userFederationProviders' => [
    [
        'id' => '',
        'displayName' => '',
        'providerName' => '',
        'config' => [
                
        ],
        'priority' => 0,
        'fullSyncPeriod' => 0,
        'changedSyncPeriod' => 0,
        'lastSync' => 0
    ]
  ],
  'userFederationMappers' => [
    [
        'id' => '',
        'name' => '',
        'federationProviderDisplayName' => '',
        'federationMapperType' => '',
        'config' => [
                
        ]
    ]
  ],
  'loginTheme' => '',
  'accountTheme' => '',
  'adminTheme' => '',
  'emailTheme' => '',
  'eventsEnabled' => null,
  'eventsExpiration' => 0,
  'eventsListeners' => [
    
  ],
  'enabledEventTypes' => [
    
  ],
  'adminEventsEnabled' => null,
  'adminEventsDetailsEnabled' => null,
  'identityProviders' => [
    [
        'alias' => '',
        'displayName' => '',
        'internalId' => '',
        'providerId' => '',
        'enabled' => null,
        'updateProfileFirstLoginMode' => '',
        'trustEmail' => null,
        'storeToken' => null,
        'addReadTokenRoleOnCreate' => null,
        'authenticateByDefault' => null,
        'linkOnly' => null,
        'hideOnLogin' => null,
        'firstBrokerLoginFlowAlias' => '',
        'postBrokerLoginFlowAlias' => '',
        'organizationId' => '',
        'config' => [
                
        ],
        'updateProfileFirstLogin' => null
    ]
  ],
  'identityProviderMappers' => [
    [
        'id' => '',
        'name' => '',
        'identityProviderAlias' => '',
        'identityProviderMapper' => '',
        'config' => [
                
        ]
    ]
  ],
  'protocolMappers' => [
    [
        
    ]
  ],
  'components' => [
    
  ],
  'internationalizationEnabled' => null,
  'supportedLocales' => [
    
  ],
  'defaultLocale' => '',
  'authenticationFlows' => [
    [
        'id' => '',
        'alias' => '',
        'description' => '',
        'providerId' => '',
        'topLevel' => null,
        'builtIn' => null,
        'authenticationExecutions' => [
                [
                                'authenticatorConfig' => '',
                                'authenticator' => '',
                                'authenticatorFlow' => null,
                                'requirement' => '',
                                'priority' => 0,
                                'autheticatorFlow' => null,
                                'flowAlias' => '',
                                'userSetupAllowed' => null
                ]
        ]
    ]
  ],
  'authenticatorConfig' => [
    [
        'id' => '',
        'alias' => '',
        'config' => [
                
        ]
    ]
  ],
  'requiredActions' => [
    [
        'alias' => '',
        'name' => '',
        'providerId' => '',
        'enabled' => null,
        'defaultAction' => null,
        'priority' => 0,
        'config' => [
                
        ]
    ]
  ],
  'browserFlow' => '',
  'registrationFlow' => '',
  'directGrantFlow' => '',
  'resetCredentialsFlow' => '',
  'clientAuthenticationFlow' => '',
  'dockerAuthenticationFlow' => '',
  'firstBrokerLoginFlow' => '',
  'attributes' => [
    
  ],
  'keycloakVersion' => '',
  'userManagedAccessAllowed' => null,
  'organizationsEnabled' => null,
  'organizations' => [
    [
        'id' => '',
        'name' => '',
        'alias' => '',
        'enabled' => null,
        'description' => '',
        'redirectUrl' => '',
        'attributes' => [
                
        ],
        'domains' => [
                [
                                'name' => '',
                                'verified' => null
                ]
        ],
        'members' => [
                [
                                'id' => '',
                                'username' => '',
                                'firstName' => '',
                                'lastName' => '',
                                'email' => '',
                                'emailVerified' => null,
                                'attributes' => [
                                                                
                                ],
                                'userProfileMetadata' => [
                                                                
                                ],
                                'enabled' => null,
                                'self' => '',
                                'origin' => '',
                                'createdTimestamp' => 0,
                                'totp' => null,
                                'federationLink' => '',
                                'serviceAccountClientId' => '',
                                'credentials' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'disableableCredentialTypes' => [
                                                                
                                ],
                                'requiredActions' => [
                                                                
                                ],
                                'federatedIdentities' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'realmRoles' => [
                                                                
                                ],
                                'clientRoles' => [
                                                                
                                ],
                                'clientConsents' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'notBefore' => 0,
                                'applicationRoles' => [
                                                                
                                ],
                                'socialLinks' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'groups' => [
                                                                
                                ],
                                'access' => [
                                                                
                                ],
                                'membershipType' => ''
                ]
        ],
        'identityProviders' => [
                [
                                
                ]
        ]
    ]
  ],
  'verifiableCredentialsEnabled' => null,
  'adminPermissionsEnabled' => null,
  'social' => null,
  'updateProfileOnInitialSocialLogin' => null,
  'socialProviders' => [
    
  ],
  'applicationScopeMappings' => [
    
  ],
  'applications' => [
    [
        'id' => '',
        'clientId' => '',
        'description' => '',
        'type' => '',
        'rootUrl' => '',
        'adminUrl' => '',
        'baseUrl' => '',
        'surrogateAuthRequired' => null,
        'enabled' => null,
        'alwaysDisplayInConsole' => null,
        'clientAuthenticatorType' => '',
        'secret' => '',
        'registrationAccessToken' => '',
        'defaultRoles' => [
                
        ],
        'redirectUris' => [
                
        ],
        'webOrigins' => [
                
        ],
        'notBefore' => 0,
        'bearerOnly' => null,
        'consentRequired' => null,
        'standardFlowEnabled' => null,
        'implicitFlowEnabled' => null,
        'directAccessGrantsEnabled' => null,
        'serviceAccountsEnabled' => null,
        'authorizationServicesEnabled' => null,
        'directGrantsOnly' => null,
        'publicClient' => null,
        'frontchannelLogout' => null,
        'protocol' => '',
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'fullScopeAllowed' => null,
        'nodeReRegistrationTimeout' => 0,
        'registeredNodes' => [
                
        ],
        'protocolMappers' => [
                [
                                
                ]
        ],
        'clientTemplate' => '',
        'useTemplateConfig' => null,
        'useTemplateScope' => null,
        'useTemplateMappers' => null,
        'defaultClientScopes' => [
                
        ],
        'optionalClientScopes' => [
                
        ],
        'authorizationSettings' => [
                
        ],
        'access' => [
                
        ],
        'origin' => '',
        'name' => '',
        'claims' => [
                
        ]
    ]
  ],
  'oauthClients' => [
    [
        'id' => '',
        'clientId' => '',
        'description' => '',
        'type' => '',
        'rootUrl' => '',
        'adminUrl' => '',
        'baseUrl' => '',
        'surrogateAuthRequired' => null,
        'enabled' => null,
        'alwaysDisplayInConsole' => null,
        'clientAuthenticatorType' => '',
        'secret' => '',
        'registrationAccessToken' => '',
        'defaultRoles' => [
                
        ],
        'redirectUris' => [
                
        ],
        'webOrigins' => [
                
        ],
        'notBefore' => 0,
        'bearerOnly' => null,
        'consentRequired' => null,
        'standardFlowEnabled' => null,
        'implicitFlowEnabled' => null,
        'directAccessGrantsEnabled' => null,
        'serviceAccountsEnabled' => null,
        'authorizationServicesEnabled' => null,
        'directGrantsOnly' => null,
        'publicClient' => null,
        'frontchannelLogout' => null,
        'protocol' => '',
        'attributes' => [
                
        ],
        'authenticationFlowBindingOverrides' => [
                
        ],
        'fullScopeAllowed' => null,
        'nodeReRegistrationTimeout' => 0,
        'registeredNodes' => [
                
        ],
        'protocolMappers' => [
                [
                                
                ]
        ],
        'clientTemplate' => '',
        'useTemplateConfig' => null,
        'useTemplateScope' => null,
        'useTemplateMappers' => null,
        'defaultClientScopes' => [
                
        ],
        'optionalClientScopes' => [
                
        ],
        'authorizationSettings' => [
                
        ],
        'access' => [
                
        ],
        'origin' => '',
        'name' => '',
        'claims' => [
                
        ]
    ]
  ],
  'clientTemplates' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'protocol' => '',
        'fullScopeAllowed' => null,
        'bearerOnly' => null,
        'consentRequired' => null,
        'standardFlowEnabled' => null,
        'implicitFlowEnabled' => null,
        'directAccessGrantsEnabled' => null,
        'serviceAccountsEnabled' => null,
        'publicClient' => null,
        'frontchannelLogout' => null,
        'attributes' => [
                
        ],
        'protocolMappers' => [
                [
                                
                ]
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "realm": "",
  "displayName": "",
  "displayNameHtml": "",
  "notBefore": 0,
  "defaultSignatureAlgorithm": "",
  "revokeRefreshToken": false,
  "refreshTokenMaxReuse": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "ssoSessionIdleTimeout": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "offlineSessionMaxLifespan": 0,
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clientOfflineSessionIdleTimeout": 0,
  "clientOfflineSessionMaxLifespan": 0,
  "accessCodeLifespan": 0,
  "accessCodeLifespanUserAction": 0,
  "accessCodeLifespanLogin": 0,
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "oauth2DeviceCodeLifespan": 0,
  "oauth2DevicePollingInterval": 0,
  "enabled": false,
  "sslRequired": "",
  "passwordCredentialGrantAllowed": false,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "rememberMe": false,
  "verifyEmail": false,
  "loginWithEmailAllowed": false,
  "duplicateEmailsAllowed": false,
  "resetPasswordAllowed": false,
  "editUsernameAllowed": false,
  "userCacheEnabled": false,
  "realmCacheEnabled": false,
  "bruteForceProtected": false,
  "permanentLockout": false,
  "maxTemporaryLockouts": 0,
  "bruteForceStrategy": "",
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "waitIncrementSeconds": 0,
  "quickLoginCheckMilliSeconds": 0,
  "maxDeltaTimeSeconds": 0,
  "failureFactor": 0,
  "privateKey": "",
  "publicKey": "",
  "certificate": "",
  "codeSecret": "",
  "roles": {
    "realm": [
      {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": {
          "realm": [],
          "client": {},
          "application": {}
        },
        "clientRole": false,
        "containerId": "",
        "attributes": {}
      }
    ],
    "client": {},
    "application": {}
  },
  "groups": [
    {
      "id": "",
      "name": "",
      "description": "",
      "path": "",
      "parentId": "",
      "subGroupCount": 0,
      "subGroups": [],
      "attributes": {},
      "realmRoles": [],
      "clientRoles": {},
      "access": {}
    }
  ],
  "defaultRoles": [],
  "defaultRole": {},
  "adminPermissionsClient": {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": false,
    "enabled": false,
    "alwaysDisplayInConsole": false,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": false,
    "consentRequired": false,
    "standardFlowEnabled": false,
    "implicitFlowEnabled": false,
    "directAccessGrantsEnabled": false,
    "serviceAccountsEnabled": false,
    "authorizationServicesEnabled": false,
    "directGrantsOnly": false,
    "publicClient": false,
    "frontchannelLogout": false,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": false,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
      {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": {}
      }
    ],
    "clientTemplate": "",
    "useTemplateConfig": false,
    "useTemplateScope": false,
    "useTemplateMappers": false,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
      "id": "",
      "clientId": "",
      "name": "",
      "allowRemoteResourceManagement": false,
      "policyEnforcementMode": "",
      "resources": [
        {
          "_id": "",
          "name": "",
          "uris": [],
          "type": "",
          "scopes": [
            {
              "id": "",
              "name": "",
              "iconUri": "",
              "policies": [
                {
                  "id": "",
                  "name": "",
                  "description": "",
                  "type": "",
                  "policies": [],
                  "resources": [],
                  "scopes": [],
                  "logic": "",
                  "decisionStrategy": "",
                  "owner": "",
                  "resourceType": "",
                  "resourcesData": [],
                  "scopesData": [],
                  "config": {}
                }
              ],
              "resources": [],
              "displayName": ""
            }
          ],
          "icon_uri": "",
          "owner": {},
          "ownerManagedAccess": false,
          "displayName": "",
          "attributes": {},
          "uri": "",
          "scopesUma": [
            {}
          ]
        }
      ],
      "policies": [
        {}
      ],
      "scopes": [
        {}
      ],
      "decisionStrategy": "",
      "authorizationSchema": {
        "resourceTypes": {}
      }
    },
    "access": {},
    "origin": ""
  },
  "defaultGroups": [],
  "requiredCredentials": [],
  "passwordPolicy": "",
  "otpPolicyType": "",
  "otpPolicyAlgorithm": "",
  "otpPolicyInitialCounter": 0,
  "otpPolicyDigits": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyCodeReusable": false,
  "otpSupportedApplications": [],
  "localizationTexts": {},
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyRpId": "",
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyUserVerificationRequirement": "",
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyExtraOrigins": [],
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessExtraOrigins": [],
  "webAuthnPolicyPasswordlessPasskeysEnabled": false,
  "clientProfiles": {
    "profiles": [
      {
        "name": "",
        "description": "",
        "executors": [
          {
            "executor": "",
            "configuration": {}
          }
        ]
      }
    ],
    "globalProfiles": [
      {}
    ]
  },
  "clientPolicies": {
    "policies": [
      {
        "name": "",
        "description": "",
        "enabled": false,
        "conditions": [
          {
            "condition": "",
            "configuration": {}
          }
        ],
        "profiles": []
      }
    ],
    "globalPolicies": [
      {}
    ]
  },
  "users": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {}
    }
  ],
  "federatedUsers": [
    {}
  ],
  "scopeMappings": [
    {
      "self": "",
      "client": "",
      "clientTemplate": "",
      "clientScope": "",
      "roles": []
    }
  ],
  "clientScopeMappings": {},
  "clients": [
    {}
  ],
  "clientScopes": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ],
  "defaultDefaultClientScopes": [],
  "defaultOptionalClientScopes": [],
  "browserSecurityHeaders": {},
  "smtpServer": {},
  "userFederationProviders": [
    {
      "id": "",
      "displayName": "",
      "providerName": "",
      "config": {},
      "priority": 0,
      "fullSyncPeriod": 0,
      "changedSyncPeriod": 0,
      "lastSync": 0
    }
  ],
  "userFederationMappers": [
    {
      "id": "",
      "name": "",
      "federationProviderDisplayName": "",
      "federationMapperType": "",
      "config": {}
    }
  ],
  "loginTheme": "",
  "accountTheme": "",
  "adminTheme": "",
  "emailTheme": "",
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false,
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ],
  "identityProviderMappers": [
    {
      "id": "",
      "name": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "config": {}
    }
  ],
  "protocolMappers": [
    {}
  ],
  "components": {},
  "internationalizationEnabled": false,
  "supportedLocales": [],
  "defaultLocale": "",
  "authenticationFlows": [
    {
      "id": "",
      "alias": "",
      "description": "",
      "providerId": "",
      "topLevel": false,
      "builtIn": false,
      "authenticationExecutions": [
        {
          "authenticatorConfig": "",
          "authenticator": "",
          "authenticatorFlow": false,
          "requirement": "",
          "priority": 0,
          "autheticatorFlow": false,
          "flowAlias": "",
          "userSetupAllowed": false
        }
      ]
    }
  ],
  "authenticatorConfig": [
    {
      "id": "",
      "alias": "",
      "config": {}
    }
  ],
  "requiredActions": [
    {
      "alias": "",
      "name": "",
      "providerId": "",
      "enabled": false,
      "defaultAction": false,
      "priority": 0,
      "config": {}
    }
  ],
  "browserFlow": "",
  "registrationFlow": "",
  "directGrantFlow": "",
  "resetCredentialsFlow": "",
  "clientAuthenticationFlow": "",
  "dockerAuthenticationFlow": "",
  "firstBrokerLoginFlow": "",
  "attributes": {},
  "keycloakVersion": "",
  "userManagedAccessAllowed": false,
  "organizationsEnabled": false,
  "organizations": [
    {
      "id": "",
      "name": "",
      "alias": "",
      "enabled": false,
      "description": "",
      "redirectUrl": "",
      "attributes": {},
      "domains": [
        {
          "name": "",
          "verified": false
        }
      ],
      "members": [
        {
          "id": "",
          "username": "",
          "firstName": "",
          "lastName": "",
          "email": "",
          "emailVerified": false,
          "attributes": {},
          "userProfileMetadata": {},
          "enabled": false,
          "self": "",
          "origin": "",
          "createdTimestamp": 0,
          "totp": false,
          "federationLink": "",
          "serviceAccountClientId": "",
          "credentials": [
            {}
          ],
          "disableableCredentialTypes": [],
          "requiredActions": [],
          "federatedIdentities": [
            {}
          ],
          "realmRoles": [],
          "clientRoles": {},
          "clientConsents": [
            {}
          ],
          "notBefore": 0,
          "applicationRoles": {},
          "socialLinks": [
            {}
          ],
          "groups": [],
          "access": {},
          "membershipType": ""
        }
      ],
      "identityProviders": [
        {}
      ]
    }
  ],
  "verifiableCredentialsEnabled": false,
  "adminPermissionsEnabled": false,
  "social": false,
  "updateProfileOnInitialSocialLogin": false,
  "socialProviders": {},
  "applicationScopeMappings": {},
  "applications": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "oauthClients": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "clientTemplates": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "fullScopeAllowed": false,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "realm": "",
  "displayName": "",
  "displayNameHtml": "",
  "notBefore": 0,
  "defaultSignatureAlgorithm": "",
  "revokeRefreshToken": false,
  "refreshTokenMaxReuse": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "ssoSessionIdleTimeout": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "offlineSessionMaxLifespan": 0,
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clientOfflineSessionIdleTimeout": 0,
  "clientOfflineSessionMaxLifespan": 0,
  "accessCodeLifespan": 0,
  "accessCodeLifespanUserAction": 0,
  "accessCodeLifespanLogin": 0,
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "oauth2DeviceCodeLifespan": 0,
  "oauth2DevicePollingInterval": 0,
  "enabled": false,
  "sslRequired": "",
  "passwordCredentialGrantAllowed": false,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "rememberMe": false,
  "verifyEmail": false,
  "loginWithEmailAllowed": false,
  "duplicateEmailsAllowed": false,
  "resetPasswordAllowed": false,
  "editUsernameAllowed": false,
  "userCacheEnabled": false,
  "realmCacheEnabled": false,
  "bruteForceProtected": false,
  "permanentLockout": false,
  "maxTemporaryLockouts": 0,
  "bruteForceStrategy": "",
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "waitIncrementSeconds": 0,
  "quickLoginCheckMilliSeconds": 0,
  "maxDeltaTimeSeconds": 0,
  "failureFactor": 0,
  "privateKey": "",
  "publicKey": "",
  "certificate": "",
  "codeSecret": "",
  "roles": {
    "realm": [
      {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": {
          "realm": [],
          "client": {},
          "application": {}
        },
        "clientRole": false,
        "containerId": "",
        "attributes": {}
      }
    ],
    "client": {},
    "application": {}
  },
  "groups": [
    {
      "id": "",
      "name": "",
      "description": "",
      "path": "",
      "parentId": "",
      "subGroupCount": 0,
      "subGroups": [],
      "attributes": {},
      "realmRoles": [],
      "clientRoles": {},
      "access": {}
    }
  ],
  "defaultRoles": [],
  "defaultRole": {},
  "adminPermissionsClient": {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": false,
    "enabled": false,
    "alwaysDisplayInConsole": false,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": false,
    "consentRequired": false,
    "standardFlowEnabled": false,
    "implicitFlowEnabled": false,
    "directAccessGrantsEnabled": false,
    "serviceAccountsEnabled": false,
    "authorizationServicesEnabled": false,
    "directGrantsOnly": false,
    "publicClient": false,
    "frontchannelLogout": false,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": false,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
      {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": {}
      }
    ],
    "clientTemplate": "",
    "useTemplateConfig": false,
    "useTemplateScope": false,
    "useTemplateMappers": false,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
      "id": "",
      "clientId": "",
      "name": "",
      "allowRemoteResourceManagement": false,
      "policyEnforcementMode": "",
      "resources": [
        {
          "_id": "",
          "name": "",
          "uris": [],
          "type": "",
          "scopes": [
            {
              "id": "",
              "name": "",
              "iconUri": "",
              "policies": [
                {
                  "id": "",
                  "name": "",
                  "description": "",
                  "type": "",
                  "policies": [],
                  "resources": [],
                  "scopes": [],
                  "logic": "",
                  "decisionStrategy": "",
                  "owner": "",
                  "resourceType": "",
                  "resourcesData": [],
                  "scopesData": [],
                  "config": {}
                }
              ],
              "resources": [],
              "displayName": ""
            }
          ],
          "icon_uri": "",
          "owner": {},
          "ownerManagedAccess": false,
          "displayName": "",
          "attributes": {},
          "uri": "",
          "scopesUma": [
            {}
          ]
        }
      ],
      "policies": [
        {}
      ],
      "scopes": [
        {}
      ],
      "decisionStrategy": "",
      "authorizationSchema": {
        "resourceTypes": {}
      }
    },
    "access": {},
    "origin": ""
  },
  "defaultGroups": [],
  "requiredCredentials": [],
  "passwordPolicy": "",
  "otpPolicyType": "",
  "otpPolicyAlgorithm": "",
  "otpPolicyInitialCounter": 0,
  "otpPolicyDigits": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyCodeReusable": false,
  "otpSupportedApplications": [],
  "localizationTexts": {},
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyRpId": "",
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyUserVerificationRequirement": "",
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyExtraOrigins": [],
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessExtraOrigins": [],
  "webAuthnPolicyPasswordlessPasskeysEnabled": false,
  "clientProfiles": {
    "profiles": [
      {
        "name": "",
        "description": "",
        "executors": [
          {
            "executor": "",
            "configuration": {}
          }
        ]
      }
    ],
    "globalProfiles": [
      {}
    ]
  },
  "clientPolicies": {
    "policies": [
      {
        "name": "",
        "description": "",
        "enabled": false,
        "conditions": [
          {
            "condition": "",
            "configuration": {}
          }
        ],
        "profiles": []
      }
    ],
    "globalPolicies": [
      {}
    ]
  },
  "users": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {}
    }
  ],
  "federatedUsers": [
    {}
  ],
  "scopeMappings": [
    {
      "self": "",
      "client": "",
      "clientTemplate": "",
      "clientScope": "",
      "roles": []
    }
  ],
  "clientScopeMappings": {},
  "clients": [
    {}
  ],
  "clientScopes": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ],
  "defaultDefaultClientScopes": [],
  "defaultOptionalClientScopes": [],
  "browserSecurityHeaders": {},
  "smtpServer": {},
  "userFederationProviders": [
    {
      "id": "",
      "displayName": "",
      "providerName": "",
      "config": {},
      "priority": 0,
      "fullSyncPeriod": 0,
      "changedSyncPeriod": 0,
      "lastSync": 0
    }
  ],
  "userFederationMappers": [
    {
      "id": "",
      "name": "",
      "federationProviderDisplayName": "",
      "federationMapperType": "",
      "config": {}
    }
  ],
  "loginTheme": "",
  "accountTheme": "",
  "adminTheme": "",
  "emailTheme": "",
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false,
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ],
  "identityProviderMappers": [
    {
      "id": "",
      "name": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "config": {}
    }
  ],
  "protocolMappers": [
    {}
  ],
  "components": {},
  "internationalizationEnabled": false,
  "supportedLocales": [],
  "defaultLocale": "",
  "authenticationFlows": [
    {
      "id": "",
      "alias": "",
      "description": "",
      "providerId": "",
      "topLevel": false,
      "builtIn": false,
      "authenticationExecutions": [
        {
          "authenticatorConfig": "",
          "authenticator": "",
          "authenticatorFlow": false,
          "requirement": "",
          "priority": 0,
          "autheticatorFlow": false,
          "flowAlias": "",
          "userSetupAllowed": false
        }
      ]
    }
  ],
  "authenticatorConfig": [
    {
      "id": "",
      "alias": "",
      "config": {}
    }
  ],
  "requiredActions": [
    {
      "alias": "",
      "name": "",
      "providerId": "",
      "enabled": false,
      "defaultAction": false,
      "priority": 0,
      "config": {}
    }
  ],
  "browserFlow": "",
  "registrationFlow": "",
  "directGrantFlow": "",
  "resetCredentialsFlow": "",
  "clientAuthenticationFlow": "",
  "dockerAuthenticationFlow": "",
  "firstBrokerLoginFlow": "",
  "attributes": {},
  "keycloakVersion": "",
  "userManagedAccessAllowed": false,
  "organizationsEnabled": false,
  "organizations": [
    {
      "id": "",
      "name": "",
      "alias": "",
      "enabled": false,
      "description": "",
      "redirectUrl": "",
      "attributes": {},
      "domains": [
        {
          "name": "",
          "verified": false
        }
      ],
      "members": [
        {
          "id": "",
          "username": "",
          "firstName": "",
          "lastName": "",
          "email": "",
          "emailVerified": false,
          "attributes": {},
          "userProfileMetadata": {},
          "enabled": false,
          "self": "",
          "origin": "",
          "createdTimestamp": 0,
          "totp": false,
          "federationLink": "",
          "serviceAccountClientId": "",
          "credentials": [
            {}
          ],
          "disableableCredentialTypes": [],
          "requiredActions": [],
          "federatedIdentities": [
            {}
          ],
          "realmRoles": [],
          "clientRoles": {},
          "clientConsents": [
            {}
          ],
          "notBefore": 0,
          "applicationRoles": {},
          "socialLinks": [
            {}
          ],
          "groups": [],
          "access": {},
          "membershipType": ""
        }
      ],
      "identityProviders": [
        {}
      ]
    }
  ],
  "verifiableCredentialsEnabled": false,
  "adminPermissionsEnabled": false,
  "social": false,
  "updateProfileOnInitialSocialLogin": false,
  "socialProviders": {},
  "applicationScopeMappings": {},
  "applications": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "oauthClients": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "clientTemplates": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "fullScopeAllowed": false,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm"

payload = {
    "id": "",
    "realm": "",
    "displayName": "",
    "displayNameHtml": "",
    "notBefore": 0,
    "defaultSignatureAlgorithm": "",
    "revokeRefreshToken": False,
    "refreshTokenMaxReuse": 0,
    "accessTokenLifespan": 0,
    "accessTokenLifespanForImplicitFlow": 0,
    "ssoSessionIdleTimeout": 0,
    "ssoSessionMaxLifespan": 0,
    "ssoSessionIdleTimeoutRememberMe": 0,
    "ssoSessionMaxLifespanRememberMe": 0,
    "offlineSessionIdleTimeout": 0,
    "offlineSessionMaxLifespanEnabled": False,
    "offlineSessionMaxLifespan": 0,
    "clientSessionIdleTimeout": 0,
    "clientSessionMaxLifespan": 0,
    "clientOfflineSessionIdleTimeout": 0,
    "clientOfflineSessionMaxLifespan": 0,
    "accessCodeLifespan": 0,
    "accessCodeLifespanUserAction": 0,
    "accessCodeLifespanLogin": 0,
    "actionTokenGeneratedByAdminLifespan": 0,
    "actionTokenGeneratedByUserLifespan": 0,
    "oauth2DeviceCodeLifespan": 0,
    "oauth2DevicePollingInterval": 0,
    "enabled": False,
    "sslRequired": "",
    "passwordCredentialGrantAllowed": False,
    "registrationAllowed": False,
    "registrationEmailAsUsername": False,
    "rememberMe": False,
    "verifyEmail": False,
    "loginWithEmailAllowed": False,
    "duplicateEmailsAllowed": False,
    "resetPasswordAllowed": False,
    "editUsernameAllowed": False,
    "userCacheEnabled": False,
    "realmCacheEnabled": False,
    "bruteForceProtected": False,
    "permanentLockout": False,
    "maxTemporaryLockouts": 0,
    "bruteForceStrategy": "",
    "maxFailureWaitSeconds": 0,
    "minimumQuickLoginWaitSeconds": 0,
    "waitIncrementSeconds": 0,
    "quickLoginCheckMilliSeconds": 0,
    "maxDeltaTimeSeconds": 0,
    "failureFactor": 0,
    "privateKey": "",
    "publicKey": "",
    "certificate": "",
    "codeSecret": "",
    "roles": {
        "realm": [
            {
                "id": "",
                "name": "",
                "description": "",
                "scopeParamRequired": False,
                "composite": False,
                "composites": {
                    "realm": [],
                    "client": {},
                    "application": {}
                },
                "clientRole": False,
                "containerId": "",
                "attributes": {}
            }
        ],
        "client": {},
        "application": {}
    },
    "groups": [
        {
            "id": "",
            "name": "",
            "description": "",
            "path": "",
            "parentId": "",
            "subGroupCount": 0,
            "subGroups": [],
            "attributes": {},
            "realmRoles": [],
            "clientRoles": {},
            "access": {}
        }
    ],
    "defaultRoles": [],
    "defaultRole": {},
    "adminPermissionsClient": {
        "id": "",
        "clientId": "",
        "name": "",
        "description": "",
        "type": "",
        "rootUrl": "",
        "adminUrl": "",
        "baseUrl": "",
        "surrogateAuthRequired": False,
        "enabled": False,
        "alwaysDisplayInConsole": False,
        "clientAuthenticatorType": "",
        "secret": "",
        "registrationAccessToken": "",
        "defaultRoles": [],
        "redirectUris": [],
        "webOrigins": [],
        "notBefore": 0,
        "bearerOnly": False,
        "consentRequired": False,
        "standardFlowEnabled": False,
        "implicitFlowEnabled": False,
        "directAccessGrantsEnabled": False,
        "serviceAccountsEnabled": False,
        "authorizationServicesEnabled": False,
        "directGrantsOnly": False,
        "publicClient": False,
        "frontchannelLogout": False,
        "protocol": "",
        "attributes": {},
        "authenticationFlowBindingOverrides": {},
        "fullScopeAllowed": False,
        "nodeReRegistrationTimeout": 0,
        "registeredNodes": {},
        "protocolMappers": [
            {
                "id": "",
                "name": "",
                "protocol": "",
                "protocolMapper": "",
                "consentRequired": False,
                "consentText": "",
                "config": {}
            }
        ],
        "clientTemplate": "",
        "useTemplateConfig": False,
        "useTemplateScope": False,
        "useTemplateMappers": False,
        "defaultClientScopes": [],
        "optionalClientScopes": [],
        "authorizationSettings": {
            "id": "",
            "clientId": "",
            "name": "",
            "allowRemoteResourceManagement": False,
            "policyEnforcementMode": "",
            "resources": [
                {
                    "_id": "",
                    "name": "",
                    "uris": [],
                    "type": "",
                    "scopes": [
                        {
                            "id": "",
                            "name": "",
                            "iconUri": "",
                            "policies": [
                                {
                                    "id": "",
                                    "name": "",
                                    "description": "",
                                    "type": "",
                                    "policies": [],
                                    "resources": [],
                                    "scopes": [],
                                    "logic": "",
                                    "decisionStrategy": "",
                                    "owner": "",
                                    "resourceType": "",
                                    "resourcesData": [],
                                    "scopesData": [],
                                    "config": {}
                                }
                            ],
                            "resources": [],
                            "displayName": ""
                        }
                    ],
                    "icon_uri": "",
                    "owner": {},
                    "ownerManagedAccess": False,
                    "displayName": "",
                    "attributes": {},
                    "uri": "",
                    "scopesUma": [{}]
                }
            ],
            "policies": [{}],
            "scopes": [{}],
            "decisionStrategy": "",
            "authorizationSchema": { "resourceTypes": {} }
        },
        "access": {},
        "origin": ""
    },
    "defaultGroups": [],
    "requiredCredentials": [],
    "passwordPolicy": "",
    "otpPolicyType": "",
    "otpPolicyAlgorithm": "",
    "otpPolicyInitialCounter": 0,
    "otpPolicyDigits": 0,
    "otpPolicyLookAheadWindow": 0,
    "otpPolicyPeriod": 0,
    "otpPolicyCodeReusable": False,
    "otpSupportedApplications": [],
    "localizationTexts": {},
    "webAuthnPolicyRpEntityName": "",
    "webAuthnPolicySignatureAlgorithms": [],
    "webAuthnPolicyRpId": "",
    "webAuthnPolicyAttestationConveyancePreference": "",
    "webAuthnPolicyAuthenticatorAttachment": "",
    "webAuthnPolicyRequireResidentKey": "",
    "webAuthnPolicyUserVerificationRequirement": "",
    "webAuthnPolicyCreateTimeout": 0,
    "webAuthnPolicyAvoidSameAuthenticatorRegister": False,
    "webAuthnPolicyAcceptableAaguids": [],
    "webAuthnPolicyExtraOrigins": [],
    "webAuthnPolicyPasswordlessRpEntityName": "",
    "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
    "webAuthnPolicyPasswordlessRpId": "",
    "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
    "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
    "webAuthnPolicyPasswordlessRequireResidentKey": "",
    "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
    "webAuthnPolicyPasswordlessCreateTimeout": 0,
    "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": False,
    "webAuthnPolicyPasswordlessAcceptableAaguids": [],
    "webAuthnPolicyPasswordlessExtraOrigins": [],
    "webAuthnPolicyPasswordlessPasskeysEnabled": False,
    "clientProfiles": {
        "profiles": [
            {
                "name": "",
                "description": "",
                "executors": [
                    {
                        "executor": "",
                        "configuration": {}
                    }
                ]
            }
        ],
        "globalProfiles": [{}]
    },
    "clientPolicies": {
        "policies": [
            {
                "name": "",
                "description": "",
                "enabled": False,
                "conditions": [
                    {
                        "condition": "",
                        "configuration": {}
                    }
                ],
                "profiles": []
            }
        ],
        "globalPolicies": [{}]
    },
    "users": [
        {
            "id": "",
            "username": "",
            "firstName": "",
            "lastName": "",
            "email": "",
            "emailVerified": False,
            "attributes": {},
            "userProfileMetadata": {
                "attributes": [
                    {
                        "name": "",
                        "displayName": "",
                        "required": False,
                        "readOnly": False,
                        "annotations": {},
                        "validators": {},
                        "group": "",
                        "multivalued": False,
                        "defaultValue": ""
                    }
                ],
                "groups": [
                    {
                        "name": "",
                        "displayHeader": "",
                        "displayDescription": "",
                        "annotations": {}
                    }
                ]
            },
            "enabled": False,
            "self": "",
            "origin": "",
            "createdTimestamp": 0,
            "totp": False,
            "federationLink": "",
            "serviceAccountClientId": "",
            "credentials": [
                {
                    "id": "",
                    "type": "",
                    "userLabel": "",
                    "createdDate": 0,
                    "secretData": "",
                    "credentialData": "",
                    "priority": 0,
                    "value": "",
                    "temporary": False,
                    "device": "",
                    "hashedSaltedValue": "",
                    "salt": "",
                    "hashIterations": 0,
                    "counter": 0,
                    "algorithm": "",
                    "digits": 0,
                    "period": 0,
                    "config": {},
                    "federationLink": ""
                }
            ],
            "disableableCredentialTypes": [],
            "requiredActions": [],
            "federatedIdentities": [
                {
                    "identityProvider": "",
                    "userId": "",
                    "userName": ""
                }
            ],
            "realmRoles": [],
            "clientRoles": {},
            "clientConsents": [
                {
                    "clientId": "",
                    "grantedClientScopes": [],
                    "createdDate": 0,
                    "lastUpdatedDate": 0,
                    "grantedRealmRoles": []
                }
            ],
            "notBefore": 0,
            "applicationRoles": {},
            "socialLinks": [
                {
                    "socialProvider": "",
                    "socialUserId": "",
                    "socialUsername": ""
                }
            ],
            "groups": [],
            "access": {}
        }
    ],
    "federatedUsers": [{}],
    "scopeMappings": [
        {
            "self": "",
            "client": "",
            "clientTemplate": "",
            "clientScope": "",
            "roles": []
        }
    ],
    "clientScopeMappings": {},
    "clients": [{}],
    "clientScopes": [
        {
            "id": "",
            "name": "",
            "description": "",
            "protocol": "",
            "attributes": {},
            "protocolMappers": [{}]
        }
    ],
    "defaultDefaultClientScopes": [],
    "defaultOptionalClientScopes": [],
    "browserSecurityHeaders": {},
    "smtpServer": {},
    "userFederationProviders": [
        {
            "id": "",
            "displayName": "",
            "providerName": "",
            "config": {},
            "priority": 0,
            "fullSyncPeriod": 0,
            "changedSyncPeriod": 0,
            "lastSync": 0
        }
    ],
    "userFederationMappers": [
        {
            "id": "",
            "name": "",
            "federationProviderDisplayName": "",
            "federationMapperType": "",
            "config": {}
        }
    ],
    "loginTheme": "",
    "accountTheme": "",
    "adminTheme": "",
    "emailTheme": "",
    "eventsEnabled": False,
    "eventsExpiration": 0,
    "eventsListeners": [],
    "enabledEventTypes": [],
    "adminEventsEnabled": False,
    "adminEventsDetailsEnabled": False,
    "identityProviders": [
        {
            "alias": "",
            "displayName": "",
            "internalId": "",
            "providerId": "",
            "enabled": False,
            "updateProfileFirstLoginMode": "",
            "trustEmail": False,
            "storeToken": False,
            "addReadTokenRoleOnCreate": False,
            "authenticateByDefault": False,
            "linkOnly": False,
            "hideOnLogin": False,
            "firstBrokerLoginFlowAlias": "",
            "postBrokerLoginFlowAlias": "",
            "organizationId": "",
            "config": {},
            "updateProfileFirstLogin": False
        }
    ],
    "identityProviderMappers": [
        {
            "id": "",
            "name": "",
            "identityProviderAlias": "",
            "identityProviderMapper": "",
            "config": {}
        }
    ],
    "protocolMappers": [{}],
    "components": {},
    "internationalizationEnabled": False,
    "supportedLocales": [],
    "defaultLocale": "",
    "authenticationFlows": [
        {
            "id": "",
            "alias": "",
            "description": "",
            "providerId": "",
            "topLevel": False,
            "builtIn": False,
            "authenticationExecutions": [
                {
                    "authenticatorConfig": "",
                    "authenticator": "",
                    "authenticatorFlow": False,
                    "requirement": "",
                    "priority": 0,
                    "autheticatorFlow": False,
                    "flowAlias": "",
                    "userSetupAllowed": False
                }
            ]
        }
    ],
    "authenticatorConfig": [
        {
            "id": "",
            "alias": "",
            "config": {}
        }
    ],
    "requiredActions": [
        {
            "alias": "",
            "name": "",
            "providerId": "",
            "enabled": False,
            "defaultAction": False,
            "priority": 0,
            "config": {}
        }
    ],
    "browserFlow": "",
    "registrationFlow": "",
    "directGrantFlow": "",
    "resetCredentialsFlow": "",
    "clientAuthenticationFlow": "",
    "dockerAuthenticationFlow": "",
    "firstBrokerLoginFlow": "",
    "attributes": {},
    "keycloakVersion": "",
    "userManagedAccessAllowed": False,
    "organizationsEnabled": False,
    "organizations": [
        {
            "id": "",
            "name": "",
            "alias": "",
            "enabled": False,
            "description": "",
            "redirectUrl": "",
            "attributes": {},
            "domains": [
                {
                    "name": "",
                    "verified": False
                }
            ],
            "members": [
                {
                    "id": "",
                    "username": "",
                    "firstName": "",
                    "lastName": "",
                    "email": "",
                    "emailVerified": False,
                    "attributes": {},
                    "userProfileMetadata": {},
                    "enabled": False,
                    "self": "",
                    "origin": "",
                    "createdTimestamp": 0,
                    "totp": False,
                    "federationLink": "",
                    "serviceAccountClientId": "",
                    "credentials": [{}],
                    "disableableCredentialTypes": [],
                    "requiredActions": [],
                    "federatedIdentities": [{}],
                    "realmRoles": [],
                    "clientRoles": {},
                    "clientConsents": [{}],
                    "notBefore": 0,
                    "applicationRoles": {},
                    "socialLinks": [{}],
                    "groups": [],
                    "access": {},
                    "membershipType": ""
                }
            ],
            "identityProviders": [{}]
        }
    ],
    "verifiableCredentialsEnabled": False,
    "adminPermissionsEnabled": False,
    "social": False,
    "updateProfileOnInitialSocialLogin": False,
    "socialProviders": {},
    "applicationScopeMappings": {},
    "applications": [
        {
            "id": "",
            "clientId": "",
            "description": "",
            "type": "",
            "rootUrl": "",
            "adminUrl": "",
            "baseUrl": "",
            "surrogateAuthRequired": False,
            "enabled": False,
            "alwaysDisplayInConsole": False,
            "clientAuthenticatorType": "",
            "secret": "",
            "registrationAccessToken": "",
            "defaultRoles": [],
            "redirectUris": [],
            "webOrigins": [],
            "notBefore": 0,
            "bearerOnly": False,
            "consentRequired": False,
            "standardFlowEnabled": False,
            "implicitFlowEnabled": False,
            "directAccessGrantsEnabled": False,
            "serviceAccountsEnabled": False,
            "authorizationServicesEnabled": False,
            "directGrantsOnly": False,
            "publicClient": False,
            "frontchannelLogout": False,
            "protocol": "",
            "attributes": {},
            "authenticationFlowBindingOverrides": {},
            "fullScopeAllowed": False,
            "nodeReRegistrationTimeout": 0,
            "registeredNodes": {},
            "protocolMappers": [{}],
            "clientTemplate": "",
            "useTemplateConfig": False,
            "useTemplateScope": False,
            "useTemplateMappers": False,
            "defaultClientScopes": [],
            "optionalClientScopes": [],
            "authorizationSettings": {},
            "access": {},
            "origin": "",
            "name": "",
            "claims": {}
        }
    ],
    "oauthClients": [
        {
            "id": "",
            "clientId": "",
            "description": "",
            "type": "",
            "rootUrl": "",
            "adminUrl": "",
            "baseUrl": "",
            "surrogateAuthRequired": False,
            "enabled": False,
            "alwaysDisplayInConsole": False,
            "clientAuthenticatorType": "",
            "secret": "",
            "registrationAccessToken": "",
            "defaultRoles": [],
            "redirectUris": [],
            "webOrigins": [],
            "notBefore": 0,
            "bearerOnly": False,
            "consentRequired": False,
            "standardFlowEnabled": False,
            "implicitFlowEnabled": False,
            "directAccessGrantsEnabled": False,
            "serviceAccountsEnabled": False,
            "authorizationServicesEnabled": False,
            "directGrantsOnly": False,
            "publicClient": False,
            "frontchannelLogout": False,
            "protocol": "",
            "attributes": {},
            "authenticationFlowBindingOverrides": {},
            "fullScopeAllowed": False,
            "nodeReRegistrationTimeout": 0,
            "registeredNodes": {},
            "protocolMappers": [{}],
            "clientTemplate": "",
            "useTemplateConfig": False,
            "useTemplateScope": False,
            "useTemplateMappers": False,
            "defaultClientScopes": [],
            "optionalClientScopes": [],
            "authorizationSettings": {},
            "access": {},
            "origin": "",
            "name": "",
            "claims": {}
        }
    ],
    "clientTemplates": [
        {
            "id": "",
            "name": "",
            "description": "",
            "protocol": "",
            "fullScopeAllowed": False,
            "bearerOnly": False,
            "consentRequired": False,
            "standardFlowEnabled": False,
            "implicitFlowEnabled": False,
            "directAccessGrantsEnabled": False,
            "serviceAccountsEnabled": False,
            "publicClient": False,
            "frontchannelLogout": False,
            "attributes": {},
            "protocolMappers": [{}]
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm"

payload <- "{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\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}}/admin/realms/: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  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\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/admin/realms/:realm') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"realm\": \"\",\n  \"displayName\": \"\",\n  \"displayNameHtml\": \"\",\n  \"notBefore\": 0,\n  \"defaultSignatureAlgorithm\": \"\",\n  \"revokeRefreshToken\": false,\n  \"refreshTokenMaxReuse\": 0,\n  \"accessTokenLifespan\": 0,\n  \"accessTokenLifespanForImplicitFlow\": 0,\n  \"ssoSessionIdleTimeout\": 0,\n  \"ssoSessionMaxLifespan\": 0,\n  \"ssoSessionIdleTimeoutRememberMe\": 0,\n  \"ssoSessionMaxLifespanRememberMe\": 0,\n  \"offlineSessionIdleTimeout\": 0,\n  \"offlineSessionMaxLifespanEnabled\": false,\n  \"offlineSessionMaxLifespan\": 0,\n  \"clientSessionIdleTimeout\": 0,\n  \"clientSessionMaxLifespan\": 0,\n  \"clientOfflineSessionIdleTimeout\": 0,\n  \"clientOfflineSessionMaxLifespan\": 0,\n  \"accessCodeLifespan\": 0,\n  \"accessCodeLifespanUserAction\": 0,\n  \"accessCodeLifespanLogin\": 0,\n  \"actionTokenGeneratedByAdminLifespan\": 0,\n  \"actionTokenGeneratedByUserLifespan\": 0,\n  \"oauth2DeviceCodeLifespan\": 0,\n  \"oauth2DevicePollingInterval\": 0,\n  \"enabled\": false,\n  \"sslRequired\": \"\",\n  \"passwordCredentialGrantAllowed\": false,\n  \"registrationAllowed\": false,\n  \"registrationEmailAsUsername\": false,\n  \"rememberMe\": false,\n  \"verifyEmail\": false,\n  \"loginWithEmailAllowed\": false,\n  \"duplicateEmailsAllowed\": false,\n  \"resetPasswordAllowed\": false,\n  \"editUsernameAllowed\": false,\n  \"userCacheEnabled\": false,\n  \"realmCacheEnabled\": false,\n  \"bruteForceProtected\": false,\n  \"permanentLockout\": false,\n  \"maxTemporaryLockouts\": 0,\n  \"bruteForceStrategy\": \"\",\n  \"maxFailureWaitSeconds\": 0,\n  \"minimumQuickLoginWaitSeconds\": 0,\n  \"waitIncrementSeconds\": 0,\n  \"quickLoginCheckMilliSeconds\": 0,\n  \"maxDeltaTimeSeconds\": 0,\n  \"failureFactor\": 0,\n  \"privateKey\": \"\",\n  \"publicKey\": \"\",\n  \"certificate\": \"\",\n  \"codeSecret\": \"\",\n  \"roles\": {\n    \"realm\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"description\": \"\",\n        \"scopeParamRequired\": false,\n        \"composite\": false,\n        \"composites\": {\n          \"realm\": [],\n          \"client\": {},\n          \"application\": {}\n        },\n        \"clientRole\": false,\n        \"containerId\": \"\",\n        \"attributes\": {}\n      }\n    ],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"groups\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"path\": \"\",\n      \"parentId\": \"\",\n      \"subGroupCount\": 0,\n      \"subGroups\": [],\n      \"attributes\": {},\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"access\": {}\n    }\n  ],\n  \"defaultRoles\": [],\n  \"defaultRole\": {},\n  \"adminPermissionsClient\": {\n    \"id\": \"\",\n    \"clientId\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"type\": \"\",\n    \"rootUrl\": \"\",\n    \"adminUrl\": \"\",\n    \"baseUrl\": \"\",\n    \"surrogateAuthRequired\": false,\n    \"enabled\": false,\n    \"alwaysDisplayInConsole\": false,\n    \"clientAuthenticatorType\": \"\",\n    \"secret\": \"\",\n    \"registrationAccessToken\": \"\",\n    \"defaultRoles\": [],\n    \"redirectUris\": [],\n    \"webOrigins\": [],\n    \"notBefore\": 0,\n    \"bearerOnly\": false,\n    \"consentRequired\": false,\n    \"standardFlowEnabled\": false,\n    \"implicitFlowEnabled\": false,\n    \"directAccessGrantsEnabled\": false,\n    \"serviceAccountsEnabled\": false,\n    \"authorizationServicesEnabled\": false,\n    \"directGrantsOnly\": false,\n    \"publicClient\": false,\n    \"frontchannelLogout\": false,\n    \"protocol\": \"\",\n    \"attributes\": {},\n    \"authenticationFlowBindingOverrides\": {},\n    \"fullScopeAllowed\": false,\n    \"nodeReRegistrationTimeout\": 0,\n    \"registeredNodes\": {},\n    \"protocolMappers\": [\n      {\n        \"id\": \"\",\n        \"name\": \"\",\n        \"protocol\": \"\",\n        \"protocolMapper\": \"\",\n        \"consentRequired\": false,\n        \"consentText\": \"\",\n        \"config\": {}\n      }\n    ],\n    \"clientTemplate\": \"\",\n    \"useTemplateConfig\": false,\n    \"useTemplateScope\": false,\n    \"useTemplateMappers\": false,\n    \"defaultClientScopes\": [],\n    \"optionalClientScopes\": [],\n    \"authorizationSettings\": {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"name\": \"\",\n      \"allowRemoteResourceManagement\": false,\n      \"policyEnforcementMode\": \"\",\n      \"resources\": [\n        {\n          \"_id\": \"\",\n          \"name\": \"\",\n          \"uris\": [],\n          \"type\": \"\",\n          \"scopes\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"iconUri\": \"\",\n              \"policies\": [\n                {\n                  \"id\": \"\",\n                  \"name\": \"\",\n                  \"description\": \"\",\n                  \"type\": \"\",\n                  \"policies\": [],\n                  \"resources\": [],\n                  \"scopes\": [],\n                  \"logic\": \"\",\n                  \"decisionStrategy\": \"\",\n                  \"owner\": \"\",\n                  \"resourceType\": \"\",\n                  \"resourcesData\": [],\n                  \"scopesData\": [],\n                  \"config\": {}\n                }\n              ],\n              \"resources\": [],\n              \"displayName\": \"\"\n            }\n          ],\n          \"icon_uri\": \"\",\n          \"owner\": {},\n          \"ownerManagedAccess\": false,\n          \"displayName\": \"\",\n          \"attributes\": {},\n          \"uri\": \"\",\n          \"scopesUma\": [\n            {}\n          ]\n        }\n      ],\n      \"policies\": [\n        {}\n      ],\n      \"scopes\": [\n        {}\n      ],\n      \"decisionStrategy\": \"\",\n      \"authorizationSchema\": {\n        \"resourceTypes\": {}\n      }\n    },\n    \"access\": {},\n    \"origin\": \"\"\n  },\n  \"defaultGroups\": [],\n  \"requiredCredentials\": [],\n  \"passwordPolicy\": \"\",\n  \"otpPolicyType\": \"\",\n  \"otpPolicyAlgorithm\": \"\",\n  \"otpPolicyInitialCounter\": 0,\n  \"otpPolicyDigits\": 0,\n  \"otpPolicyLookAheadWindow\": 0,\n  \"otpPolicyPeriod\": 0,\n  \"otpPolicyCodeReusable\": false,\n  \"otpSupportedApplications\": [],\n  \"localizationTexts\": {},\n  \"webAuthnPolicyRpEntityName\": \"\",\n  \"webAuthnPolicySignatureAlgorithms\": [],\n  \"webAuthnPolicyRpId\": \"\",\n  \"webAuthnPolicyAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyRequireResidentKey\": \"\",\n  \"webAuthnPolicyUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyCreateTimeout\": 0,\n  \"webAuthnPolicyAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyAcceptableAaguids\": [],\n  \"webAuthnPolicyExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessRpEntityName\": \"\",\n  \"webAuthnPolicyPasswordlessSignatureAlgorithms\": [],\n  \"webAuthnPolicyPasswordlessRpId\": \"\",\n  \"webAuthnPolicyPasswordlessAttestationConveyancePreference\": \"\",\n  \"webAuthnPolicyPasswordlessAuthenticatorAttachment\": \"\",\n  \"webAuthnPolicyPasswordlessRequireResidentKey\": \"\",\n  \"webAuthnPolicyPasswordlessUserVerificationRequirement\": \"\",\n  \"webAuthnPolicyPasswordlessCreateTimeout\": 0,\n  \"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister\": false,\n  \"webAuthnPolicyPasswordlessAcceptableAaguids\": [],\n  \"webAuthnPolicyPasswordlessExtraOrigins\": [],\n  \"webAuthnPolicyPasswordlessPasskeysEnabled\": false,\n  \"clientProfiles\": {\n    \"profiles\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"executors\": [\n          {\n            \"executor\": \"\",\n            \"configuration\": {}\n          }\n        ]\n      }\n    ],\n    \"globalProfiles\": [\n      {}\n    ]\n  },\n  \"clientPolicies\": {\n    \"policies\": [\n      {\n        \"name\": \"\",\n        \"description\": \"\",\n        \"enabled\": false,\n        \"conditions\": [\n          {\n            \"condition\": \"\",\n            \"configuration\": {}\n          }\n        ],\n        \"profiles\": []\n      }\n    ],\n    \"globalPolicies\": [\n      {}\n    ]\n  },\n  \"users\": [\n    {\n      \"id\": \"\",\n      \"username\": \"\",\n      \"firstName\": \"\",\n      \"lastName\": \"\",\n      \"email\": \"\",\n      \"emailVerified\": false,\n      \"attributes\": {},\n      \"userProfileMetadata\": {\n        \"attributes\": [\n          {\n            \"name\": \"\",\n            \"displayName\": \"\",\n            \"required\": false,\n            \"readOnly\": false,\n            \"annotations\": {},\n            \"validators\": {},\n            \"group\": \"\",\n            \"multivalued\": false,\n            \"defaultValue\": \"\"\n          }\n        ],\n        \"groups\": [\n          {\n            \"name\": \"\",\n            \"displayHeader\": \"\",\n            \"displayDescription\": \"\",\n            \"annotations\": {}\n          }\n        ]\n      },\n      \"enabled\": false,\n      \"self\": \"\",\n      \"origin\": \"\",\n      \"createdTimestamp\": 0,\n      \"totp\": false,\n      \"federationLink\": \"\",\n      \"serviceAccountClientId\": \"\",\n      \"credentials\": [\n        {\n          \"id\": \"\",\n          \"type\": \"\",\n          \"userLabel\": \"\",\n          \"createdDate\": 0,\n          \"secretData\": \"\",\n          \"credentialData\": \"\",\n          \"priority\": 0,\n          \"value\": \"\",\n          \"temporary\": false,\n          \"device\": \"\",\n          \"hashedSaltedValue\": \"\",\n          \"salt\": \"\",\n          \"hashIterations\": 0,\n          \"counter\": 0,\n          \"algorithm\": \"\",\n          \"digits\": 0,\n          \"period\": 0,\n          \"config\": {},\n          \"federationLink\": \"\"\n        }\n      ],\n      \"disableableCredentialTypes\": [],\n      \"requiredActions\": [],\n      \"federatedIdentities\": [\n        {\n          \"identityProvider\": \"\",\n          \"userId\": \"\",\n          \"userName\": \"\"\n        }\n      ],\n      \"realmRoles\": [],\n      \"clientRoles\": {},\n      \"clientConsents\": [\n        {\n          \"clientId\": \"\",\n          \"grantedClientScopes\": [],\n          \"createdDate\": 0,\n          \"lastUpdatedDate\": 0,\n          \"grantedRealmRoles\": []\n        }\n      ],\n      \"notBefore\": 0,\n      \"applicationRoles\": {},\n      \"socialLinks\": [\n        {\n          \"socialProvider\": \"\",\n          \"socialUserId\": \"\",\n          \"socialUsername\": \"\"\n        }\n      ],\n      \"groups\": [],\n      \"access\": {}\n    }\n  ],\n  \"federatedUsers\": [\n    {}\n  ],\n  \"scopeMappings\": [\n    {\n      \"self\": \"\",\n      \"client\": \"\",\n      \"clientTemplate\": \"\",\n      \"clientScope\": \"\",\n      \"roles\": []\n    }\n  ],\n  \"clientScopeMappings\": {},\n  \"clients\": [\n    {}\n  ],\n  \"clientScopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\n    }\n  ],\n  \"defaultDefaultClientScopes\": [],\n  \"defaultOptionalClientScopes\": [],\n  \"browserSecurityHeaders\": {},\n  \"smtpServer\": {},\n  \"userFederationProviders\": [\n    {\n      \"id\": \"\",\n      \"displayName\": \"\",\n      \"providerName\": \"\",\n      \"config\": {},\n      \"priority\": 0,\n      \"fullSyncPeriod\": 0,\n      \"changedSyncPeriod\": 0,\n      \"lastSync\": 0\n    }\n  ],\n  \"userFederationMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"federationProviderDisplayName\": \"\",\n      \"federationMapperType\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"loginTheme\": \"\",\n  \"accountTheme\": \"\",\n  \"adminTheme\": \"\",\n  \"emailTheme\": \"\",\n  \"eventsEnabled\": false,\n  \"eventsExpiration\": 0,\n  \"eventsListeners\": [],\n  \"enabledEventTypes\": [],\n  \"adminEventsEnabled\": false,\n  \"adminEventsDetailsEnabled\": false,\n  \"identityProviders\": [\n    {\n      \"alias\": \"\",\n      \"displayName\": \"\",\n      \"internalId\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"updateProfileFirstLoginMode\": \"\",\n      \"trustEmail\": false,\n      \"storeToken\": false,\n      \"addReadTokenRoleOnCreate\": false,\n      \"authenticateByDefault\": false,\n      \"linkOnly\": false,\n      \"hideOnLogin\": false,\n      \"firstBrokerLoginFlowAlias\": \"\",\n      \"postBrokerLoginFlowAlias\": \"\",\n      \"organizationId\": \"\",\n      \"config\": {},\n      \"updateProfileFirstLogin\": false\n    }\n  ],\n  \"identityProviderMappers\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"identityProviderAlias\": \"\",\n      \"identityProviderMapper\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"protocolMappers\": [\n    {}\n  ],\n  \"components\": {},\n  \"internationalizationEnabled\": false,\n  \"supportedLocales\": [],\n  \"defaultLocale\": \"\",\n  \"authenticationFlows\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"description\": \"\",\n      \"providerId\": \"\",\n      \"topLevel\": false,\n      \"builtIn\": false,\n      \"authenticationExecutions\": [\n        {\n          \"authenticatorConfig\": \"\",\n          \"authenticator\": \"\",\n          \"authenticatorFlow\": false,\n          \"requirement\": \"\",\n          \"priority\": 0,\n          \"autheticatorFlow\": false,\n          \"flowAlias\": \"\",\n          \"userSetupAllowed\": false\n        }\n      ]\n    }\n  ],\n  \"authenticatorConfig\": [\n    {\n      \"id\": \"\",\n      \"alias\": \"\",\n      \"config\": {}\n    }\n  ],\n  \"requiredActions\": [\n    {\n      \"alias\": \"\",\n      \"name\": \"\",\n      \"providerId\": \"\",\n      \"enabled\": false,\n      \"defaultAction\": false,\n      \"priority\": 0,\n      \"config\": {}\n    }\n  ],\n  \"browserFlow\": \"\",\n  \"registrationFlow\": \"\",\n  \"directGrantFlow\": \"\",\n  \"resetCredentialsFlow\": \"\",\n  \"clientAuthenticationFlow\": \"\",\n  \"dockerAuthenticationFlow\": \"\",\n  \"firstBrokerLoginFlow\": \"\",\n  \"attributes\": {},\n  \"keycloakVersion\": \"\",\n  \"userManagedAccessAllowed\": false,\n  \"organizationsEnabled\": false,\n  \"organizations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"alias\": \"\",\n      \"enabled\": false,\n      \"description\": \"\",\n      \"redirectUrl\": \"\",\n      \"attributes\": {},\n      \"domains\": [\n        {\n          \"name\": \"\",\n          \"verified\": false\n        }\n      ],\n      \"members\": [\n        {\n          \"id\": \"\",\n          \"username\": \"\",\n          \"firstName\": \"\",\n          \"lastName\": \"\",\n          \"email\": \"\",\n          \"emailVerified\": false,\n          \"attributes\": {},\n          \"userProfileMetadata\": {},\n          \"enabled\": false,\n          \"self\": \"\",\n          \"origin\": \"\",\n          \"createdTimestamp\": 0,\n          \"totp\": false,\n          \"federationLink\": \"\",\n          \"serviceAccountClientId\": \"\",\n          \"credentials\": [\n            {}\n          ],\n          \"disableableCredentialTypes\": [],\n          \"requiredActions\": [],\n          \"federatedIdentities\": [\n            {}\n          ],\n          \"realmRoles\": [],\n          \"clientRoles\": {},\n          \"clientConsents\": [\n            {}\n          ],\n          \"notBefore\": 0,\n          \"applicationRoles\": {},\n          \"socialLinks\": [\n            {}\n          ],\n          \"groups\": [],\n          \"access\": {},\n          \"membershipType\": \"\"\n        }\n      ],\n      \"identityProviders\": [\n        {}\n      ]\n    }\n  ],\n  \"verifiableCredentialsEnabled\": false,\n  \"adminPermissionsEnabled\": false,\n  \"social\": false,\n  \"updateProfileOnInitialSocialLogin\": false,\n  \"socialProviders\": {},\n  \"applicationScopeMappings\": {},\n  \"applications\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"oauthClients\": [\n    {\n      \"id\": \"\",\n      \"clientId\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"rootUrl\": \"\",\n      \"adminUrl\": \"\",\n      \"baseUrl\": \"\",\n      \"surrogateAuthRequired\": false,\n      \"enabled\": false,\n      \"alwaysDisplayInConsole\": false,\n      \"clientAuthenticatorType\": \"\",\n      \"secret\": \"\",\n      \"registrationAccessToken\": \"\",\n      \"defaultRoles\": [],\n      \"redirectUris\": [],\n      \"webOrigins\": [],\n      \"notBefore\": 0,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"authorizationServicesEnabled\": false,\n      \"directGrantsOnly\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"protocol\": \"\",\n      \"attributes\": {},\n      \"authenticationFlowBindingOverrides\": {},\n      \"fullScopeAllowed\": false,\n      \"nodeReRegistrationTimeout\": 0,\n      \"registeredNodes\": {},\n      \"protocolMappers\": [\n        {}\n      ],\n      \"clientTemplate\": \"\",\n      \"useTemplateConfig\": false,\n      \"useTemplateScope\": false,\n      \"useTemplateMappers\": false,\n      \"defaultClientScopes\": [],\n      \"optionalClientScopes\": [],\n      \"authorizationSettings\": {},\n      \"access\": {},\n      \"origin\": \"\",\n      \"name\": \"\",\n      \"claims\": {}\n    }\n  ],\n  \"clientTemplates\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"protocol\": \"\",\n      \"fullScopeAllowed\": false,\n      \"bearerOnly\": false,\n      \"consentRequired\": false,\n      \"standardFlowEnabled\": false,\n      \"implicitFlowEnabled\": false,\n      \"directAccessGrantsEnabled\": false,\n      \"serviceAccountsEnabled\": false,\n      \"publicClient\": false,\n      \"frontchannelLogout\": false,\n      \"attributes\": {},\n      \"protocolMappers\": [\n        {}\n      ]\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}}/admin/realms/:realm";

    let payload = json!({
        "id": "",
        "realm": "",
        "displayName": "",
        "displayNameHtml": "",
        "notBefore": 0,
        "defaultSignatureAlgorithm": "",
        "revokeRefreshToken": false,
        "refreshTokenMaxReuse": 0,
        "accessTokenLifespan": 0,
        "accessTokenLifespanForImplicitFlow": 0,
        "ssoSessionIdleTimeout": 0,
        "ssoSessionMaxLifespan": 0,
        "ssoSessionIdleTimeoutRememberMe": 0,
        "ssoSessionMaxLifespanRememberMe": 0,
        "offlineSessionIdleTimeout": 0,
        "offlineSessionMaxLifespanEnabled": false,
        "offlineSessionMaxLifespan": 0,
        "clientSessionIdleTimeout": 0,
        "clientSessionMaxLifespan": 0,
        "clientOfflineSessionIdleTimeout": 0,
        "clientOfflineSessionMaxLifespan": 0,
        "accessCodeLifespan": 0,
        "accessCodeLifespanUserAction": 0,
        "accessCodeLifespanLogin": 0,
        "actionTokenGeneratedByAdminLifespan": 0,
        "actionTokenGeneratedByUserLifespan": 0,
        "oauth2DeviceCodeLifespan": 0,
        "oauth2DevicePollingInterval": 0,
        "enabled": false,
        "sslRequired": "",
        "passwordCredentialGrantAllowed": false,
        "registrationAllowed": false,
        "registrationEmailAsUsername": false,
        "rememberMe": false,
        "verifyEmail": false,
        "loginWithEmailAllowed": false,
        "duplicateEmailsAllowed": false,
        "resetPasswordAllowed": false,
        "editUsernameAllowed": false,
        "userCacheEnabled": false,
        "realmCacheEnabled": false,
        "bruteForceProtected": false,
        "permanentLockout": false,
        "maxTemporaryLockouts": 0,
        "bruteForceStrategy": "",
        "maxFailureWaitSeconds": 0,
        "minimumQuickLoginWaitSeconds": 0,
        "waitIncrementSeconds": 0,
        "quickLoginCheckMilliSeconds": 0,
        "maxDeltaTimeSeconds": 0,
        "failureFactor": 0,
        "privateKey": "",
        "publicKey": "",
        "certificate": "",
        "codeSecret": "",
        "roles": json!({
            "realm": (
                json!({
                    "id": "",
                    "name": "",
                    "description": "",
                    "scopeParamRequired": false,
                    "composite": false,
                    "composites": json!({
                        "realm": (),
                        "client": json!({}),
                        "application": json!({})
                    }),
                    "clientRole": false,
                    "containerId": "",
                    "attributes": json!({})
                })
            ),
            "client": json!({}),
            "application": json!({})
        }),
        "groups": (
            json!({
                "id": "",
                "name": "",
                "description": "",
                "path": "",
                "parentId": "",
                "subGroupCount": 0,
                "subGroups": (),
                "attributes": json!({}),
                "realmRoles": (),
                "clientRoles": json!({}),
                "access": json!({})
            })
        ),
        "defaultRoles": (),
        "defaultRole": json!({}),
        "adminPermissionsClient": json!({
            "id": "",
            "clientId": "",
            "name": "",
            "description": "",
            "type": "",
            "rootUrl": "",
            "adminUrl": "",
            "baseUrl": "",
            "surrogateAuthRequired": false,
            "enabled": false,
            "alwaysDisplayInConsole": false,
            "clientAuthenticatorType": "",
            "secret": "",
            "registrationAccessToken": "",
            "defaultRoles": (),
            "redirectUris": (),
            "webOrigins": (),
            "notBefore": 0,
            "bearerOnly": false,
            "consentRequired": false,
            "standardFlowEnabled": false,
            "implicitFlowEnabled": false,
            "directAccessGrantsEnabled": false,
            "serviceAccountsEnabled": false,
            "authorizationServicesEnabled": false,
            "directGrantsOnly": false,
            "publicClient": false,
            "frontchannelLogout": false,
            "protocol": "",
            "attributes": json!({}),
            "authenticationFlowBindingOverrides": json!({}),
            "fullScopeAllowed": false,
            "nodeReRegistrationTimeout": 0,
            "registeredNodes": json!({}),
            "protocolMappers": (
                json!({
                    "id": "",
                    "name": "",
                    "protocol": "",
                    "protocolMapper": "",
                    "consentRequired": false,
                    "consentText": "",
                    "config": json!({})
                })
            ),
            "clientTemplate": "",
            "useTemplateConfig": false,
            "useTemplateScope": false,
            "useTemplateMappers": false,
            "defaultClientScopes": (),
            "optionalClientScopes": (),
            "authorizationSettings": json!({
                "id": "",
                "clientId": "",
                "name": "",
                "allowRemoteResourceManagement": false,
                "policyEnforcementMode": "",
                "resources": (
                    json!({
                        "_id": "",
                        "name": "",
                        "uris": (),
                        "type": "",
                        "scopes": (
                            json!({
                                "id": "",
                                "name": "",
                                "iconUri": "",
                                "policies": (
                                    json!({
                                        "id": "",
                                        "name": "",
                                        "description": "",
                                        "type": "",
                                        "policies": (),
                                        "resources": (),
                                        "scopes": (),
                                        "logic": "",
                                        "decisionStrategy": "",
                                        "owner": "",
                                        "resourceType": "",
                                        "resourcesData": (),
                                        "scopesData": (),
                                        "config": json!({})
                                    })
                                ),
                                "resources": (),
                                "displayName": ""
                            })
                        ),
                        "icon_uri": "",
                        "owner": json!({}),
                        "ownerManagedAccess": false,
                        "displayName": "",
                        "attributes": json!({}),
                        "uri": "",
                        "scopesUma": (json!({}))
                    })
                ),
                "policies": (json!({})),
                "scopes": (json!({})),
                "decisionStrategy": "",
                "authorizationSchema": json!({"resourceTypes": json!({})})
            }),
            "access": json!({}),
            "origin": ""
        }),
        "defaultGroups": (),
        "requiredCredentials": (),
        "passwordPolicy": "",
        "otpPolicyType": "",
        "otpPolicyAlgorithm": "",
        "otpPolicyInitialCounter": 0,
        "otpPolicyDigits": 0,
        "otpPolicyLookAheadWindow": 0,
        "otpPolicyPeriod": 0,
        "otpPolicyCodeReusable": false,
        "otpSupportedApplications": (),
        "localizationTexts": json!({}),
        "webAuthnPolicyRpEntityName": "",
        "webAuthnPolicySignatureAlgorithms": (),
        "webAuthnPolicyRpId": "",
        "webAuthnPolicyAttestationConveyancePreference": "",
        "webAuthnPolicyAuthenticatorAttachment": "",
        "webAuthnPolicyRequireResidentKey": "",
        "webAuthnPolicyUserVerificationRequirement": "",
        "webAuthnPolicyCreateTimeout": 0,
        "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
        "webAuthnPolicyAcceptableAaguids": (),
        "webAuthnPolicyExtraOrigins": (),
        "webAuthnPolicyPasswordlessRpEntityName": "",
        "webAuthnPolicyPasswordlessSignatureAlgorithms": (),
        "webAuthnPolicyPasswordlessRpId": "",
        "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
        "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
        "webAuthnPolicyPasswordlessRequireResidentKey": "",
        "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
        "webAuthnPolicyPasswordlessCreateTimeout": 0,
        "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
        "webAuthnPolicyPasswordlessAcceptableAaguids": (),
        "webAuthnPolicyPasswordlessExtraOrigins": (),
        "webAuthnPolicyPasswordlessPasskeysEnabled": false,
        "clientProfiles": json!({
            "profiles": (
                json!({
                    "name": "",
                    "description": "",
                    "executors": (
                        json!({
                            "executor": "",
                            "configuration": json!({})
                        })
                    )
                })
            ),
            "globalProfiles": (json!({}))
        }),
        "clientPolicies": json!({
            "policies": (
                json!({
                    "name": "",
                    "description": "",
                    "enabled": false,
                    "conditions": (
                        json!({
                            "condition": "",
                            "configuration": json!({})
                        })
                    ),
                    "profiles": ()
                })
            ),
            "globalPolicies": (json!({}))
        }),
        "users": (
            json!({
                "id": "",
                "username": "",
                "firstName": "",
                "lastName": "",
                "email": "",
                "emailVerified": false,
                "attributes": json!({}),
                "userProfileMetadata": json!({
                    "attributes": (
                        json!({
                            "name": "",
                            "displayName": "",
                            "required": false,
                            "readOnly": false,
                            "annotations": json!({}),
                            "validators": json!({}),
                            "group": "",
                            "multivalued": false,
                            "defaultValue": ""
                        })
                    ),
                    "groups": (
                        json!({
                            "name": "",
                            "displayHeader": "",
                            "displayDescription": "",
                            "annotations": json!({})
                        })
                    )
                }),
                "enabled": false,
                "self": "",
                "origin": "",
                "createdTimestamp": 0,
                "totp": false,
                "federationLink": "",
                "serviceAccountClientId": "",
                "credentials": (
                    json!({
                        "id": "",
                        "type": "",
                        "userLabel": "",
                        "createdDate": 0,
                        "secretData": "",
                        "credentialData": "",
                        "priority": 0,
                        "value": "",
                        "temporary": false,
                        "device": "",
                        "hashedSaltedValue": "",
                        "salt": "",
                        "hashIterations": 0,
                        "counter": 0,
                        "algorithm": "",
                        "digits": 0,
                        "period": 0,
                        "config": json!({}),
                        "federationLink": ""
                    })
                ),
                "disableableCredentialTypes": (),
                "requiredActions": (),
                "federatedIdentities": (
                    json!({
                        "identityProvider": "",
                        "userId": "",
                        "userName": ""
                    })
                ),
                "realmRoles": (),
                "clientRoles": json!({}),
                "clientConsents": (
                    json!({
                        "clientId": "",
                        "grantedClientScopes": (),
                        "createdDate": 0,
                        "lastUpdatedDate": 0,
                        "grantedRealmRoles": ()
                    })
                ),
                "notBefore": 0,
                "applicationRoles": json!({}),
                "socialLinks": (
                    json!({
                        "socialProvider": "",
                        "socialUserId": "",
                        "socialUsername": ""
                    })
                ),
                "groups": (),
                "access": json!({})
            })
        ),
        "federatedUsers": (json!({})),
        "scopeMappings": (
            json!({
                "self": "",
                "client": "",
                "clientTemplate": "",
                "clientScope": "",
                "roles": ()
            })
        ),
        "clientScopeMappings": json!({}),
        "clients": (json!({})),
        "clientScopes": (
            json!({
                "id": "",
                "name": "",
                "description": "",
                "protocol": "",
                "attributes": json!({}),
                "protocolMappers": (json!({}))
            })
        ),
        "defaultDefaultClientScopes": (),
        "defaultOptionalClientScopes": (),
        "browserSecurityHeaders": json!({}),
        "smtpServer": json!({}),
        "userFederationProviders": (
            json!({
                "id": "",
                "displayName": "",
                "providerName": "",
                "config": json!({}),
                "priority": 0,
                "fullSyncPeriod": 0,
                "changedSyncPeriod": 0,
                "lastSync": 0
            })
        ),
        "userFederationMappers": (
            json!({
                "id": "",
                "name": "",
                "federationProviderDisplayName": "",
                "federationMapperType": "",
                "config": json!({})
            })
        ),
        "loginTheme": "",
        "accountTheme": "",
        "adminTheme": "",
        "emailTheme": "",
        "eventsEnabled": false,
        "eventsExpiration": 0,
        "eventsListeners": (),
        "enabledEventTypes": (),
        "adminEventsEnabled": false,
        "adminEventsDetailsEnabled": false,
        "identityProviders": (
            json!({
                "alias": "",
                "displayName": "",
                "internalId": "",
                "providerId": "",
                "enabled": false,
                "updateProfileFirstLoginMode": "",
                "trustEmail": false,
                "storeToken": false,
                "addReadTokenRoleOnCreate": false,
                "authenticateByDefault": false,
                "linkOnly": false,
                "hideOnLogin": false,
                "firstBrokerLoginFlowAlias": "",
                "postBrokerLoginFlowAlias": "",
                "organizationId": "",
                "config": json!({}),
                "updateProfileFirstLogin": false
            })
        ),
        "identityProviderMappers": (
            json!({
                "id": "",
                "name": "",
                "identityProviderAlias": "",
                "identityProviderMapper": "",
                "config": json!({})
            })
        ),
        "protocolMappers": (json!({})),
        "components": json!({}),
        "internationalizationEnabled": false,
        "supportedLocales": (),
        "defaultLocale": "",
        "authenticationFlows": (
            json!({
                "id": "",
                "alias": "",
                "description": "",
                "providerId": "",
                "topLevel": false,
                "builtIn": false,
                "authenticationExecutions": (
                    json!({
                        "authenticatorConfig": "",
                        "authenticator": "",
                        "authenticatorFlow": false,
                        "requirement": "",
                        "priority": 0,
                        "autheticatorFlow": false,
                        "flowAlias": "",
                        "userSetupAllowed": false
                    })
                )
            })
        ),
        "authenticatorConfig": (
            json!({
                "id": "",
                "alias": "",
                "config": json!({})
            })
        ),
        "requiredActions": (
            json!({
                "alias": "",
                "name": "",
                "providerId": "",
                "enabled": false,
                "defaultAction": false,
                "priority": 0,
                "config": json!({})
            })
        ),
        "browserFlow": "",
        "registrationFlow": "",
        "directGrantFlow": "",
        "resetCredentialsFlow": "",
        "clientAuthenticationFlow": "",
        "dockerAuthenticationFlow": "",
        "firstBrokerLoginFlow": "",
        "attributes": json!({}),
        "keycloakVersion": "",
        "userManagedAccessAllowed": false,
        "organizationsEnabled": false,
        "organizations": (
            json!({
                "id": "",
                "name": "",
                "alias": "",
                "enabled": false,
                "description": "",
                "redirectUrl": "",
                "attributes": json!({}),
                "domains": (
                    json!({
                        "name": "",
                        "verified": false
                    })
                ),
                "members": (
                    json!({
                        "id": "",
                        "username": "",
                        "firstName": "",
                        "lastName": "",
                        "email": "",
                        "emailVerified": false,
                        "attributes": json!({}),
                        "userProfileMetadata": json!({}),
                        "enabled": false,
                        "self": "",
                        "origin": "",
                        "createdTimestamp": 0,
                        "totp": false,
                        "federationLink": "",
                        "serviceAccountClientId": "",
                        "credentials": (json!({})),
                        "disableableCredentialTypes": (),
                        "requiredActions": (),
                        "federatedIdentities": (json!({})),
                        "realmRoles": (),
                        "clientRoles": json!({}),
                        "clientConsents": (json!({})),
                        "notBefore": 0,
                        "applicationRoles": json!({}),
                        "socialLinks": (json!({})),
                        "groups": (),
                        "access": json!({}),
                        "membershipType": ""
                    })
                ),
                "identityProviders": (json!({}))
            })
        ),
        "verifiableCredentialsEnabled": false,
        "adminPermissionsEnabled": false,
        "social": false,
        "updateProfileOnInitialSocialLogin": false,
        "socialProviders": json!({}),
        "applicationScopeMappings": json!({}),
        "applications": (
            json!({
                "id": "",
                "clientId": "",
                "description": "",
                "type": "",
                "rootUrl": "",
                "adminUrl": "",
                "baseUrl": "",
                "surrogateAuthRequired": false,
                "enabled": false,
                "alwaysDisplayInConsole": false,
                "clientAuthenticatorType": "",
                "secret": "",
                "registrationAccessToken": "",
                "defaultRoles": (),
                "redirectUris": (),
                "webOrigins": (),
                "notBefore": 0,
                "bearerOnly": false,
                "consentRequired": false,
                "standardFlowEnabled": false,
                "implicitFlowEnabled": false,
                "directAccessGrantsEnabled": false,
                "serviceAccountsEnabled": false,
                "authorizationServicesEnabled": false,
                "directGrantsOnly": false,
                "publicClient": false,
                "frontchannelLogout": false,
                "protocol": "",
                "attributes": json!({}),
                "authenticationFlowBindingOverrides": json!({}),
                "fullScopeAllowed": false,
                "nodeReRegistrationTimeout": 0,
                "registeredNodes": json!({}),
                "protocolMappers": (json!({})),
                "clientTemplate": "",
                "useTemplateConfig": false,
                "useTemplateScope": false,
                "useTemplateMappers": false,
                "defaultClientScopes": (),
                "optionalClientScopes": (),
                "authorizationSettings": json!({}),
                "access": json!({}),
                "origin": "",
                "name": "",
                "claims": json!({})
            })
        ),
        "oauthClients": (
            json!({
                "id": "",
                "clientId": "",
                "description": "",
                "type": "",
                "rootUrl": "",
                "adminUrl": "",
                "baseUrl": "",
                "surrogateAuthRequired": false,
                "enabled": false,
                "alwaysDisplayInConsole": false,
                "clientAuthenticatorType": "",
                "secret": "",
                "registrationAccessToken": "",
                "defaultRoles": (),
                "redirectUris": (),
                "webOrigins": (),
                "notBefore": 0,
                "bearerOnly": false,
                "consentRequired": false,
                "standardFlowEnabled": false,
                "implicitFlowEnabled": false,
                "directAccessGrantsEnabled": false,
                "serviceAccountsEnabled": false,
                "authorizationServicesEnabled": false,
                "directGrantsOnly": false,
                "publicClient": false,
                "frontchannelLogout": false,
                "protocol": "",
                "attributes": json!({}),
                "authenticationFlowBindingOverrides": json!({}),
                "fullScopeAllowed": false,
                "nodeReRegistrationTimeout": 0,
                "registeredNodes": json!({}),
                "protocolMappers": (json!({})),
                "clientTemplate": "",
                "useTemplateConfig": false,
                "useTemplateScope": false,
                "useTemplateMappers": false,
                "defaultClientScopes": (),
                "optionalClientScopes": (),
                "authorizationSettings": json!({}),
                "access": json!({}),
                "origin": "",
                "name": "",
                "claims": json!({})
            })
        ),
        "clientTemplates": (
            json!({
                "id": "",
                "name": "",
                "description": "",
                "protocol": "",
                "fullScopeAllowed": false,
                "bearerOnly": false,
                "consentRequired": false,
                "standardFlowEnabled": false,
                "implicitFlowEnabled": false,
                "directAccessGrantsEnabled": false,
                "serviceAccountsEnabled": false,
                "publicClient": false,
                "frontchannelLogout": false,
                "attributes": json!({}),
                "protocolMappers": (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}}/admin/realms/:realm \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "realm": "",
  "displayName": "",
  "displayNameHtml": "",
  "notBefore": 0,
  "defaultSignatureAlgorithm": "",
  "revokeRefreshToken": false,
  "refreshTokenMaxReuse": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "ssoSessionIdleTimeout": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "offlineSessionMaxLifespan": 0,
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clientOfflineSessionIdleTimeout": 0,
  "clientOfflineSessionMaxLifespan": 0,
  "accessCodeLifespan": 0,
  "accessCodeLifespanUserAction": 0,
  "accessCodeLifespanLogin": 0,
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "oauth2DeviceCodeLifespan": 0,
  "oauth2DevicePollingInterval": 0,
  "enabled": false,
  "sslRequired": "",
  "passwordCredentialGrantAllowed": false,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "rememberMe": false,
  "verifyEmail": false,
  "loginWithEmailAllowed": false,
  "duplicateEmailsAllowed": false,
  "resetPasswordAllowed": false,
  "editUsernameAllowed": false,
  "userCacheEnabled": false,
  "realmCacheEnabled": false,
  "bruteForceProtected": false,
  "permanentLockout": false,
  "maxTemporaryLockouts": 0,
  "bruteForceStrategy": "",
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "waitIncrementSeconds": 0,
  "quickLoginCheckMilliSeconds": 0,
  "maxDeltaTimeSeconds": 0,
  "failureFactor": 0,
  "privateKey": "",
  "publicKey": "",
  "certificate": "",
  "codeSecret": "",
  "roles": {
    "realm": [
      {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": {
          "realm": [],
          "client": {},
          "application": {}
        },
        "clientRole": false,
        "containerId": "",
        "attributes": {}
      }
    ],
    "client": {},
    "application": {}
  },
  "groups": [
    {
      "id": "",
      "name": "",
      "description": "",
      "path": "",
      "parentId": "",
      "subGroupCount": 0,
      "subGroups": [],
      "attributes": {},
      "realmRoles": [],
      "clientRoles": {},
      "access": {}
    }
  ],
  "defaultRoles": [],
  "defaultRole": {},
  "adminPermissionsClient": {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": false,
    "enabled": false,
    "alwaysDisplayInConsole": false,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": false,
    "consentRequired": false,
    "standardFlowEnabled": false,
    "implicitFlowEnabled": false,
    "directAccessGrantsEnabled": false,
    "serviceAccountsEnabled": false,
    "authorizationServicesEnabled": false,
    "directGrantsOnly": false,
    "publicClient": false,
    "frontchannelLogout": false,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": false,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
      {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": {}
      }
    ],
    "clientTemplate": "",
    "useTemplateConfig": false,
    "useTemplateScope": false,
    "useTemplateMappers": false,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
      "id": "",
      "clientId": "",
      "name": "",
      "allowRemoteResourceManagement": false,
      "policyEnforcementMode": "",
      "resources": [
        {
          "_id": "",
          "name": "",
          "uris": [],
          "type": "",
          "scopes": [
            {
              "id": "",
              "name": "",
              "iconUri": "",
              "policies": [
                {
                  "id": "",
                  "name": "",
                  "description": "",
                  "type": "",
                  "policies": [],
                  "resources": [],
                  "scopes": [],
                  "logic": "",
                  "decisionStrategy": "",
                  "owner": "",
                  "resourceType": "",
                  "resourcesData": [],
                  "scopesData": [],
                  "config": {}
                }
              ],
              "resources": [],
              "displayName": ""
            }
          ],
          "icon_uri": "",
          "owner": {},
          "ownerManagedAccess": false,
          "displayName": "",
          "attributes": {},
          "uri": "",
          "scopesUma": [
            {}
          ]
        }
      ],
      "policies": [
        {}
      ],
      "scopes": [
        {}
      ],
      "decisionStrategy": "",
      "authorizationSchema": {
        "resourceTypes": {}
      }
    },
    "access": {},
    "origin": ""
  },
  "defaultGroups": [],
  "requiredCredentials": [],
  "passwordPolicy": "",
  "otpPolicyType": "",
  "otpPolicyAlgorithm": "",
  "otpPolicyInitialCounter": 0,
  "otpPolicyDigits": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyCodeReusable": false,
  "otpSupportedApplications": [],
  "localizationTexts": {},
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyRpId": "",
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyUserVerificationRequirement": "",
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyExtraOrigins": [],
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessExtraOrigins": [],
  "webAuthnPolicyPasswordlessPasskeysEnabled": false,
  "clientProfiles": {
    "profiles": [
      {
        "name": "",
        "description": "",
        "executors": [
          {
            "executor": "",
            "configuration": {}
          }
        ]
      }
    ],
    "globalProfiles": [
      {}
    ]
  },
  "clientPolicies": {
    "policies": [
      {
        "name": "",
        "description": "",
        "enabled": false,
        "conditions": [
          {
            "condition": "",
            "configuration": {}
          }
        ],
        "profiles": []
      }
    ],
    "globalPolicies": [
      {}
    ]
  },
  "users": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {}
    }
  ],
  "federatedUsers": [
    {}
  ],
  "scopeMappings": [
    {
      "self": "",
      "client": "",
      "clientTemplate": "",
      "clientScope": "",
      "roles": []
    }
  ],
  "clientScopeMappings": {},
  "clients": [
    {}
  ],
  "clientScopes": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ],
  "defaultDefaultClientScopes": [],
  "defaultOptionalClientScopes": [],
  "browserSecurityHeaders": {},
  "smtpServer": {},
  "userFederationProviders": [
    {
      "id": "",
      "displayName": "",
      "providerName": "",
      "config": {},
      "priority": 0,
      "fullSyncPeriod": 0,
      "changedSyncPeriod": 0,
      "lastSync": 0
    }
  ],
  "userFederationMappers": [
    {
      "id": "",
      "name": "",
      "federationProviderDisplayName": "",
      "federationMapperType": "",
      "config": {}
    }
  ],
  "loginTheme": "",
  "accountTheme": "",
  "adminTheme": "",
  "emailTheme": "",
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false,
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ],
  "identityProviderMappers": [
    {
      "id": "",
      "name": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "config": {}
    }
  ],
  "protocolMappers": [
    {}
  ],
  "components": {},
  "internationalizationEnabled": false,
  "supportedLocales": [],
  "defaultLocale": "",
  "authenticationFlows": [
    {
      "id": "",
      "alias": "",
      "description": "",
      "providerId": "",
      "topLevel": false,
      "builtIn": false,
      "authenticationExecutions": [
        {
          "authenticatorConfig": "",
          "authenticator": "",
          "authenticatorFlow": false,
          "requirement": "",
          "priority": 0,
          "autheticatorFlow": false,
          "flowAlias": "",
          "userSetupAllowed": false
        }
      ]
    }
  ],
  "authenticatorConfig": [
    {
      "id": "",
      "alias": "",
      "config": {}
    }
  ],
  "requiredActions": [
    {
      "alias": "",
      "name": "",
      "providerId": "",
      "enabled": false,
      "defaultAction": false,
      "priority": 0,
      "config": {}
    }
  ],
  "browserFlow": "",
  "registrationFlow": "",
  "directGrantFlow": "",
  "resetCredentialsFlow": "",
  "clientAuthenticationFlow": "",
  "dockerAuthenticationFlow": "",
  "firstBrokerLoginFlow": "",
  "attributes": {},
  "keycloakVersion": "",
  "userManagedAccessAllowed": false,
  "organizationsEnabled": false,
  "organizations": [
    {
      "id": "",
      "name": "",
      "alias": "",
      "enabled": false,
      "description": "",
      "redirectUrl": "",
      "attributes": {},
      "domains": [
        {
          "name": "",
          "verified": false
        }
      ],
      "members": [
        {
          "id": "",
          "username": "",
          "firstName": "",
          "lastName": "",
          "email": "",
          "emailVerified": false,
          "attributes": {},
          "userProfileMetadata": {},
          "enabled": false,
          "self": "",
          "origin": "",
          "createdTimestamp": 0,
          "totp": false,
          "federationLink": "",
          "serviceAccountClientId": "",
          "credentials": [
            {}
          ],
          "disableableCredentialTypes": [],
          "requiredActions": [],
          "federatedIdentities": [
            {}
          ],
          "realmRoles": [],
          "clientRoles": {},
          "clientConsents": [
            {}
          ],
          "notBefore": 0,
          "applicationRoles": {},
          "socialLinks": [
            {}
          ],
          "groups": [],
          "access": {},
          "membershipType": ""
        }
      ],
      "identityProviders": [
        {}
      ]
    }
  ],
  "verifiableCredentialsEnabled": false,
  "adminPermissionsEnabled": false,
  "social": false,
  "updateProfileOnInitialSocialLogin": false,
  "socialProviders": {},
  "applicationScopeMappings": {},
  "applications": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "oauthClients": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "clientTemplates": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "fullScopeAllowed": false,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ]
}'
echo '{
  "id": "",
  "realm": "",
  "displayName": "",
  "displayNameHtml": "",
  "notBefore": 0,
  "defaultSignatureAlgorithm": "",
  "revokeRefreshToken": false,
  "refreshTokenMaxReuse": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "ssoSessionIdleTimeout": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "offlineSessionMaxLifespan": 0,
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clientOfflineSessionIdleTimeout": 0,
  "clientOfflineSessionMaxLifespan": 0,
  "accessCodeLifespan": 0,
  "accessCodeLifespanUserAction": 0,
  "accessCodeLifespanLogin": 0,
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "oauth2DeviceCodeLifespan": 0,
  "oauth2DevicePollingInterval": 0,
  "enabled": false,
  "sslRequired": "",
  "passwordCredentialGrantAllowed": false,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "rememberMe": false,
  "verifyEmail": false,
  "loginWithEmailAllowed": false,
  "duplicateEmailsAllowed": false,
  "resetPasswordAllowed": false,
  "editUsernameAllowed": false,
  "userCacheEnabled": false,
  "realmCacheEnabled": false,
  "bruteForceProtected": false,
  "permanentLockout": false,
  "maxTemporaryLockouts": 0,
  "bruteForceStrategy": "",
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "waitIncrementSeconds": 0,
  "quickLoginCheckMilliSeconds": 0,
  "maxDeltaTimeSeconds": 0,
  "failureFactor": 0,
  "privateKey": "",
  "publicKey": "",
  "certificate": "",
  "codeSecret": "",
  "roles": {
    "realm": [
      {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": {
          "realm": [],
          "client": {},
          "application": {}
        },
        "clientRole": false,
        "containerId": "",
        "attributes": {}
      }
    ],
    "client": {},
    "application": {}
  },
  "groups": [
    {
      "id": "",
      "name": "",
      "description": "",
      "path": "",
      "parentId": "",
      "subGroupCount": 0,
      "subGroups": [],
      "attributes": {},
      "realmRoles": [],
      "clientRoles": {},
      "access": {}
    }
  ],
  "defaultRoles": [],
  "defaultRole": {},
  "adminPermissionsClient": {
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": false,
    "enabled": false,
    "alwaysDisplayInConsole": false,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": false,
    "consentRequired": false,
    "standardFlowEnabled": false,
    "implicitFlowEnabled": false,
    "directAccessGrantsEnabled": false,
    "serviceAccountsEnabled": false,
    "authorizationServicesEnabled": false,
    "directGrantsOnly": false,
    "publicClient": false,
    "frontchannelLogout": false,
    "protocol": "",
    "attributes": {},
    "authenticationFlowBindingOverrides": {},
    "fullScopeAllowed": false,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": {},
    "protocolMappers": [
      {
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": {}
      }
    ],
    "clientTemplate": "",
    "useTemplateConfig": false,
    "useTemplateScope": false,
    "useTemplateMappers": false,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": {
      "id": "",
      "clientId": "",
      "name": "",
      "allowRemoteResourceManagement": false,
      "policyEnforcementMode": "",
      "resources": [
        {
          "_id": "",
          "name": "",
          "uris": [],
          "type": "",
          "scopes": [
            {
              "id": "",
              "name": "",
              "iconUri": "",
              "policies": [
                {
                  "id": "",
                  "name": "",
                  "description": "",
                  "type": "",
                  "policies": [],
                  "resources": [],
                  "scopes": [],
                  "logic": "",
                  "decisionStrategy": "",
                  "owner": "",
                  "resourceType": "",
                  "resourcesData": [],
                  "scopesData": [],
                  "config": {}
                }
              ],
              "resources": [],
              "displayName": ""
            }
          ],
          "icon_uri": "",
          "owner": {},
          "ownerManagedAccess": false,
          "displayName": "",
          "attributes": {},
          "uri": "",
          "scopesUma": [
            {}
          ]
        }
      ],
      "policies": [
        {}
      ],
      "scopes": [
        {}
      ],
      "decisionStrategy": "",
      "authorizationSchema": {
        "resourceTypes": {}
      }
    },
    "access": {},
    "origin": ""
  },
  "defaultGroups": [],
  "requiredCredentials": [],
  "passwordPolicy": "",
  "otpPolicyType": "",
  "otpPolicyAlgorithm": "",
  "otpPolicyInitialCounter": 0,
  "otpPolicyDigits": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyCodeReusable": false,
  "otpSupportedApplications": [],
  "localizationTexts": {},
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyRpId": "",
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyUserVerificationRequirement": "",
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyExtraOrigins": [],
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessExtraOrigins": [],
  "webAuthnPolicyPasswordlessPasskeysEnabled": false,
  "clientProfiles": {
    "profiles": [
      {
        "name": "",
        "description": "",
        "executors": [
          {
            "executor": "",
            "configuration": {}
          }
        ]
      }
    ],
    "globalProfiles": [
      {}
    ]
  },
  "clientPolicies": {
    "policies": [
      {
        "name": "",
        "description": "",
        "enabled": false,
        "conditions": [
          {
            "condition": "",
            "configuration": {}
          }
        ],
        "profiles": []
      }
    ],
    "globalPolicies": [
      {}
    ]
  },
  "users": [
    {
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": {},
      "userProfileMetadata": {
        "attributes": [
          {
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": {},
            "validators": {},
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          }
        ],
        "groups": [
          {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
          }
        ]
      },
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        {
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": {},
          "federationLink": ""
        }
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        {
          "identityProvider": "",
          "userId": "",
          "userName": ""
        }
      ],
      "realmRoles": [],
      "clientRoles": {},
      "clientConsents": [
        {
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        }
      ],
      "notBefore": 0,
      "applicationRoles": {},
      "socialLinks": [
        {
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        }
      ],
      "groups": [],
      "access": {}
    }
  ],
  "federatedUsers": [
    {}
  ],
  "scopeMappings": [
    {
      "self": "",
      "client": "",
      "clientTemplate": "",
      "clientScope": "",
      "roles": []
    }
  ],
  "clientScopeMappings": {},
  "clients": [
    {}
  ],
  "clientScopes": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ],
  "defaultDefaultClientScopes": [],
  "defaultOptionalClientScopes": [],
  "browserSecurityHeaders": {},
  "smtpServer": {},
  "userFederationProviders": [
    {
      "id": "",
      "displayName": "",
      "providerName": "",
      "config": {},
      "priority": 0,
      "fullSyncPeriod": 0,
      "changedSyncPeriod": 0,
      "lastSync": 0
    }
  ],
  "userFederationMappers": [
    {
      "id": "",
      "name": "",
      "federationProviderDisplayName": "",
      "federationMapperType": "",
      "config": {}
    }
  ],
  "loginTheme": "",
  "accountTheme": "",
  "adminTheme": "",
  "emailTheme": "",
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false,
  "identityProviders": [
    {
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": {},
      "updateProfileFirstLogin": false
    }
  ],
  "identityProviderMappers": [
    {
      "id": "",
      "name": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "config": {}
    }
  ],
  "protocolMappers": [
    {}
  ],
  "components": {},
  "internationalizationEnabled": false,
  "supportedLocales": [],
  "defaultLocale": "",
  "authenticationFlows": [
    {
      "id": "",
      "alias": "",
      "description": "",
      "providerId": "",
      "topLevel": false,
      "builtIn": false,
      "authenticationExecutions": [
        {
          "authenticatorConfig": "",
          "authenticator": "",
          "authenticatorFlow": false,
          "requirement": "",
          "priority": 0,
          "autheticatorFlow": false,
          "flowAlias": "",
          "userSetupAllowed": false
        }
      ]
    }
  ],
  "authenticatorConfig": [
    {
      "id": "",
      "alias": "",
      "config": {}
    }
  ],
  "requiredActions": [
    {
      "alias": "",
      "name": "",
      "providerId": "",
      "enabled": false,
      "defaultAction": false,
      "priority": 0,
      "config": {}
    }
  ],
  "browserFlow": "",
  "registrationFlow": "",
  "directGrantFlow": "",
  "resetCredentialsFlow": "",
  "clientAuthenticationFlow": "",
  "dockerAuthenticationFlow": "",
  "firstBrokerLoginFlow": "",
  "attributes": {},
  "keycloakVersion": "",
  "userManagedAccessAllowed": false,
  "organizationsEnabled": false,
  "organizations": [
    {
      "id": "",
      "name": "",
      "alias": "",
      "enabled": false,
      "description": "",
      "redirectUrl": "",
      "attributes": {},
      "domains": [
        {
          "name": "",
          "verified": false
        }
      ],
      "members": [
        {
          "id": "",
          "username": "",
          "firstName": "",
          "lastName": "",
          "email": "",
          "emailVerified": false,
          "attributes": {},
          "userProfileMetadata": {},
          "enabled": false,
          "self": "",
          "origin": "",
          "createdTimestamp": 0,
          "totp": false,
          "federationLink": "",
          "serviceAccountClientId": "",
          "credentials": [
            {}
          ],
          "disableableCredentialTypes": [],
          "requiredActions": [],
          "federatedIdentities": [
            {}
          ],
          "realmRoles": [],
          "clientRoles": {},
          "clientConsents": [
            {}
          ],
          "notBefore": 0,
          "applicationRoles": {},
          "socialLinks": [
            {}
          ],
          "groups": [],
          "access": {},
          "membershipType": ""
        }
      ],
      "identityProviders": [
        {}
      ]
    }
  ],
  "verifiableCredentialsEnabled": false,
  "adminPermissionsEnabled": false,
  "social": false,
  "updateProfileOnInitialSocialLogin": false,
  "socialProviders": {},
  "applicationScopeMappings": {},
  "applications": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "oauthClients": [
    {
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": {},
      "authenticationFlowBindingOverrides": {},
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": {},
      "protocolMappers": [
        {}
      ],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": {},
      "access": {},
      "origin": "",
      "name": "",
      "claims": {}
    }
  ],
  "clientTemplates": [
    {
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "fullScopeAllowed": false,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "attributes": {},
      "protocolMappers": [
        {}
      ]
    }
  ]
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "realm": "",\n  "displayName": "",\n  "displayNameHtml": "",\n  "notBefore": 0,\n  "defaultSignatureAlgorithm": "",\n  "revokeRefreshToken": false,\n  "refreshTokenMaxReuse": 0,\n  "accessTokenLifespan": 0,\n  "accessTokenLifespanForImplicitFlow": 0,\n  "ssoSessionIdleTimeout": 0,\n  "ssoSessionMaxLifespan": 0,\n  "ssoSessionIdleTimeoutRememberMe": 0,\n  "ssoSessionMaxLifespanRememberMe": 0,\n  "offlineSessionIdleTimeout": 0,\n  "offlineSessionMaxLifespanEnabled": false,\n  "offlineSessionMaxLifespan": 0,\n  "clientSessionIdleTimeout": 0,\n  "clientSessionMaxLifespan": 0,\n  "clientOfflineSessionIdleTimeout": 0,\n  "clientOfflineSessionMaxLifespan": 0,\n  "accessCodeLifespan": 0,\n  "accessCodeLifespanUserAction": 0,\n  "accessCodeLifespanLogin": 0,\n  "actionTokenGeneratedByAdminLifespan": 0,\n  "actionTokenGeneratedByUserLifespan": 0,\n  "oauth2DeviceCodeLifespan": 0,\n  "oauth2DevicePollingInterval": 0,\n  "enabled": false,\n  "sslRequired": "",\n  "passwordCredentialGrantAllowed": false,\n  "registrationAllowed": false,\n  "registrationEmailAsUsername": false,\n  "rememberMe": false,\n  "verifyEmail": false,\n  "loginWithEmailAllowed": false,\n  "duplicateEmailsAllowed": false,\n  "resetPasswordAllowed": false,\n  "editUsernameAllowed": false,\n  "userCacheEnabled": false,\n  "realmCacheEnabled": false,\n  "bruteForceProtected": false,\n  "permanentLockout": false,\n  "maxTemporaryLockouts": 0,\n  "bruteForceStrategy": "",\n  "maxFailureWaitSeconds": 0,\n  "minimumQuickLoginWaitSeconds": 0,\n  "waitIncrementSeconds": 0,\n  "quickLoginCheckMilliSeconds": 0,\n  "maxDeltaTimeSeconds": 0,\n  "failureFactor": 0,\n  "privateKey": "",\n  "publicKey": "",\n  "certificate": "",\n  "codeSecret": "",\n  "roles": {\n    "realm": [\n      {\n        "id": "",\n        "name": "",\n        "description": "",\n        "scopeParamRequired": false,\n        "composite": false,\n        "composites": {\n          "realm": [],\n          "client": {},\n          "application": {}\n        },\n        "clientRole": false,\n        "containerId": "",\n        "attributes": {}\n      }\n    ],\n    "client": {},\n    "application": {}\n  },\n  "groups": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "path": "",\n      "parentId": "",\n      "subGroupCount": 0,\n      "subGroups": [],\n      "attributes": {},\n      "realmRoles": [],\n      "clientRoles": {},\n      "access": {}\n    }\n  ],\n  "defaultRoles": [],\n  "defaultRole": {},\n  "adminPermissionsClient": {\n    "id": "",\n    "clientId": "",\n    "name": "",\n    "description": "",\n    "type": "",\n    "rootUrl": "",\n    "adminUrl": "",\n    "baseUrl": "",\n    "surrogateAuthRequired": false,\n    "enabled": false,\n    "alwaysDisplayInConsole": false,\n    "clientAuthenticatorType": "",\n    "secret": "",\n    "registrationAccessToken": "",\n    "defaultRoles": [],\n    "redirectUris": [],\n    "webOrigins": [],\n    "notBefore": 0,\n    "bearerOnly": false,\n    "consentRequired": false,\n    "standardFlowEnabled": false,\n    "implicitFlowEnabled": false,\n    "directAccessGrantsEnabled": false,\n    "serviceAccountsEnabled": false,\n    "authorizationServicesEnabled": false,\n    "directGrantsOnly": false,\n    "publicClient": false,\n    "frontchannelLogout": false,\n    "protocol": "",\n    "attributes": {},\n    "authenticationFlowBindingOverrides": {},\n    "fullScopeAllowed": false,\n    "nodeReRegistrationTimeout": 0,\n    "registeredNodes": {},\n    "protocolMappers": [\n      {\n        "id": "",\n        "name": "",\n        "protocol": "",\n        "protocolMapper": "",\n        "consentRequired": false,\n        "consentText": "",\n        "config": {}\n      }\n    ],\n    "clientTemplate": "",\n    "useTemplateConfig": false,\n    "useTemplateScope": false,\n    "useTemplateMappers": false,\n    "defaultClientScopes": [],\n    "optionalClientScopes": [],\n    "authorizationSettings": {\n      "id": "",\n      "clientId": "",\n      "name": "",\n      "allowRemoteResourceManagement": false,\n      "policyEnforcementMode": "",\n      "resources": [\n        {\n          "_id": "",\n          "name": "",\n          "uris": [],\n          "type": "",\n          "scopes": [\n            {\n              "id": "",\n              "name": "",\n              "iconUri": "",\n              "policies": [\n                {\n                  "id": "",\n                  "name": "",\n                  "description": "",\n                  "type": "",\n                  "policies": [],\n                  "resources": [],\n                  "scopes": [],\n                  "logic": "",\n                  "decisionStrategy": "",\n                  "owner": "",\n                  "resourceType": "",\n                  "resourcesData": [],\n                  "scopesData": [],\n                  "config": {}\n                }\n              ],\n              "resources": [],\n              "displayName": ""\n            }\n          ],\n          "icon_uri": "",\n          "owner": {},\n          "ownerManagedAccess": false,\n          "displayName": "",\n          "attributes": {},\n          "uri": "",\n          "scopesUma": [\n            {}\n          ]\n        }\n      ],\n      "policies": [\n        {}\n      ],\n      "scopes": [\n        {}\n      ],\n      "decisionStrategy": "",\n      "authorizationSchema": {\n        "resourceTypes": {}\n      }\n    },\n    "access": {},\n    "origin": ""\n  },\n  "defaultGroups": [],\n  "requiredCredentials": [],\n  "passwordPolicy": "",\n  "otpPolicyType": "",\n  "otpPolicyAlgorithm": "",\n  "otpPolicyInitialCounter": 0,\n  "otpPolicyDigits": 0,\n  "otpPolicyLookAheadWindow": 0,\n  "otpPolicyPeriod": 0,\n  "otpPolicyCodeReusable": false,\n  "otpSupportedApplications": [],\n  "localizationTexts": {},\n  "webAuthnPolicyRpEntityName": "",\n  "webAuthnPolicySignatureAlgorithms": [],\n  "webAuthnPolicyRpId": "",\n  "webAuthnPolicyAttestationConveyancePreference": "",\n  "webAuthnPolicyAuthenticatorAttachment": "",\n  "webAuthnPolicyRequireResidentKey": "",\n  "webAuthnPolicyUserVerificationRequirement": "",\n  "webAuthnPolicyCreateTimeout": 0,\n  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyAcceptableAaguids": [],\n  "webAuthnPolicyExtraOrigins": [],\n  "webAuthnPolicyPasswordlessRpEntityName": "",\n  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],\n  "webAuthnPolicyPasswordlessRpId": "",\n  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",\n  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",\n  "webAuthnPolicyPasswordlessRequireResidentKey": "",\n  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",\n  "webAuthnPolicyPasswordlessCreateTimeout": 0,\n  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,\n  "webAuthnPolicyPasswordlessAcceptableAaguids": [],\n  "webAuthnPolicyPasswordlessExtraOrigins": [],\n  "webAuthnPolicyPasswordlessPasskeysEnabled": false,\n  "clientProfiles": {\n    "profiles": [\n      {\n        "name": "",\n        "description": "",\n        "executors": [\n          {\n            "executor": "",\n            "configuration": {}\n          }\n        ]\n      }\n    ],\n    "globalProfiles": [\n      {}\n    ]\n  },\n  "clientPolicies": {\n    "policies": [\n      {\n        "name": "",\n        "description": "",\n        "enabled": false,\n        "conditions": [\n          {\n            "condition": "",\n            "configuration": {}\n          }\n        ],\n        "profiles": []\n      }\n    ],\n    "globalPolicies": [\n      {}\n    ]\n  },\n  "users": [\n    {\n      "id": "",\n      "username": "",\n      "firstName": "",\n      "lastName": "",\n      "email": "",\n      "emailVerified": false,\n      "attributes": {},\n      "userProfileMetadata": {\n        "attributes": [\n          {\n            "name": "",\n            "displayName": "",\n            "required": false,\n            "readOnly": false,\n            "annotations": {},\n            "validators": {},\n            "group": "",\n            "multivalued": false,\n            "defaultValue": ""\n          }\n        ],\n        "groups": [\n          {\n            "name": "",\n            "displayHeader": "",\n            "displayDescription": "",\n            "annotations": {}\n          }\n        ]\n      },\n      "enabled": false,\n      "self": "",\n      "origin": "",\n      "createdTimestamp": 0,\n      "totp": false,\n      "federationLink": "",\n      "serviceAccountClientId": "",\n      "credentials": [\n        {\n          "id": "",\n          "type": "",\n          "userLabel": "",\n          "createdDate": 0,\n          "secretData": "",\n          "credentialData": "",\n          "priority": 0,\n          "value": "",\n          "temporary": false,\n          "device": "",\n          "hashedSaltedValue": "",\n          "salt": "",\n          "hashIterations": 0,\n          "counter": 0,\n          "algorithm": "",\n          "digits": 0,\n          "period": 0,\n          "config": {},\n          "federationLink": ""\n        }\n      ],\n      "disableableCredentialTypes": [],\n      "requiredActions": [],\n      "federatedIdentities": [\n        {\n          "identityProvider": "",\n          "userId": "",\n          "userName": ""\n        }\n      ],\n      "realmRoles": [],\n      "clientRoles": {},\n      "clientConsents": [\n        {\n          "clientId": "",\n          "grantedClientScopes": [],\n          "createdDate": 0,\n          "lastUpdatedDate": 0,\n          "grantedRealmRoles": []\n        }\n      ],\n      "notBefore": 0,\n      "applicationRoles": {},\n      "socialLinks": [\n        {\n          "socialProvider": "",\n          "socialUserId": "",\n          "socialUsername": ""\n        }\n      ],\n      "groups": [],\n      "access": {}\n    }\n  ],\n  "federatedUsers": [\n    {}\n  ],\n  "scopeMappings": [\n    {\n      "self": "",\n      "client": "",\n      "clientTemplate": "",\n      "clientScope": "",\n      "roles": []\n    }\n  ],\n  "clientScopeMappings": {},\n  "clients": [\n    {}\n  ],\n  "clientScopes": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "protocol": "",\n      "attributes": {},\n      "protocolMappers": [\n        {}\n      ]\n    }\n  ],\n  "defaultDefaultClientScopes": [],\n  "defaultOptionalClientScopes": [],\n  "browserSecurityHeaders": {},\n  "smtpServer": {},\n  "userFederationProviders": [\n    {\n      "id": "",\n      "displayName": "",\n      "providerName": "",\n      "config": {},\n      "priority": 0,\n      "fullSyncPeriod": 0,\n      "changedSyncPeriod": 0,\n      "lastSync": 0\n    }\n  ],\n  "userFederationMappers": [\n    {\n      "id": "",\n      "name": "",\n      "federationProviderDisplayName": "",\n      "federationMapperType": "",\n      "config": {}\n    }\n  ],\n  "loginTheme": "",\n  "accountTheme": "",\n  "adminTheme": "",\n  "emailTheme": "",\n  "eventsEnabled": false,\n  "eventsExpiration": 0,\n  "eventsListeners": [],\n  "enabledEventTypes": [],\n  "adminEventsEnabled": false,\n  "adminEventsDetailsEnabled": false,\n  "identityProviders": [\n    {\n      "alias": "",\n      "displayName": "",\n      "internalId": "",\n      "providerId": "",\n      "enabled": false,\n      "updateProfileFirstLoginMode": "",\n      "trustEmail": false,\n      "storeToken": false,\n      "addReadTokenRoleOnCreate": false,\n      "authenticateByDefault": false,\n      "linkOnly": false,\n      "hideOnLogin": false,\n      "firstBrokerLoginFlowAlias": "",\n      "postBrokerLoginFlowAlias": "",\n      "organizationId": "",\n      "config": {},\n      "updateProfileFirstLogin": false\n    }\n  ],\n  "identityProviderMappers": [\n    {\n      "id": "",\n      "name": "",\n      "identityProviderAlias": "",\n      "identityProviderMapper": "",\n      "config": {}\n    }\n  ],\n  "protocolMappers": [\n    {}\n  ],\n  "components": {},\n  "internationalizationEnabled": false,\n  "supportedLocales": [],\n  "defaultLocale": "",\n  "authenticationFlows": [\n    {\n      "id": "",\n      "alias": "",\n      "description": "",\n      "providerId": "",\n      "topLevel": false,\n      "builtIn": false,\n      "authenticationExecutions": [\n        {\n          "authenticatorConfig": "",\n          "authenticator": "",\n          "authenticatorFlow": false,\n          "requirement": "",\n          "priority": 0,\n          "autheticatorFlow": false,\n          "flowAlias": "",\n          "userSetupAllowed": false\n        }\n      ]\n    }\n  ],\n  "authenticatorConfig": [\n    {\n      "id": "",\n      "alias": "",\n      "config": {}\n    }\n  ],\n  "requiredActions": [\n    {\n      "alias": "",\n      "name": "",\n      "providerId": "",\n      "enabled": false,\n      "defaultAction": false,\n      "priority": 0,\n      "config": {}\n    }\n  ],\n  "browserFlow": "",\n  "registrationFlow": "",\n  "directGrantFlow": "",\n  "resetCredentialsFlow": "",\n  "clientAuthenticationFlow": "",\n  "dockerAuthenticationFlow": "",\n  "firstBrokerLoginFlow": "",\n  "attributes": {},\n  "keycloakVersion": "",\n  "userManagedAccessAllowed": false,\n  "organizationsEnabled": false,\n  "organizations": [\n    {\n      "id": "",\n      "name": "",\n      "alias": "",\n      "enabled": false,\n      "description": "",\n      "redirectUrl": "",\n      "attributes": {},\n      "domains": [\n        {\n          "name": "",\n          "verified": false\n        }\n      ],\n      "members": [\n        {\n          "id": "",\n          "username": "",\n          "firstName": "",\n          "lastName": "",\n          "email": "",\n          "emailVerified": false,\n          "attributes": {},\n          "userProfileMetadata": {},\n          "enabled": false,\n          "self": "",\n          "origin": "",\n          "createdTimestamp": 0,\n          "totp": false,\n          "federationLink": "",\n          "serviceAccountClientId": "",\n          "credentials": [\n            {}\n          ],\n          "disableableCredentialTypes": [],\n          "requiredActions": [],\n          "federatedIdentities": [\n            {}\n          ],\n          "realmRoles": [],\n          "clientRoles": {},\n          "clientConsents": [\n            {}\n          ],\n          "notBefore": 0,\n          "applicationRoles": {},\n          "socialLinks": [\n            {}\n          ],\n          "groups": [],\n          "access": {},\n          "membershipType": ""\n        }\n      ],\n      "identityProviders": [\n        {}\n      ]\n    }\n  ],\n  "verifiableCredentialsEnabled": false,\n  "adminPermissionsEnabled": false,\n  "social": false,\n  "updateProfileOnInitialSocialLogin": false,\n  "socialProviders": {},\n  "applicationScopeMappings": {},\n  "applications": [\n    {\n      "id": "",\n      "clientId": "",\n      "description": "",\n      "type": "",\n      "rootUrl": "",\n      "adminUrl": "",\n      "baseUrl": "",\n      "surrogateAuthRequired": false,\n      "enabled": false,\n      "alwaysDisplayInConsole": false,\n      "clientAuthenticatorType": "",\n      "secret": "",\n      "registrationAccessToken": "",\n      "defaultRoles": [],\n      "redirectUris": [],\n      "webOrigins": [],\n      "notBefore": 0,\n      "bearerOnly": false,\n      "consentRequired": false,\n      "standardFlowEnabled": false,\n      "implicitFlowEnabled": false,\n      "directAccessGrantsEnabled": false,\n      "serviceAccountsEnabled": false,\n      "authorizationServicesEnabled": false,\n      "directGrantsOnly": false,\n      "publicClient": false,\n      "frontchannelLogout": false,\n      "protocol": "",\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "fullScopeAllowed": false,\n      "nodeReRegistrationTimeout": 0,\n      "registeredNodes": {},\n      "protocolMappers": [\n        {}\n      ],\n      "clientTemplate": "",\n      "useTemplateConfig": false,\n      "useTemplateScope": false,\n      "useTemplateMappers": false,\n      "defaultClientScopes": [],\n      "optionalClientScopes": [],\n      "authorizationSettings": {},\n      "access": {},\n      "origin": "",\n      "name": "",\n      "claims": {}\n    }\n  ],\n  "oauthClients": [\n    {\n      "id": "",\n      "clientId": "",\n      "description": "",\n      "type": "",\n      "rootUrl": "",\n      "adminUrl": "",\n      "baseUrl": "",\n      "surrogateAuthRequired": false,\n      "enabled": false,\n      "alwaysDisplayInConsole": false,\n      "clientAuthenticatorType": "",\n      "secret": "",\n      "registrationAccessToken": "",\n      "defaultRoles": [],\n      "redirectUris": [],\n      "webOrigins": [],\n      "notBefore": 0,\n      "bearerOnly": false,\n      "consentRequired": false,\n      "standardFlowEnabled": false,\n      "implicitFlowEnabled": false,\n      "directAccessGrantsEnabled": false,\n      "serviceAccountsEnabled": false,\n      "authorizationServicesEnabled": false,\n      "directGrantsOnly": false,\n      "publicClient": false,\n      "frontchannelLogout": false,\n      "protocol": "",\n      "attributes": {},\n      "authenticationFlowBindingOverrides": {},\n      "fullScopeAllowed": false,\n      "nodeReRegistrationTimeout": 0,\n      "registeredNodes": {},\n      "protocolMappers": [\n        {}\n      ],\n      "clientTemplate": "",\n      "useTemplateConfig": false,\n      "useTemplateScope": false,\n      "useTemplateMappers": false,\n      "defaultClientScopes": [],\n      "optionalClientScopes": [],\n      "authorizationSettings": {},\n      "access": {},\n      "origin": "",\n      "name": "",\n      "claims": {}\n    }\n  ],\n  "clientTemplates": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "protocol": "",\n      "fullScopeAllowed": false,\n      "bearerOnly": false,\n      "consentRequired": false,\n      "standardFlowEnabled": false,\n      "implicitFlowEnabled": false,\n      "directAccessGrantsEnabled": false,\n      "serviceAccountsEnabled": false,\n      "publicClient": false,\n      "frontchannelLogout": false,\n      "attributes": {},\n      "protocolMappers": [\n        {}\n      ]\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "realm": "",
  "displayName": "",
  "displayNameHtml": "",
  "notBefore": 0,
  "defaultSignatureAlgorithm": "",
  "revokeRefreshToken": false,
  "refreshTokenMaxReuse": 0,
  "accessTokenLifespan": 0,
  "accessTokenLifespanForImplicitFlow": 0,
  "ssoSessionIdleTimeout": 0,
  "ssoSessionMaxLifespan": 0,
  "ssoSessionIdleTimeoutRememberMe": 0,
  "ssoSessionMaxLifespanRememberMe": 0,
  "offlineSessionIdleTimeout": 0,
  "offlineSessionMaxLifespanEnabled": false,
  "offlineSessionMaxLifespan": 0,
  "clientSessionIdleTimeout": 0,
  "clientSessionMaxLifespan": 0,
  "clientOfflineSessionIdleTimeout": 0,
  "clientOfflineSessionMaxLifespan": 0,
  "accessCodeLifespan": 0,
  "accessCodeLifespanUserAction": 0,
  "accessCodeLifespanLogin": 0,
  "actionTokenGeneratedByAdminLifespan": 0,
  "actionTokenGeneratedByUserLifespan": 0,
  "oauth2DeviceCodeLifespan": 0,
  "oauth2DevicePollingInterval": 0,
  "enabled": false,
  "sslRequired": "",
  "passwordCredentialGrantAllowed": false,
  "registrationAllowed": false,
  "registrationEmailAsUsername": false,
  "rememberMe": false,
  "verifyEmail": false,
  "loginWithEmailAllowed": false,
  "duplicateEmailsAllowed": false,
  "resetPasswordAllowed": false,
  "editUsernameAllowed": false,
  "userCacheEnabled": false,
  "realmCacheEnabled": false,
  "bruteForceProtected": false,
  "permanentLockout": false,
  "maxTemporaryLockouts": 0,
  "bruteForceStrategy": "",
  "maxFailureWaitSeconds": 0,
  "minimumQuickLoginWaitSeconds": 0,
  "waitIncrementSeconds": 0,
  "quickLoginCheckMilliSeconds": 0,
  "maxDeltaTimeSeconds": 0,
  "failureFactor": 0,
  "privateKey": "",
  "publicKey": "",
  "certificate": "",
  "codeSecret": "",
  "roles": [
    "realm": [
      [
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": [
          "realm": [],
          "client": [],
          "application": []
        ],
        "clientRole": false,
        "containerId": "",
        "attributes": []
      ]
    ],
    "client": [],
    "application": []
  ],
  "groups": [
    [
      "id": "",
      "name": "",
      "description": "",
      "path": "",
      "parentId": "",
      "subGroupCount": 0,
      "subGroups": [],
      "attributes": [],
      "realmRoles": [],
      "clientRoles": [],
      "access": []
    ]
  ],
  "defaultRoles": [],
  "defaultRole": [],
  "adminPermissionsClient": [
    "id": "",
    "clientId": "",
    "name": "",
    "description": "",
    "type": "",
    "rootUrl": "",
    "adminUrl": "",
    "baseUrl": "",
    "surrogateAuthRequired": false,
    "enabled": false,
    "alwaysDisplayInConsole": false,
    "clientAuthenticatorType": "",
    "secret": "",
    "registrationAccessToken": "",
    "defaultRoles": [],
    "redirectUris": [],
    "webOrigins": [],
    "notBefore": 0,
    "bearerOnly": false,
    "consentRequired": false,
    "standardFlowEnabled": false,
    "implicitFlowEnabled": false,
    "directAccessGrantsEnabled": false,
    "serviceAccountsEnabled": false,
    "authorizationServicesEnabled": false,
    "directGrantsOnly": false,
    "publicClient": false,
    "frontchannelLogout": false,
    "protocol": "",
    "attributes": [],
    "authenticationFlowBindingOverrides": [],
    "fullScopeAllowed": false,
    "nodeReRegistrationTimeout": 0,
    "registeredNodes": [],
    "protocolMappers": [
      [
        "id": "",
        "name": "",
        "protocol": "",
        "protocolMapper": "",
        "consentRequired": false,
        "consentText": "",
        "config": []
      ]
    ],
    "clientTemplate": "",
    "useTemplateConfig": false,
    "useTemplateScope": false,
    "useTemplateMappers": false,
    "defaultClientScopes": [],
    "optionalClientScopes": [],
    "authorizationSettings": [
      "id": "",
      "clientId": "",
      "name": "",
      "allowRemoteResourceManagement": false,
      "policyEnforcementMode": "",
      "resources": [
        [
          "_id": "",
          "name": "",
          "uris": [],
          "type": "",
          "scopes": [
            [
              "id": "",
              "name": "",
              "iconUri": "",
              "policies": [
                [
                  "id": "",
                  "name": "",
                  "description": "",
                  "type": "",
                  "policies": [],
                  "resources": [],
                  "scopes": [],
                  "logic": "",
                  "decisionStrategy": "",
                  "owner": "",
                  "resourceType": "",
                  "resourcesData": [],
                  "scopesData": [],
                  "config": []
                ]
              ],
              "resources": [],
              "displayName": ""
            ]
          ],
          "icon_uri": "",
          "owner": [],
          "ownerManagedAccess": false,
          "displayName": "",
          "attributes": [],
          "uri": "",
          "scopesUma": [[]]
        ]
      ],
      "policies": [[]],
      "scopes": [[]],
      "decisionStrategy": "",
      "authorizationSchema": ["resourceTypes": []]
    ],
    "access": [],
    "origin": ""
  ],
  "defaultGroups": [],
  "requiredCredentials": [],
  "passwordPolicy": "",
  "otpPolicyType": "",
  "otpPolicyAlgorithm": "",
  "otpPolicyInitialCounter": 0,
  "otpPolicyDigits": 0,
  "otpPolicyLookAheadWindow": 0,
  "otpPolicyPeriod": 0,
  "otpPolicyCodeReusable": false,
  "otpSupportedApplications": [],
  "localizationTexts": [],
  "webAuthnPolicyRpEntityName": "",
  "webAuthnPolicySignatureAlgorithms": [],
  "webAuthnPolicyRpId": "",
  "webAuthnPolicyAttestationConveyancePreference": "",
  "webAuthnPolicyAuthenticatorAttachment": "",
  "webAuthnPolicyRequireResidentKey": "",
  "webAuthnPolicyUserVerificationRequirement": "",
  "webAuthnPolicyCreateTimeout": 0,
  "webAuthnPolicyAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyAcceptableAaguids": [],
  "webAuthnPolicyExtraOrigins": [],
  "webAuthnPolicyPasswordlessRpEntityName": "",
  "webAuthnPolicyPasswordlessSignatureAlgorithms": [],
  "webAuthnPolicyPasswordlessRpId": "",
  "webAuthnPolicyPasswordlessAttestationConveyancePreference": "",
  "webAuthnPolicyPasswordlessAuthenticatorAttachment": "",
  "webAuthnPolicyPasswordlessRequireResidentKey": "",
  "webAuthnPolicyPasswordlessUserVerificationRequirement": "",
  "webAuthnPolicyPasswordlessCreateTimeout": 0,
  "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": false,
  "webAuthnPolicyPasswordlessAcceptableAaguids": [],
  "webAuthnPolicyPasswordlessExtraOrigins": [],
  "webAuthnPolicyPasswordlessPasskeysEnabled": false,
  "clientProfiles": [
    "profiles": [
      [
        "name": "",
        "description": "",
        "executors": [
          [
            "executor": "",
            "configuration": []
          ]
        ]
      ]
    ],
    "globalProfiles": [[]]
  ],
  "clientPolicies": [
    "policies": [
      [
        "name": "",
        "description": "",
        "enabled": false,
        "conditions": [
          [
            "condition": "",
            "configuration": []
          ]
        ],
        "profiles": []
      ]
    ],
    "globalPolicies": [[]]
  ],
  "users": [
    [
      "id": "",
      "username": "",
      "firstName": "",
      "lastName": "",
      "email": "",
      "emailVerified": false,
      "attributes": [],
      "userProfileMetadata": [
        "attributes": [
          [
            "name": "",
            "displayName": "",
            "required": false,
            "readOnly": false,
            "annotations": [],
            "validators": [],
            "group": "",
            "multivalued": false,
            "defaultValue": ""
          ]
        ],
        "groups": [
          [
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": []
          ]
        ]
      ],
      "enabled": false,
      "self": "",
      "origin": "",
      "createdTimestamp": 0,
      "totp": false,
      "federationLink": "",
      "serviceAccountClientId": "",
      "credentials": [
        [
          "id": "",
          "type": "",
          "userLabel": "",
          "createdDate": 0,
          "secretData": "",
          "credentialData": "",
          "priority": 0,
          "value": "",
          "temporary": false,
          "device": "",
          "hashedSaltedValue": "",
          "salt": "",
          "hashIterations": 0,
          "counter": 0,
          "algorithm": "",
          "digits": 0,
          "period": 0,
          "config": [],
          "federationLink": ""
        ]
      ],
      "disableableCredentialTypes": [],
      "requiredActions": [],
      "federatedIdentities": [
        [
          "identityProvider": "",
          "userId": "",
          "userName": ""
        ]
      ],
      "realmRoles": [],
      "clientRoles": [],
      "clientConsents": [
        [
          "clientId": "",
          "grantedClientScopes": [],
          "createdDate": 0,
          "lastUpdatedDate": 0,
          "grantedRealmRoles": []
        ]
      ],
      "notBefore": 0,
      "applicationRoles": [],
      "socialLinks": [
        [
          "socialProvider": "",
          "socialUserId": "",
          "socialUsername": ""
        ]
      ],
      "groups": [],
      "access": []
    ]
  ],
  "federatedUsers": [[]],
  "scopeMappings": [
    [
      "self": "",
      "client": "",
      "clientTemplate": "",
      "clientScope": "",
      "roles": []
    ]
  ],
  "clientScopeMappings": [],
  "clients": [[]],
  "clientScopes": [
    [
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "attributes": [],
      "protocolMappers": [[]]
    ]
  ],
  "defaultDefaultClientScopes": [],
  "defaultOptionalClientScopes": [],
  "browserSecurityHeaders": [],
  "smtpServer": [],
  "userFederationProviders": [
    [
      "id": "",
      "displayName": "",
      "providerName": "",
      "config": [],
      "priority": 0,
      "fullSyncPeriod": 0,
      "changedSyncPeriod": 0,
      "lastSync": 0
    ]
  ],
  "userFederationMappers": [
    [
      "id": "",
      "name": "",
      "federationProviderDisplayName": "",
      "federationMapperType": "",
      "config": []
    ]
  ],
  "loginTheme": "",
  "accountTheme": "",
  "adminTheme": "",
  "emailTheme": "",
  "eventsEnabled": false,
  "eventsExpiration": 0,
  "eventsListeners": [],
  "enabledEventTypes": [],
  "adminEventsEnabled": false,
  "adminEventsDetailsEnabled": false,
  "identityProviders": [
    [
      "alias": "",
      "displayName": "",
      "internalId": "",
      "providerId": "",
      "enabled": false,
      "updateProfileFirstLoginMode": "",
      "trustEmail": false,
      "storeToken": false,
      "addReadTokenRoleOnCreate": false,
      "authenticateByDefault": false,
      "linkOnly": false,
      "hideOnLogin": false,
      "firstBrokerLoginFlowAlias": "",
      "postBrokerLoginFlowAlias": "",
      "organizationId": "",
      "config": [],
      "updateProfileFirstLogin": false
    ]
  ],
  "identityProviderMappers": [
    [
      "id": "",
      "name": "",
      "identityProviderAlias": "",
      "identityProviderMapper": "",
      "config": []
    ]
  ],
  "protocolMappers": [[]],
  "components": [],
  "internationalizationEnabled": false,
  "supportedLocales": [],
  "defaultLocale": "",
  "authenticationFlows": [
    [
      "id": "",
      "alias": "",
      "description": "",
      "providerId": "",
      "topLevel": false,
      "builtIn": false,
      "authenticationExecutions": [
        [
          "authenticatorConfig": "",
          "authenticator": "",
          "authenticatorFlow": false,
          "requirement": "",
          "priority": 0,
          "autheticatorFlow": false,
          "flowAlias": "",
          "userSetupAllowed": false
        ]
      ]
    ]
  ],
  "authenticatorConfig": [
    [
      "id": "",
      "alias": "",
      "config": []
    ]
  ],
  "requiredActions": [
    [
      "alias": "",
      "name": "",
      "providerId": "",
      "enabled": false,
      "defaultAction": false,
      "priority": 0,
      "config": []
    ]
  ],
  "browserFlow": "",
  "registrationFlow": "",
  "directGrantFlow": "",
  "resetCredentialsFlow": "",
  "clientAuthenticationFlow": "",
  "dockerAuthenticationFlow": "",
  "firstBrokerLoginFlow": "",
  "attributes": [],
  "keycloakVersion": "",
  "userManagedAccessAllowed": false,
  "organizationsEnabled": false,
  "organizations": [
    [
      "id": "",
      "name": "",
      "alias": "",
      "enabled": false,
      "description": "",
      "redirectUrl": "",
      "attributes": [],
      "domains": [
        [
          "name": "",
          "verified": false
        ]
      ],
      "members": [
        [
          "id": "",
          "username": "",
          "firstName": "",
          "lastName": "",
          "email": "",
          "emailVerified": false,
          "attributes": [],
          "userProfileMetadata": [],
          "enabled": false,
          "self": "",
          "origin": "",
          "createdTimestamp": 0,
          "totp": false,
          "federationLink": "",
          "serviceAccountClientId": "",
          "credentials": [[]],
          "disableableCredentialTypes": [],
          "requiredActions": [],
          "federatedIdentities": [[]],
          "realmRoles": [],
          "clientRoles": [],
          "clientConsents": [[]],
          "notBefore": 0,
          "applicationRoles": [],
          "socialLinks": [[]],
          "groups": [],
          "access": [],
          "membershipType": ""
        ]
      ],
      "identityProviders": [[]]
    ]
  ],
  "verifiableCredentialsEnabled": false,
  "adminPermissionsEnabled": false,
  "social": false,
  "updateProfileOnInitialSocialLogin": false,
  "socialProviders": [],
  "applicationScopeMappings": [],
  "applications": [
    [
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": [],
      "authenticationFlowBindingOverrides": [],
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": [],
      "protocolMappers": [[]],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": [],
      "access": [],
      "origin": "",
      "name": "",
      "claims": []
    ]
  ],
  "oauthClients": [
    [
      "id": "",
      "clientId": "",
      "description": "",
      "type": "",
      "rootUrl": "",
      "adminUrl": "",
      "baseUrl": "",
      "surrogateAuthRequired": false,
      "enabled": false,
      "alwaysDisplayInConsole": false,
      "clientAuthenticatorType": "",
      "secret": "",
      "registrationAccessToken": "",
      "defaultRoles": [],
      "redirectUris": [],
      "webOrigins": [],
      "notBefore": 0,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "authorizationServicesEnabled": false,
      "directGrantsOnly": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "protocol": "",
      "attributes": [],
      "authenticationFlowBindingOverrides": [],
      "fullScopeAllowed": false,
      "nodeReRegistrationTimeout": 0,
      "registeredNodes": [],
      "protocolMappers": [[]],
      "clientTemplate": "",
      "useTemplateConfig": false,
      "useTemplateScope": false,
      "useTemplateMappers": false,
      "defaultClientScopes": [],
      "optionalClientScopes": [],
      "authorizationSettings": [],
      "access": [],
      "origin": "",
      "name": "",
      "claims": []
    ]
  ],
  "clientTemplates": [
    [
      "id": "",
      "name": "",
      "description": "",
      "protocol": "",
      "fullScopeAllowed": false,
      "bearerOnly": false,
      "consentRequired": false,
      "standardFlowEnabled": false,
      "implicitFlowEnabled": false,
      "directAccessGrantsEnabled": false,
      "serviceAccountsEnabled": false,
      "publicClient": false,
      "frontchannelLogout": false,
      "attributes": [],
      "protocolMappers": [[]]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-default-default-client-scopes--clientScopeId
{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId
QUERY PARAMS

clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-default-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/default-default-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId
http DELETE {{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-default-groups--groupId
{{baseUrl}}/admin/realms/:realm/default-groups/:groupId
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-groups/:groupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/default-groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/default-groups/:groupId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/default-groups/:groupId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-groups/:groupId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-groups/:groupId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/default-groups/:groupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId
http DELETE {{baseUrl}}/admin/realms/:realm/default-groups/:groupId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-groups/:groupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-default-optional-client-scopes--clientScopeId
{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId
QUERY PARAMS

clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-optional-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/default-optional-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId
http DELETE {{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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()
DELETE delete -admin-realms--realm-localization--locale--key
{{baseUrl}}/admin/realms/:realm/localization/:locale/:key
QUERY PARAMS

key
locale
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

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}}/admin/realms/:realm/localization/:locale/:key"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

	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/admin/realms/:realm/localization/:locale/:key HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"))
    .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}}/admin/realms/:realm/localization/:locale/:key")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .asString();
const 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}}/admin/realms/:realm/localization/:locale/:key');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key';
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}}/admin/realms/:realm/localization/:locale/:key',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/localization/:locale/:key',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/localization/:locale/:key'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');

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}}/admin/realms/:realm/localization/:locale/:key'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key';
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}}/admin/realms/:realm/localization/:locale/:key"]
                                                       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}}/admin/realms/:realm/localization/:locale/:key" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key",
  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}}/admin/realms/:realm/localization/:locale/:key');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/localization/:locale/:key")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")

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/admin/realms/:realm/localization/:locale/:key') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key";

    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}}/admin/realms/:realm/localization/:locale/:key
http DELETE {{baseUrl}}/admin/realms/:realm/localization/:locale/:key
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/localization/:locale/:key
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")! 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 -admin-realms--realm-localization--locale
{{baseUrl}}/admin/realms/:realm/localization/:locale
QUERY PARAMS

locale
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/localization/:locale");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/localization/:locale")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale"

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}}/admin/realms/:realm/localization/:locale"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/localization/:locale");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/localization/:locale"

	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/admin/realms/:realm/localization/:locale HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/localization/:locale")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/localization/:locale"))
    .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}}/admin/realms/:realm/localization/:locale")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/localization/:locale")
  .asString();
const 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}}/admin/realms/:realm/localization/:locale');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/localization/:locale'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale';
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}}/admin/realms/:realm/localization/:locale',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/localization/:locale")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/localization/:locale',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/localization/:locale'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/admin/realms/:realm/localization/:locale');

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}}/admin/realms/:realm/localization/:locale'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale';
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}}/admin/realms/:realm/localization/:locale"]
                                                       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}}/admin/realms/:realm/localization/:locale" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/localization/:locale",
  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}}/admin/realms/:realm/localization/:locale');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/localization/:locale")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/localization/:locale"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/localization/:locale")

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/admin/realms/:realm/localization/:locale') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/localization/:locale";

    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}}/admin/realms/:realm/localization/:locale
http DELETE {{baseUrl}}/admin/realms/:realm/localization/:locale
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/localization/:locale
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/localization/:locale")! 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-realms--realm-client-policies-policies
{{baseUrl}}/admin/realms/:realm/client-policies/policies
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-policies/policies");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-policies/policies")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-policies/policies"

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}}/admin/realms/:realm/client-policies/policies"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-policies/policies");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-policies/policies"

	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/admin/realms/:realm/client-policies/policies HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-policies/policies")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-policies/policies"))
    .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}}/admin/realms/:realm/client-policies/policies")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-policies/policies")
  .asString();
const 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}}/admin/realms/:realm/client-policies/policies');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-policies/policies'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-policies/policies';
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}}/admin/realms/:realm/client-policies/policies',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-policies/policies")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/client-policies/policies',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/client-policies/policies'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/client-policies/policies');

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}}/admin/realms/:realm/client-policies/policies'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-policies/policies';
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}}/admin/realms/:realm/client-policies/policies"]
                                                       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}}/admin/realms/:realm/client-policies/policies" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-policies/policies",
  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}}/admin/realms/:realm/client-policies/policies');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-policies/policies');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-policies/policies');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-policies/policies' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-policies/policies' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-policies/policies")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-policies/policies"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-policies/policies"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-policies/policies")

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/admin/realms/:realm/client-policies/policies') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-policies/policies";

    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}}/admin/realms/:realm/client-policies/policies
http GET {{baseUrl}}/admin/realms/:realm/client-policies/policies
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-policies/policies
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-policies/policies")! 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 -admin-realms--realm-client-policies-profiles
{{baseUrl}}/admin/realms/:realm/client-policies/profiles
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-policies/profiles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-policies/profiles")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-policies/profiles"

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}}/admin/realms/:realm/client-policies/profiles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/client-policies/profiles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-policies/profiles"

	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/admin/realms/:realm/client-policies/profiles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-policies/profiles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-policies/profiles"))
    .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}}/admin/realms/:realm/client-policies/profiles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-policies/profiles")
  .asString();
const 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}}/admin/realms/:realm/client-policies/profiles');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-policies/profiles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-policies/profiles';
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}}/admin/realms/:realm/client-policies/profiles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-policies/profiles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/client-policies/profiles',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/client-policies/profiles'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/client-policies/profiles');

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}}/admin/realms/:realm/client-policies/profiles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-policies/profiles';
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}}/admin/realms/:realm/client-policies/profiles"]
                                                       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}}/admin/realms/:realm/client-policies/profiles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-policies/profiles",
  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}}/admin/realms/:realm/client-policies/profiles');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-policies/profiles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-policies/profiles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-policies/profiles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-policies/profiles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-policies/profiles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-policies/profiles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-policies/profiles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-policies/profiles")

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/admin/realms/:realm/client-policies/profiles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-policies/profiles";

    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}}/admin/realms/:realm/client-policies/profiles
http GET {{baseUrl}}/admin/realms/:realm/client-policies/profiles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-policies/profiles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-policies/profiles")! 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 -admin-realms--realm-credential-registrators
{{baseUrl}}/admin/realms/:realm/credential-registrators
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/credential-registrators");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/credential-registrators")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/credential-registrators HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/credential-registrators")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/credential-registrators")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/credential-registrators');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/credential-registrators'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/credential-registrators',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/credential-registrators" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/credential-registrators');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/credential-registrators');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/credential-registrators');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/credential-registrators' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/credential-registrators' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/credential-registrators")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/credential-registrators"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/credential-registrators"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/credential-registrators') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/credential-registrators
http GET {{baseUrl}}/admin/realms/:realm/credential-registrators
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/credential-registrators
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-group-by-path--path
{{baseUrl}}/admin/realms/:realm/group-by-path/:path
QUERY PARAMS

path
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/group-by-path/:path");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/group-by-path/:path")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/group-by-path/:path HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/group-by-path/:path")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/group-by-path/:path")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/group-by-path/:path');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/group-by-path/:path'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/group-by-path/:path" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/group-by-path/:path');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/group-by-path/:path');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/group-by-path/:path');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/group-by-path/:path' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/group-by-path/:path' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/group-by-path/:path")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/group-by-path/:path"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/group-by-path/:path
http GET {{baseUrl}}/admin/realms/:realm/group-by-path/:path
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/group-by-path/:path
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-localization--locale--key
{{baseUrl}}/admin/realms/:realm/localization/:locale/:key
QUERY PARAMS

key
locale
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

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}}/admin/realms/:realm/localization/:locale/:key"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

	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/admin/realms/:realm/localization/:locale/:key HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"))
    .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}}/admin/realms/:realm/localization/:locale/:key")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .asString();
const 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}}/admin/realms/:realm/localization/:locale/:key');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key';
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}}/admin/realms/:realm/localization/:locale/:key',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/localization/:locale/:key',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/localization/:locale/:key'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');

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}}/admin/realms/:realm/localization/:locale/:key'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key';
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}}/admin/realms/:realm/localization/:locale/:key"]
                                                       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}}/admin/realms/:realm/localization/:locale/:key" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key",
  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}}/admin/realms/:realm/localization/:locale/:key');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/localization/:locale/:key")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")

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/admin/realms/:realm/localization/:locale/:key') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key";

    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}}/admin/realms/:realm/localization/:locale/:key
http GET {{baseUrl}}/admin/realms/:realm/localization/:locale/:key
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/localization/:locale/:key
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")! 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 -admin-realms--realm-localization--locale
{{baseUrl}}/admin/realms/:realm/localization/:locale
QUERY PARAMS

locale
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/localization/:locale");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/localization/:locale")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale"

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}}/admin/realms/:realm/localization/:locale"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/localization/:locale");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/localization/:locale"

	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/admin/realms/:realm/localization/:locale HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/localization/:locale")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/localization/:locale"))
    .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}}/admin/realms/:realm/localization/:locale")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/localization/:locale")
  .asString();
const 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}}/admin/realms/:realm/localization/:locale');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/localization/:locale'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale';
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}}/admin/realms/:realm/localization/:locale',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/localization/:locale")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/localization/:locale',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/localization/:locale'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/localization/:locale');

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}}/admin/realms/:realm/localization/:locale'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale';
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}}/admin/realms/:realm/localization/:locale"]
                                                       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}}/admin/realms/:realm/localization/:locale" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/localization/:locale",
  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}}/admin/realms/:realm/localization/:locale');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/localization/:locale")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/localization/:locale"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/localization/:locale")

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/admin/realms/:realm/localization/:locale') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/localization/:locale";

    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}}/admin/realms/:realm/localization/:locale
http GET {{baseUrl}}/admin/realms/:realm/localization/:locale
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/localization/:locale
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/localization/:locale")! 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 -admin-realms--realm-localization
{{baseUrl}}/admin/realms/:realm/localization
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/localization");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/localization")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/localization"

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}}/admin/realms/:realm/localization"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/localization");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/localization"

	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/admin/realms/:realm/localization HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/localization")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/localization"))
    .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}}/admin/realms/:realm/localization")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/localization")
  .asString();
const 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}}/admin/realms/:realm/localization');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/localization'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/localization';
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}}/admin/realms/:realm/localization',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/localization")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/localization',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/localization'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/localization');

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}}/admin/realms/:realm/localization'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/localization';
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}}/admin/realms/:realm/localization"]
                                                       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}}/admin/realms/:realm/localization" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/localization",
  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}}/admin/realms/:realm/localization');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/localization');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/localization');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/localization' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/localization' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/localization")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/localization"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/localization"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/localization")

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/admin/realms/:realm/localization') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/localization";

    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}}/admin/realms/:realm/localization
http GET {{baseUrl}}/admin/realms/:realm/localization
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/localization
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/localization")! 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 -admin-realms--realm-users-management-permissions
{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users-management-permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/users-management-permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users-management-permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users-management-permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users-management-permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users-management-permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users-management-permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users-management-permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users-management-permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users-management-permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users-management-permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/users-management-permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions
http GET {{baseUrl}}/admin/realms/:realm/users-management-permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users-management-permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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()
PUT put -admin-realms--realm-client-policies-policies
{{baseUrl}}/admin/realms/:realm/client-policies/policies
BODY json

{
  "policies": [
    {
      "name": "",
      "description": "",
      "enabled": false,
      "conditions": [
        {
          "condition": "",
          "configuration": {}
        }
      ],
      "profiles": []
    }
  ],
  "globalPolicies": [
    {}
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-policies/policies");

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  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\n    {}\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/client-policies/policies" {:content-type :json
                                                                                        :form-params {:policies [{:name ""
                                                                                                                  :description ""
                                                                                                                  :enabled false
                                                                                                                  :conditions [{:condition ""
                                                                                                                                :configuration {}}]
                                                                                                                  :profiles []}]
                                                                                                      :globalPolicies [{}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-policies/policies"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\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}}/admin/realms/:realm/client-policies/policies"),
    Content = new StringContent("{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\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}}/admin/realms/:realm/client-policies/policies");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\n    {}\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-policies/policies"

	payload := strings.NewReader("{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\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/admin/realms/:realm/client-policies/policies HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 265

{
  "policies": [
    {
      "name": "",
      "description": "",
      "enabled": false,
      "conditions": [
        {
          "condition": "",
          "configuration": {}
        }
      ],
      "profiles": []
    }
  ],
  "globalPolicies": [
    {}
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/client-policies/policies")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\n    {}\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-policies/policies"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\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  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\n    {}\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-policies/policies")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/client-policies/policies")
  .header("content-type", "application/json")
  .body("{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\n    {}\n  ]\n}")
  .asString();
const data = JSON.stringify({
  policies: [
    {
      name: '',
      description: '',
      enabled: false,
      conditions: [
        {
          condition: '',
          configuration: {}
        }
      ],
      profiles: []
    }
  ],
  globalPolicies: [
    {}
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/client-policies/policies');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-policies/policies',
  headers: {'content-type': 'application/json'},
  data: {
    policies: [
      {
        name: '',
        description: '',
        enabled: false,
        conditions: [{condition: '', configuration: {}}],
        profiles: []
      }
    ],
    globalPolicies: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-policies/policies';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"policies":[{"name":"","description":"","enabled":false,"conditions":[{"condition":"","configuration":{}}],"profiles":[]}],"globalPolicies":[{}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-policies/policies',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "policies": [\n    {\n      "name": "",\n      "description": "",\n      "enabled": false,\n      "conditions": [\n        {\n          "condition": "",\n          "configuration": {}\n        }\n      ],\n      "profiles": []\n    }\n  ],\n  "globalPolicies": [\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  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\n    {}\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-policies/policies")
  .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/admin/realms/:realm/client-policies/policies',
  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({
  policies: [
    {
      name: '',
      description: '',
      enabled: false,
      conditions: [{condition: '', configuration: {}}],
      profiles: []
    }
  ],
  globalPolicies: [{}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-policies/policies',
  headers: {'content-type': 'application/json'},
  body: {
    policies: [
      {
        name: '',
        description: '',
        enabled: false,
        conditions: [{condition: '', configuration: {}}],
        profiles: []
      }
    ],
    globalPolicies: [{}]
  },
  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}}/admin/realms/:realm/client-policies/policies');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  policies: [
    {
      name: '',
      description: '',
      enabled: false,
      conditions: [
        {
          condition: '',
          configuration: {}
        }
      ],
      profiles: []
    }
  ],
  globalPolicies: [
    {}
  ]
});

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}}/admin/realms/:realm/client-policies/policies',
  headers: {'content-type': 'application/json'},
  data: {
    policies: [
      {
        name: '',
        description: '',
        enabled: false,
        conditions: [{condition: '', configuration: {}}],
        profiles: []
      }
    ],
    globalPolicies: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-policies/policies';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"policies":[{"name":"","description":"","enabled":false,"conditions":[{"condition":"","configuration":{}}],"profiles":[]}],"globalPolicies":[{}]}'
};

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 = @{ @"policies": @[ @{ @"name": @"", @"description": @"", @"enabled": @NO, @"conditions": @[ @{ @"condition": @"", @"configuration": @{  } } ], @"profiles": @[  ] } ],
                              @"globalPolicies": @[ @{  } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-policies/policies"]
                                                       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}}/admin/realms/:realm/client-policies/policies" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\n    {}\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-policies/policies",
  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([
    'policies' => [
        [
                'name' => '',
                'description' => '',
                'enabled' => null,
                'conditions' => [
                                [
                                                                'condition' => '',
                                                                'configuration' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'profiles' => [
                                
                ]
        ]
    ],
    'globalPolicies' => [
        [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-policies/policies', [
  'body' => '{
  "policies": [
    {
      "name": "",
      "description": "",
      "enabled": false,
      "conditions": [
        {
          "condition": "",
          "configuration": {}
        }
      ],
      "profiles": []
    }
  ],
  "globalPolicies": [
    {}
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-policies/policies');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'policies' => [
    [
        'name' => '',
        'description' => '',
        'enabled' => null,
        'conditions' => [
                [
                                'condition' => '',
                                'configuration' => [
                                                                
                                ]
                ]
        ],
        'profiles' => [
                
        ]
    ]
  ],
  'globalPolicies' => [
    [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'policies' => [
    [
        'name' => '',
        'description' => '',
        'enabled' => null,
        'conditions' => [
                [
                                'condition' => '',
                                'configuration' => [
                                                                
                                ]
                ]
        ],
        'profiles' => [
                
        ]
    ]
  ],
  'globalPolicies' => [
    [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-policies/policies');
$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}}/admin/realms/:realm/client-policies/policies' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "policies": [
    {
      "name": "",
      "description": "",
      "enabled": false,
      "conditions": [
        {
          "condition": "",
          "configuration": {}
        }
      ],
      "profiles": []
    }
  ],
  "globalPolicies": [
    {}
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-policies/policies' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "policies": [
    {
      "name": "",
      "description": "",
      "enabled": false,
      "conditions": [
        {
          "condition": "",
          "configuration": {}
        }
      ],
      "profiles": []
    }
  ],
  "globalPolicies": [
    {}
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\n    {}\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/client-policies/policies", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-policies/policies"

payload = {
    "policies": [
        {
            "name": "",
            "description": "",
            "enabled": False,
            "conditions": [
                {
                    "condition": "",
                    "configuration": {}
                }
            ],
            "profiles": []
        }
    ],
    "globalPolicies": [{}]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-policies/policies"

payload <- "{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\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}}/admin/realms/:realm/client-policies/policies")

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  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\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/admin/realms/:realm/client-policies/policies') do |req|
  req.body = "{\n  \"policies\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"enabled\": false,\n      \"conditions\": [\n        {\n          \"condition\": \"\",\n          \"configuration\": {}\n        }\n      ],\n      \"profiles\": []\n    }\n  ],\n  \"globalPolicies\": [\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}}/admin/realms/:realm/client-policies/policies";

    let payload = json!({
        "policies": (
            json!({
                "name": "",
                "description": "",
                "enabled": false,
                "conditions": (
                    json!({
                        "condition": "",
                        "configuration": json!({})
                    })
                ),
                "profiles": ()
            })
        ),
        "globalPolicies": (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}}/admin/realms/:realm/client-policies/policies \
  --header 'content-type: application/json' \
  --data '{
  "policies": [
    {
      "name": "",
      "description": "",
      "enabled": false,
      "conditions": [
        {
          "condition": "",
          "configuration": {}
        }
      ],
      "profiles": []
    }
  ],
  "globalPolicies": [
    {}
  ]
}'
echo '{
  "policies": [
    {
      "name": "",
      "description": "",
      "enabled": false,
      "conditions": [
        {
          "condition": "",
          "configuration": {}
        }
      ],
      "profiles": []
    }
  ],
  "globalPolicies": [
    {}
  ]
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/client-policies/policies \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "policies": [\n    {\n      "name": "",\n      "description": "",\n      "enabled": false,\n      "conditions": [\n        {\n          "condition": "",\n          "configuration": {}\n        }\n      ],\n      "profiles": []\n    }\n  ],\n  "globalPolicies": [\n    {}\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-policies/policies
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "policies": [
    [
      "name": "",
      "description": "",
      "enabled": false,
      "conditions": [
        [
          "condition": "",
          "configuration": []
        ]
      ],
      "profiles": []
    ]
  ],
  "globalPolicies": [[]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-policies/policies")! 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 put -admin-realms--realm-client-policies-profiles
{{baseUrl}}/admin/realms/:realm/client-policies/profiles
BODY json

{
  "profiles": [
    {
      "name": "",
      "description": "",
      "executors": [
        {
          "executor": "",
          "configuration": {}
        }
      ]
    }
  ],
  "globalProfiles": [
    {}
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-policies/profiles");

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  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\n    {}\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/client-policies/profiles" {:content-type :json
                                                                                        :form-params {:profiles [{:name ""
                                                                                                                  :description ""
                                                                                                                  :executors [{:executor ""
                                                                                                                               :configuration {}}]}]
                                                                                                      :globalProfiles [{}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-policies/profiles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\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}}/admin/realms/:realm/client-policies/profiles"),
    Content = new StringContent("{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\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}}/admin/realms/:realm/client-policies/profiles");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\n    {}\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-policies/profiles"

	payload := strings.NewReader("{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\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/admin/realms/:realm/client-policies/profiles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 217

{
  "profiles": [
    {
      "name": "",
      "description": "",
      "executors": [
        {
          "executor": "",
          "configuration": {}
        }
      ]
    }
  ],
  "globalProfiles": [
    {}
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/client-policies/profiles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\n    {}\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-policies/profiles"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\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  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\n    {}\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-policies/profiles")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/client-policies/profiles")
  .header("content-type", "application/json")
  .body("{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\n    {}\n  ]\n}")
  .asString();
const data = JSON.stringify({
  profiles: [
    {
      name: '',
      description: '',
      executors: [
        {
          executor: '',
          configuration: {}
        }
      ]
    }
  ],
  globalProfiles: [
    {}
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/client-policies/profiles');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-policies/profiles',
  headers: {'content-type': 'application/json'},
  data: {
    profiles: [{name: '', description: '', executors: [{executor: '', configuration: {}}]}],
    globalProfiles: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-policies/profiles';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"profiles":[{"name":"","description":"","executors":[{"executor":"","configuration":{}}]}],"globalProfiles":[{}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-policies/profiles',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "profiles": [\n    {\n      "name": "",\n      "description": "",\n      "executors": [\n        {\n          "executor": "",\n          "configuration": {}\n        }\n      ]\n    }\n  ],\n  "globalProfiles": [\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  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\n    {}\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-policies/profiles")
  .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/admin/realms/:realm/client-policies/profiles',
  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({
  profiles: [{name: '', description: '', executors: [{executor: '', configuration: {}}]}],
  globalProfiles: [{}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/client-policies/profiles',
  headers: {'content-type': 'application/json'},
  body: {
    profiles: [{name: '', description: '', executors: [{executor: '', configuration: {}}]}],
    globalProfiles: [{}]
  },
  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}}/admin/realms/:realm/client-policies/profiles');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  profiles: [
    {
      name: '',
      description: '',
      executors: [
        {
          executor: '',
          configuration: {}
        }
      ]
    }
  ],
  globalProfiles: [
    {}
  ]
});

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}}/admin/realms/:realm/client-policies/profiles',
  headers: {'content-type': 'application/json'},
  data: {
    profiles: [{name: '', description: '', executors: [{executor: '', configuration: {}}]}],
    globalProfiles: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-policies/profiles';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"profiles":[{"name":"","description":"","executors":[{"executor":"","configuration":{}}]}],"globalProfiles":[{}]}'
};

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 = @{ @"profiles": @[ @{ @"name": @"", @"description": @"", @"executors": @[ @{ @"executor": @"", @"configuration": @{  } } ] } ],
                              @"globalProfiles": @[ @{  } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-policies/profiles"]
                                                       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}}/admin/realms/:realm/client-policies/profiles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\n    {}\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-policies/profiles",
  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([
    'profiles' => [
        [
                'name' => '',
                'description' => '',
                'executors' => [
                                [
                                                                'executor' => '',
                                                                'configuration' => [
                                                                                                                                
                                                                ]
                                ]
                ]
        ]
    ],
    'globalProfiles' => [
        [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-policies/profiles', [
  'body' => '{
  "profiles": [
    {
      "name": "",
      "description": "",
      "executors": [
        {
          "executor": "",
          "configuration": {}
        }
      ]
    }
  ],
  "globalProfiles": [
    {}
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-policies/profiles');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'profiles' => [
    [
        'name' => '',
        'description' => '',
        'executors' => [
                [
                                'executor' => '',
                                'configuration' => [
                                                                
                                ]
                ]
        ]
    ]
  ],
  'globalProfiles' => [
    [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'profiles' => [
    [
        'name' => '',
        'description' => '',
        'executors' => [
                [
                                'executor' => '',
                                'configuration' => [
                                                                
                                ]
                ]
        ]
    ]
  ],
  'globalProfiles' => [
    [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-policies/profiles');
$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}}/admin/realms/:realm/client-policies/profiles' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "profiles": [
    {
      "name": "",
      "description": "",
      "executors": [
        {
          "executor": "",
          "configuration": {}
        }
      ]
    }
  ],
  "globalProfiles": [
    {}
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-policies/profiles' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "profiles": [
    {
      "name": "",
      "description": "",
      "executors": [
        {
          "executor": "",
          "configuration": {}
        }
      ]
    }
  ],
  "globalProfiles": [
    {}
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\n    {}\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/client-policies/profiles", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-policies/profiles"

payload = {
    "profiles": [
        {
            "name": "",
            "description": "",
            "executors": [
                {
                    "executor": "",
                    "configuration": {}
                }
            ]
        }
    ],
    "globalProfiles": [{}]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-policies/profiles"

payload <- "{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\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}}/admin/realms/:realm/client-policies/profiles")

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  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\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/admin/realms/:realm/client-policies/profiles') do |req|
  req.body = "{\n  \"profiles\": [\n    {\n      \"name\": \"\",\n      \"description\": \"\",\n      \"executors\": [\n        {\n          \"executor\": \"\",\n          \"configuration\": {}\n        }\n      ]\n    }\n  ],\n  \"globalProfiles\": [\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}}/admin/realms/:realm/client-policies/profiles";

    let payload = json!({
        "profiles": (
            json!({
                "name": "",
                "description": "",
                "executors": (
                    json!({
                        "executor": "",
                        "configuration": json!({})
                    })
                )
            })
        ),
        "globalProfiles": (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}}/admin/realms/:realm/client-policies/profiles \
  --header 'content-type: application/json' \
  --data '{
  "profiles": [
    {
      "name": "",
      "description": "",
      "executors": [
        {
          "executor": "",
          "configuration": {}
        }
      ]
    }
  ],
  "globalProfiles": [
    {}
  ]
}'
echo '{
  "profiles": [
    {
      "name": "",
      "description": "",
      "executors": [
        {
          "executor": "",
          "configuration": {}
        }
      ]
    }
  ],
  "globalProfiles": [
    {}
  ]
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/client-policies/profiles \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "profiles": [\n    {\n      "name": "",\n      "description": "",\n      "executors": [\n        {\n          "executor": "",\n          "configuration": {}\n        }\n      ]\n    }\n  ],\n  "globalProfiles": [\n    {}\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-policies/profiles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "profiles": [
    [
      "name": "",
      "description": "",
      "executors": [
        [
          "executor": "",
          "configuration": []
        ]
      ]
    ]
  ],
  "globalProfiles": [[]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-policies/profiles")! 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 put -admin-realms--realm-default-default-client-scopes--clientScopeId
{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId
QUERY PARAMS

clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-default-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/default-default-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId
http PUT {{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-default-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-default-groups--groupId
{{baseUrl}}/admin/realms/:realm/default-groups/:groupId
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-groups/:groupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/default-groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/default-groups/:groupId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/default-groups/:groupId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-groups/:groupId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-groups/:groupId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/default-groups/:groupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/default-groups/:groupId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-groups/:groupId
http PUT {{baseUrl}}/admin/realms/:realm/default-groups/:groupId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-groups/:groupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-default-optional-client-scopes--clientScopeId
{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId
QUERY PARAMS

clientScopeId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/default-optional-client-scopes/:clientScopeId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/default-optional-client-scopes/:clientScopeId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId
http PUT {{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/default-optional-client-scopes/:clientScopeId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 -admin-realms--realm-localization--locale--key
{{baseUrl}}/admin/realms/:realm/localization/:locale/:key
QUERY PARAMS

key
locale
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

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}}/admin/realms/:realm/localization/:locale/:key"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

	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/admin/realms/:realm/localization/:locale/:key HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"))
    .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}}/admin/realms/:realm/localization/:locale/:key")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .asString();
const 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}}/admin/realms/:realm/localization/:locale/:key');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key';
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}}/admin/realms/:realm/localization/:locale/:key',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")
  .put(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/localization/:locale/:key',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/localization/:locale/:key'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');

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}}/admin/realms/:realm/localization/:locale/:key'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key';
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}}/admin/realms/:realm/localization/:locale/:key"]
                                                       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}}/admin/realms/:realm/localization/:locale/:key" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key",
  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}}/admin/realms/:realm/localization/:locale/:key');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/localization/:locale/:key');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/localization/:locale/:key' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/localization/:locale/:key")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")

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/admin/realms/:realm/localization/:locale/:key') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key";

    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}}/admin/realms/:realm/localization/:locale/:key
http PUT {{baseUrl}}/admin/realms/:realm/localization/:locale/:key
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/localization/:locale/:key
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/localization/:locale/:key")! 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 -admin-realms--realm-users-management-permissions
{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions" {:content-type :json
                                                                                            :form-params {:enabled false
                                                                                                          :resource ""
                                                                                                          :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/users-management-permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users-management-permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users/:user-id/role-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm" {:content-type :json
                                                                                                   :form-params [{:id ""
                                                                                                                  :name ""
                                                                                                                  :description ""
                                                                                                                  :scopeParamRequired false
                                                                                                                  :composite false
                                                                                                                  :composites {:realm []
                                                                                                                               :client {}
                                                                                                                               :application {}}
                                                                                                                  :clientRole false
                                                                                                                  :containerId ""
                                                                                                                  :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/users/:user-id/role-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/users/:user-id/role-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/users/:user-id/role-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/users/:user-id/role-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/users/:user-id/role-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm" {:content-type :json
                                                                                                     :form-params [{:id ""
                                                                                                                    :name ""
                                                                                                                    :description ""
                                                                                                                    :scopeParamRequired false
                                                                                                                    :composite false
                                                                                                                    :composites {:realm []
                                                                                                                                 :client {}
                                                                                                                                 :application {}}
                                                                                                                    :clientRole false
                                                                                                                    :containerId ""
                                                                                                                    :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/groups/:group-id/role-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/groups/:group-id/role-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm" {:content-type :json
                                                                                                     :form-params [{:id ""
                                                                                                                    :name ""
                                                                                                                    :description ""
                                                                                                                    :scopeParamRequired false
                                                                                                                    :composite false
                                                                                                                    :composites {:realm []
                                                                                                                                 :client {}
                                                                                                                                 :application {}}
                                                                                                                    :clientRole false
                                                                                                                    :containerId ""
                                                                                                                    :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/users/:user-id/role-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/users/:user-id/role-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/users/:user-id/role-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/users/:user-id/role-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/users/:user-id/role-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm" {:content-type :json
                                                                                                       :form-params [{:id ""
                                                                                                                      :name ""
                                                                                                                      :description ""
                                                                                                                      :scopeParamRequired false
                                                                                                                      :composite false
                                                                                                                      :composites {:realm []
                                                                                                                                   :client {}
                                                                                                                                   :application {}}
                                                                                                                      :clientRole false
                                                                                                                      :containerId ""
                                                                                                                      :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/groups/:group-id/role-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/groups/:group-id/role-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/role-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/role-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/role-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/role-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/role-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/role-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/role-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/users/:user-id/role-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/role-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/role-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/role-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/role-mappings
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/role-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/groups/:group-id/role-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/role-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/groups/:group-id/role-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/groups/:group-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/admin/realms/:realm/groups/:group-id/role-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/groups/:group-id/role-mappings
http GET {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/groups/:group-id/role-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/groups/:group-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}}/admin/realms/:realm/roles/:role-name/composites
QUERY PARAMS

role-name
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites" {:content-type :json
                                                                                            :form-params [{:id ""
                                                                                                           :name ""
                                                                                                           :description ""
                                                                                                           :scopeParamRequired false
                                                                                                           :composite false
                                                                                                           :composites {:realm []
                                                                                                                        :client {}
                                                                                                                        :application {}}
                                                                                                           :clientRole false
                                                                                                           :containerId ""
                                                                                                           :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/roles/:role-name/composites"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/roles/:role-name/composites");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/roles/:role-name/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/roles/:role-name/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/roles/:role-name/composites', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/roles/:role-name/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/roles/:role-name/composites') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/roles/:role-name/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites
QUERY PARAMS

role-name
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites" {:content-type :json
                                                                                                                 :form-params [{:id ""
                                                                                                                                :name ""
                                                                                                                                :description ""
                                                                                                                                :scopeParamRequired false
                                                                                                                                :composite false
                                                                                                                                :composites {:realm []
                                                                                                                                             :client {}
                                                                                                                                             :application {}}
                                                                                                                                :clientRole false
                                                                                                                                :containerId ""
                                                                                                                                :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 Create a new role for the realm or client (POST)
{{baseUrl}}/admin/realms/:realm/roles
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/roles" {:content-type :json
                                                                      :form-params {:id ""
                                                                                    :name ""
                                                                                    :description ""
                                                                                    :scopeParamRequired false
                                                                                    :composite false
                                                                                    :composites {:realm []
                                                                                                 :client {}
                                                                                                 :application {}}
                                                                                    :clientRole false
                                                                                    :containerId ""
                                                                                    :attributes {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/roles"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/roles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/roles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 246

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/roles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/roles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/roles")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/roles');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/roles',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/roles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {realm: [], client: {}, application: {}},
  clientRole: false,
  containerId: '',
  attributes: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/roles',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  },
  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}}/admin/realms/:realm/roles');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

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}}/admin/realms/:realm/roles',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"scopeParamRequired": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } },
                              @"clientRole": @NO,
                              @"containerId": @"",
                              @"attributes": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/roles', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/roles", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": False,
    "composite": False,
    "composites": {
        "realm": [],
        "client": {},
        "application": {}
    },
    "clientRole": False,
    "containerId": "",
    "attributes": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/roles') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/roles";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": json!({
            "realm": (),
            "client": json!({}),
            "application": json!({})
        }),
        "clientRole": false,
        "containerId": "",
        "attributes": 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}}/admin/realms/:realm/roles \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/roles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": [
    "realm": [],
    "client": [],
    "application": []
  ],
  "clientRole": false,
  "containerId": "",
  "attributes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles" {:content-type :json
                                                                                           :form-params {:id ""
                                                                                                         :name ""
                                                                                                         :description ""
                                                                                                         :scopeParamRequired false
                                                                                                         :composite false
                                                                                                         :composites {:realm []
                                                                                                                      :client {}
                                                                                                                      :application {}}
                                                                                                         :clientRole false
                                                                                                         :containerId ""
                                                                                                         :attributes {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/roles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 246

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {realm: [], client: {}, application: {}},
  clientRole: false,
  containerId: '',
  attributes: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  },
  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}}/admin/realms/:realm/clients/:client-uuid/roles');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

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}}/admin/realms/:realm/clients/:client-uuid/roles',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"scopeParamRequired": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } },
                              @"clientRole": @NO,
                              @"containerId": @"",
                              @"attributes": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/roles', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": False,
    "composite": False,
    "composites": {
        "realm": [],
        "client": {},
        "application": {}
    },
    "clientRole": False,
    "containerId": "",
    "attributes": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/roles') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": json!({
            "realm": (),
            "client": json!({}),
            "application": json!({})
        }),
        "clientRole": false,
        "containerId": "",
        "attributes": 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}}/admin/realms/:realm/clients/:client-uuid/roles \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": [
    "realm": [],
    "client": [],
    "application": []
  ],
  "clientRole": false,
  "containerId": "",
  "attributes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/roles/:role-name
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles/:role-name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/roles/:role-name")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles/:role-name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/roles/:role-name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/roles/:role-name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles/:role-name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name
http DELETE {{baseUrl}}/admin/realms/:realm/roles/:role-name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/roles/:role-name
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles/:role-name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles/:role-name")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles/:role-name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles/:role-name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles/:role-name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles/:role-name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/roles/:role-name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name
http GET {{baseUrl}}/admin/realms/:realm/roles/:role-name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/roles
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm/roles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/admin/realms/:realm/roles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/roles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/roles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles
http GET {{baseUrl}}/admin/realms/:realm/roles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 client-level roles for the client that are in the role's composite (GET)
{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid
QUERY PARAMS

client-uuid
role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid"

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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid"

	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/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid"))
    .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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid")
  .asString();
const 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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid';
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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid');

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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid';
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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid"]
                                                       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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid",
  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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid")

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/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid";

    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}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid
http GET {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/clients/:client-uuid")! 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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid
QUERY PARAMS

client-uuid
role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid"

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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid"

	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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid"))
    .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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid';
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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid');

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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid';
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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid",
  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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid")

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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid";

    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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/clients/:client-uuid")! 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}}/admin/realms/:realm/roles/:role-name/composites
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles/:role-name/composites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles/:role-name/composites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites
http GET {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/roles/:role-name/composites/realm
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles/:role-name/composites/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles/:role-name/composites/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites/realm
http GET {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/roles/:role-name/composites
QUERY PARAMS

role-name
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites" {:content-type :json
                                                                                              :form-params [{:id ""
                                                                                                             :name ""
                                                                                                             :description ""
                                                                                                             :scopeParamRequired false
                                                                                                             :composite false
                                                                                                             :composites {:realm []
                                                                                                                          :client {}
                                                                                                                          :application {}}
                                                                                                             :clientRole false
                                                                                                             :containerId ""
                                                                                                             :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/roles/:role-name/composites"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/roles/:role-name/composites");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/roles/:role-name/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/roles/:role-name/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/roles/:role-name/composites', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/roles/:role-name/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles/:role-name/composites"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/roles/:role-name/composites') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/roles/:role-name/composites";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites
QUERY PARAMS

role-name
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites" {:content-type :json
                                                                                                                   :form-params [{:id ""
                                                                                                                                  :name ""
                                                                                                                                  :description ""
                                                                                                                                  :scopeParamRequired false
                                                                                                                                  :composite false
                                                                                                                                  :composites {:realm []
                                                                                                                                               :client {}
                                                                                                                                               :application {}}
                                                                                                                                  :clientRole false
                                                                                                                                  :containerId ""
                                                                                                                                  :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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()
PUT Return object stating whether role Authorization permissions have been initialized or not and a reference (1)
{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions
QUERY PARAMS

role-name
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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions" {:content-type :json
                                                                                                       :form-params {:enabled false
                                                                                                                     :resource ""
                                                                                                                     :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles/:role-name/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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 Authorization permissions have been initialized or not and a reference (GET)
{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles/:role-name/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles/:role-name/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/management/permissions
http GET {{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 Authorization permissions have been initialized or not and a reference (PUT)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions
QUERY PARAMS

role-name
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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions" {:content-type :json
                                                                                                                            :form-params {:enabled false
                                                                                                                                          :resource ""
                                                                                                                                          :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions \
  --header 'content-type: application/json' \
  --data '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}'
echo '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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 Authorization permissions have been initialized or not and a reference
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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()
GET Returns a stream of groups that have the specified role name (GET)
{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles/:role-name/groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/groups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/groups');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles/:role-name/groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/groups
http GET {{baseUrl}}/admin/realms/:realm/roles/:role-name/groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name/groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 Returns a stream of groups that have the specified role name
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 Returns a stream of users that have the specified role name. (GET)
{{baseUrl}}/admin/realms/:realm/roles/:role-name/users
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles/:role-name/users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles/:role-name/users")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles/:role-name/users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles/:role-name/users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/users")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/users');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name/users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/users" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/users');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/users');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name/users');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/users' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name/users' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles/:role-name/users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name/users"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name/users
http GET {{baseUrl}}/admin/realms/:realm/roles/:role-name/users
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name/users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 Returns a stream of users that have the specified role name.
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users
QUERY PARAMS

role-name
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name/users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 Update a role by name (PUT)
{{baseUrl}}/admin/realms/:realm/roles/:role-name
QUERY PARAMS

role-name
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/roles/:role-name" {:content-type :json
                                                                                :form-params {:id ""
                                                                                              :name ""
                                                                                              :description ""
                                                                                              :scopeParamRequired false
                                                                                              :composite false
                                                                                              :composites {:realm []
                                                                                                           :client {}
                                                                                                           :application {}}
                                                                                              :clientRole false
                                                                                              :containerId ""
                                                                                              :attributes {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/roles/:role-name"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/roles/:role-name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles/:role-name"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/roles/:role-name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 246

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/roles/:role-name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles/:role-name"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/roles/:role-name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/roles/:role-name")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/roles/:role-name');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles/:role-name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {realm: [], client: {}, application: {}},
  clientRole: false,
  containerId: '',
  attributes: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/roles/:role-name',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  },
  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}}/admin/realms/:realm/roles/:role-name');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

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}}/admin/realms/:realm/roles/:role-name',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles/:role-name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"scopeParamRequired": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } },
                              @"clientRole": @NO,
                              @"containerId": @"",
                              @"attributes": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/roles/:role-name', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles/:role-name');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles/:role-name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles/:role-name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/roles/:role-name", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles/:role-name"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": False,
    "composite": False,
    "composites": {
        "realm": [],
        "client": {},
        "application": {}
    },
    "clientRole": False,
    "containerId": "",
    "attributes": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles/:role-name"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/roles/:role-name') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/roles/:role-name";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": json!({
            "realm": (),
            "client": json!({}),
            "application": json!({})
        }),
        "clientRole": false,
        "containerId": "",
        "attributes": 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}}/admin/realms/:realm/roles/:role-name \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/roles/:role-name \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles/:role-name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": [
    "realm": [],
    "client": [],
    "application": []
  ],
  "clientRole": false,
  "containerId": "",
  "attributes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
QUERY PARAMS

role-name
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name" {:content-type :json
                                                                                                     :form-params {:id ""
                                                                                                                   :name ""
                                                                                                                   :description ""
                                                                                                                   :scopeParamRequired false
                                                                                                                   :composite false
                                                                                                                   :composites {:realm []
                                                                                                                                :client {}
                                                                                                                                :application {}}
                                                                                                                   :clientRole false
                                                                                                                   :containerId ""
                                                                                                                   :attributes {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/roles/:role-name HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 246

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {realm: [], client: {}, application: {}},
  clientRole: false,
  containerId: '',
  attributes: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  },
  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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"scopeParamRequired": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } },
                              @"clientRole": @NO,
                              @"containerId": @"",
                              @"attributes": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/clients/:client-uuid/roles/:role-name", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": False,
    "composite": False,
    "composites": {
        "realm": [],
        "client": {},
        "application": {}
    },
    "clientRole": False,
    "containerId": "",
    "attributes": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/roles/:role-name') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": json!({
            "realm": (),
            "client": json!({}),
            "application": json!({})
        }),
        "clientRole": false,
        "containerId": "",
        "attributes": 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}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/roles/:role-name
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": [
    "realm": [],
    "client": [],
    "application": []
  ],
  "clientRole": false,
  "containerId": "",
  "attributes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/roles-by-id/:role-id
QUERY PARAMS

role-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles-by-id/:role-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id
http DELETE {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id
QUERY PARAMS

role-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles-by-id/:role-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id
http GET {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 (1)
{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid
QUERY PARAMS

clientUuid
role-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid"

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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid"

	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/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid"))
    .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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid")
  .asString();
const 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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid';
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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid');

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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid';
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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid"]
                                                       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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid",
  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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid")

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/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid";

    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}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid
http GET {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/clients/:clientUuid")! 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}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm
QUERY PARAMS

role-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles-by-id/:role-id/composites/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id/composites/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm
http GET {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites
QUERY PARAMS

role-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles-by-id/:role-id/composites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id/composites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites
http GET {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites
QUERY PARAMS

role-id
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites" {:content-type :json
                                                                                                :form-params [{:id ""
                                                                                                               :name ""
                                                                                                               :description ""
                                                                                                               :scopeParamRequired false
                                                                                                               :composite false
                                                                                                               :composites {:realm []
                                                                                                                            :client {}
                                                                                                                            :application {}}
                                                                                                               :clientRole false
                                                                                                               :containerId ""
                                                                                                               :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/roles-by-id/:role-id/composites"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/roles-by-id/:role-id/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/roles-by-id/:role-id/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/roles-by-id/:role-id/composites', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/roles-by-id/:role-id/composites') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/roles-by-id/:role-id/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites
QUERY PARAMS

role-id
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites" {:content-type :json
                                                                                                  :form-params [{:id ""
                                                                                                                 :name ""
                                                                                                                 :description ""
                                                                                                                 :scopeParamRequired false
                                                                                                                 :composite false
                                                                                                                 :composites {:realm []
                                                                                                                              :client {}
                                                                                                                              :application {}}
                                                                                                                 :clientRole false
                                                                                                                 :containerId ""
                                                                                                                 :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/roles-by-id/:role-id/composites"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/roles-by-id/:role-id/composites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/roles-by-id/:role-id/composites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/roles-by-id/:role-id/composites',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/roles-by-id/:role-id/composites', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id/composites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/: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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/roles-by-id/:role-id/composites') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/roles-by-id/:role-id/composites";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/composites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 Authorization permissions have been initialized or not and a reference (2)
{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions
QUERY PARAMS

role-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/roles-by-id/:role-id/management/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id/management/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions
http GET {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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 Authorization permissions have been initialized or not and a reference (3)
{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions
QUERY PARAMS

role-id
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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions" {:content-type :json
                                                                                                           :form-params {:enabled false
                                                                                                                         :resource ""
                                                                                                                         :scopePermissions {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id/management/permissions', [
  'body' => '{
  "enabled": false,
  "resource": "",
  "scopePermissions": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id
QUERY PARAMS

role-id
BODY json

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id" {:content-type :json
                                                                                    :form-params {:id ""
                                                                                                  :name ""
                                                                                                  :description ""
                                                                                                  :scopeParamRequired false
                                                                                                  :composite false
                                                                                                  :composites {:realm []
                                                                                                               :client {}
                                                                                                               :application {}}
                                                                                                  :clientRole false
                                                                                                  :containerId ""
                                                                                                  :attributes {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/roles-by-id/:role-id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/roles-by-id/:role-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/roles-by-id/:role-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 246

{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {realm: [], client: {}, application: {}},
  clientRole: false,
  containerId: '',
  attributes: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  },
  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}}/admin/realms/:realm/roles-by-id/:role-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  description: '',
  scopeParamRequired: false,
  composite: false,
  composites: {
    realm: [],
    client: {},
    application: {}
  },
  clientRole: false,
  containerId: '',
  attributes: {}
});

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}}/admin/realms/:realm/roles-by-id/:role-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"description": @"",
                              @"scopeParamRequired": @NO,
                              @"composite": @NO,
                              @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } },
                              @"clientRole": @NO,
                              @"containerId": @"",
                              @"attributes": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/roles-by-id/:role-id', [
  'body' => '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/: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([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'description' => '',
  'scopeParamRequired' => null,
  'composite' => null,
  'composites' => [
    'realm' => [
        
    ],
    'client' => [
        
    ],
    'application' => [
        
    ]
  ],
  'clientRole' => null,
  'containerId' => '',
  'attributes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/roles-by-id/:role-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/roles-by-id/:role-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id"

payload = {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": False,
    "composite": False,
    "composites": {
        "realm": [],
        "client": {},
        "application": {}
    },
    "clientRole": False,
    "containerId": "",
    "attributes": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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/admin/realms/:realm/roles-by-id/:role-id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"description\": \"\",\n  \"scopeParamRequired\": false,\n  \"composite\": false,\n  \"composites\": {\n    \"realm\": [],\n    \"client\": {},\n    \"application\": {}\n  },\n  \"clientRole\": false,\n  \"containerId\": \"\",\n  \"attributes\": {}\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}}/admin/realms/:realm/roles-by-id/:role-id";

    let payload = json!({
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": false,
        "composite": false,
        "composites": json!({
            "realm": (),
            "client": json!({}),
            "application": json!({})
        }),
        "clientRole": false,
        "containerId": "",
        "attributes": 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}}/admin/realms/:realm/roles-by-id/:role-id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}'
echo '{
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": {
    "realm": [],
    "client": {},
    "application": {}
  },
  "clientRole": false,
  "containerId": "",
  "attributes": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "description": "",\n  "scopeParamRequired": false,\n  "composite": false,\n  "composites": {\n    "realm": [],\n    "client": {},\n    "application": {}\n  },\n  "clientRole": false,\n  "containerId": "",\n  "attributes": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/roles-by-id/:role-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "description": "",
  "scopeParamRequired": false,
  "composite": false,
  "composites": [
    "realm": [],
    "client": [],
    "application": []
  ],
  "clientRole": false,
  "containerId": "",
  "attributes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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()
POST Add a set of realm-level roles to the client's scope (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm" {:content-type :json
                                                                                                          :form-params [{:id ""
                                                                                                                         :name ""
                                                                                                                         :description ""
                                                                                                                         :scopeParamRequired false
                                                                                                                         :composite false
                                                                                                                         :composites {:realm []
                                                                                                                                      :client {}
                                                                                                                                      :application {}}
                                                                                                                         :clientRole false
                                                                                                                         :containerId ""
                                                                                                                         :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (POST)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm" {:content-type :json
                                                                                                                       :form-params [{:id ""
                                                                                                                                      :name ""
                                                                                                                                      :description ""
                                                                                                                                      :scopeParamRequired false
                                                                                                                                      :composite false
                                                                                                                                      :composites {:realm []
                                                                                                                                                   :client {}
                                                                                                                                                   :application {}}
                                                                                                                                      :clientRole false
                                                                                                                                      :containerId ""
                                                                                                                                      :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm" {:content-type :json
                                                                                                                    :form-params [{:id ""
                                                                                                                                   :name ""
                                                                                                                                   :description ""
                                                                                                                                   :scopeParamRequired false
                                                                                                                                   :composite false
                                                                                                                                   :composites {:realm []
                                                                                                                                                :client {}
                                                                                                                                                :application {}}
                                                                                                                                   :clientRole false
                                                                                                                                   :containerId ""
                                                                                                                                   :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client" {:content-type :json
                                                                                                                    :form-params [{:id ""
                                                                                                                                   :name ""
                                                                                                                                   :description ""
                                                                                                                                   :scopeParamRequired false
                                                                                                                                   :composite false
                                                                                                                                   :composites {:realm []
                                                                                                                                                :client {}
                                                                                                                                                :application {}}
                                                                                                                                   :clientRole false
                                                                                                                                   :containerId ""
                                                                                                                                   :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (POST)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client" {:content-type :json
                                                                                                                                 :form-params [{:id ""
                                                                                                                                                :name ""
                                                                                                                                                :description ""
                                                                                                                                                :scopeParamRequired false
                                                                                                                                                :composite false
                                                                                                                                                :composites {:realm []
                                                                                                                                                             :client {}
                                                                                                                                                             :application {}}
                                                                                                                                                :clientRole false
                                                                                                                                                :containerId ""
                                                                                                                                                :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client" {:content-type :json
                                                                                                                              :form-params [{:id ""
                                                                                                                                             :name ""
                                                                                                                                             :description ""
                                                                                                                                             :scopeParamRequired false
                                                                                                                                             :composite false
                                                                                                                                             :composites {:realm []
                                                                                                                                                          :client {}
                                                                                                                                                          :application {}}
                                                                                                                                             :clientRole false
                                                                                                                                             :containerId ""
                                                                                                                                             :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client' -Method POST -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http POST {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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. (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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. (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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. (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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. (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/composite
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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. (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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. (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm" {:content-type :json
                                                                                                            :form-params [{:id ""
                                                                                                                           :name ""
                                                                                                                           :description ""
                                                                                                                           :scopeParamRequired false
                                                                                                                           :composite false
                                                                                                                           :composites {:realm []
                                                                                                                                        :client {}
                                                                                                                                        :application {}}
                                                                                                                           :clientRole false
                                                                                                                           :containerId ""
                                                                                                                           :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (DELETE)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm" {:content-type :json
                                                                                                                         :form-params [{:id ""
                                                                                                                                        :name ""
                                                                                                                                        :description ""
                                                                                                                                        :scopeParamRequired false
                                                                                                                                        :composite false
                                                                                                                                        :composites {:realm []
                                                                                                                                                     :client {}
                                                                                                                                                     :application {}}
                                                                                                                                        :clientRole false
                                                                                                                                        :containerId ""
                                                                                                                                        :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm" {:content-type :json
                                                                                                                      :form-params [{:id ""
                                                                                                                                     :name ""
                                                                                                                                     :description ""
                                                                                                                                     :scopeParamRequired false
                                                                                                                                     :composite false
                                                                                                                                     :composites {:realm []
                                                                                                                                                  :client {}
                                                                                                                                                  :application {}}
                                                                                                                                     :clientRole false
                                                                                                                                     :containerId ""
                                                                                                                                     :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/realm
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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. (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client" {:content-type :json
                                                                                                                      :form-params [{:id ""
                                                                                                                                     :name ""
                                                                                                                                     :description ""
                                                                                                                                     :scopeParamRequired false
                                                                                                                                     :composite false
                                                                                                                                     :composites {:realm []
                                                                                                                                                  :client {}
                                                                                                                                                  :application {}}
                                                                                                                                     :clientRole false
                                                                                                                                     :containerId ""
                                                                                                                                     :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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. (DELETE)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client" {:content-type :json
                                                                                                                                   :form-params [{:id ""
                                                                                                                                                  :name ""
                                                                                                                                                  :description ""
                                                                                                                                                  :scopeParamRequired false
                                                                                                                                                  :composite false
                                                                                                                                                  :composites {:realm []
                                                                                                                                                               :client {}
                                                                                                                                                               :application {}}
                                                                                                                                                  :clientRole false
                                                                                                                                                  :containerId ""
                                                                                                                                                  :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client
BODY json

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client" {:content-type :json
                                                                                                                                :form-params [{:id ""
                                                                                                                                               :name ""
                                                                                                                                               :description ""
                                                                                                                                               :scopeParamRequired false
                                                                                                                                               :composite false
                                                                                                                                               :composites {:realm []
                                                                                                                                                            :client {}
                                                                                                                                                            :application {}}
                                                                                                                                               :clientRole false
                                                                                                                                               :containerId ""
                                                                                                                                               :attributes {}}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"),
    Content = new StringContent("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client");
var request = new RestRequest("", Method.Delete);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"

	payload := strings.NewReader("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 280

[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
  .setHeader("content-type", "application/json")
  .setBody("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"))
    .header("content-type", "application/json")
    .method("DELETE", HttpRequest.BodyPublishers.ofString("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
  .delete(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client")
  .header("content-type", "application/json")
  .body("[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
  .asString();
const data = JSON.stringify([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client',
  method: 'DELETE',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {realm: [], client: {}, application: {}},
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]));
req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  body: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ],
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send([
  {
    id: '',
    name: '',
    description: '',
    scopeParamRequired: false,
    composite: false,
    composites: {
      realm: [],
      client: {},
      application: {}
    },
    clientRole: false,
    containerId: '',
    attributes: {}
  }
]);

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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client',
  headers: {'content-type': 'application/json'},
  data: [
    {
      id: '',
      name: '',
      description: '',
      scopeParamRequired: false,
      composite: false,
      composites: {realm: [], client: {}, application: {}},
      clientRole: false,
      containerId: '',
      attributes: {}
    }
  ]
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client';
const options = {
  method: 'DELETE',
  headers: {'content-type': 'application/json'},
  body: '[{"id":"","name":"","description":"","scopeParamRequired":false,"composite":false,"composites":{"realm":[],"client":{},"application":{}},"clientRole":false,"containerId":"","attributes":{}}]'
};

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 = @[ @{ @"id": @"", @"name": @"", @"description": @"", @"scopeParamRequired": @NO, @"composite": @NO, @"composites": @{ @"realm": @[  ], @"client": @{  }, @"application": @{  } }, @"clientRole": @NO, @"containerId": @"", @"attributes": @{  } } ];

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]" in

Client.call ~headers ~body `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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([
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'scopeParamRequired' => null,
        'composite' => null,
        'composites' => [
                'realm' => [
                                
                ],
                'client' => [
                                
                ],
                'application' => [
                                
                ]
        ],
        'clientRole' => null,
        'containerId' => '',
        'attributes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client', [
  'body' => '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client');
$request->setMethod(HTTP_METH_DELETE);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  [
    'id' => '',
    'name' => '',
    'description' => '',
    'scopeParamRequired' => null,
    'composite' => null,
    'composites' => [
        'realm' => [
                
        ],
        'client' => [
                
        ],
        'application' => [
                
        ]
    ],
    'clientRole' => null,
    'containerId' => '',
    'attributes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client' -Method DELETE -Headers $headers -ContentType 'application/json' -Body '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\n  }\n]"

headers = { 'content-type': "application/json" }

conn.request("DELETE", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"

payload = [
    {
        "id": "",
        "name": "",
        "description": "",
        "scopeParamRequired": False,
        "composite": False,
        "composites": {
            "realm": [],
            "client": {},
            "application": {}
        },
        "clientRole": False,
        "containerId": "",
        "attributes": {}
    }
]
headers = {"content-type": "application/json"}

response = requests.delete(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client"

payload <- "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-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    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client') do |req|
  req.body = "[\n  {\n    \"id\": \"\",\n    \"name\": \"\",\n    \"description\": \"\",\n    \"scopeParamRequired\": false,\n    \"composite\": false,\n    \"composites\": {\n      \"realm\": [],\n      \"client\": {},\n      \"application\": {}\n    },\n    \"clientRole\": false,\n    \"containerId\": \"\",\n    \"attributes\": {}\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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client";

    let payload = (
        json!({
            "id": "",
            "name": "",
            "description": "",
            "scopeParamRequired": false,
            "composite": false,
            "composites": json!({
                "realm": (),
                "client": json!({}),
                "application": json!({})
            }),
            "clientRole": false,
            "containerId": "",
            "attributes": 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("DELETE").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client \
  --header 'content-type: application/json' \
  --data '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]'
echo '[
  {
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": {
      "realm": [],
      "client": {},
      "application": {}
    },
    "clientRole": false,
    "containerId": "",
    "attributes": {}
  }
]' |  \
  http DELETE {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client \
  content-type:application/json
wget --quiet \
  --method DELETE \
  --header 'content-type: application/json' \
  --body-data '[\n  {\n    "id": "",\n    "name": "",\n    "description": "",\n    "scopeParamRequired": false,\n    "composite": false,\n    "composites": {\n      "realm": [],\n      "client": {},\n      "application": {}\n    },\n    "clientRole": false,\n    "containerId": "",\n    "attributes": {}\n  }\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  [
    "id": "",
    "name": "",
    "description": "",
    "scopeParamRequired": false,
    "composite": false,
    "composites": [
      "realm": [],
      "client": [],
      "application": []
    ],
    "clientRole": false,
    "containerId": "",
    "attributes": []
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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 (1)
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/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}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/scope-mappings/clients/:client/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/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 (GET)
{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available
http GET {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-id/scope-mappings/clients/:client/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-templates/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-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}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available
http GET {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-id/scope-mappings/clients/:client/available
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/client-scopes/:client-scope-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()
POST Add a social login provider to the user
{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider
QUERY PARAMS

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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider" {:content-type :json
                                                                                                            :form-params {:identityProvider ""
                                                                                                                          :userId ""
                                                                                                                          :userName ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider', [
  'body' => '{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/federated-identity/:provider", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider \
  --header 'content-type: application/json' \
  --data '{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}'
echo '{
  "identityProvider": "",
  "userId": "",
  "userName": ""
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users
BODY json

{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/: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  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/users" {:content-type :json
                                                                      :form-params {:id ""
                                                                                    :username ""
                                                                                    :firstName ""
                                                                                    :lastName ""
                                                                                    :email ""
                                                                                    :emailVerified false
                                                                                    :attributes {}
                                                                                    :userProfileMetadata {:attributes [{:name ""
                                                                                                                        :displayName ""
                                                                                                                        :required false
                                                                                                                        :readOnly false
                                                                                                                        :annotations {}
                                                                                                                        :validators {}
                                                                                                                        :group ""
                                                                                                                        :multivalued false
                                                                                                                        :defaultValue ""}]
                                                                                                          :groups [{:name ""
                                                                                                                    :displayHeader ""
                                                                                                                    :displayDescription ""
                                                                                                                    :annotations {}}]}
                                                                                    :enabled false
                                                                                    :self ""
                                                                                    :origin ""
                                                                                    :createdTimestamp 0
                                                                                    :totp false
                                                                                    :federationLink ""
                                                                                    :serviceAccountClientId ""
                                                                                    :credentials [{:id ""
                                                                                                   :type ""
                                                                                                   :userLabel ""
                                                                                                   :createdDate 0
                                                                                                   :secretData ""
                                                                                                   :credentialData ""
                                                                                                   :priority 0
                                                                                                   :value ""
                                                                                                   :temporary false
                                                                                                   :device ""
                                                                                                   :hashedSaltedValue ""
                                                                                                   :salt ""
                                                                                                   :hashIterations 0
                                                                                                   :counter 0
                                                                                                   :algorithm ""
                                                                                                   :digits 0
                                                                                                   :period 0
                                                                                                   :config {}
                                                                                                   :federationLink ""}]
                                                                                    :disableableCredentialTypes []
                                                                                    :requiredActions []
                                                                                    :federatedIdentities [{:identityProvider ""
                                                                                                           :userId ""
                                                                                                           :userName ""}]
                                                                                    :realmRoles []
                                                                                    :clientRoles {}
                                                                                    :clientConsents [{:clientId ""
                                                                                                      :grantedClientScopes []
                                                                                                      :createdDate 0
                                                                                                      :lastUpdatedDate 0
                                                                                                      :grantedRealmRoles []}]
                                                                                    :notBefore 0
                                                                                    :applicationRoles {}
                                                                                    :socialLinks [{:socialProvider ""
                                                                                                   :socialUserId ""
                                                                                                   :socialUsername ""}]
                                                                                    :groups []
                                                                                    :access {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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}}/admin/realms/:realm/users"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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}}/admin/realms/:realm/users");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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/admin/realms/:realm/users HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1777

{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/users")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/users")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  username: '',
  firstName: '',
  lastName: '',
  email: '',
  emailVerified: false,
  attributes: {},
  userProfileMetadata: {
    attributes: [
      {
        name: '',
        displayName: '',
        required: false,
        readOnly: false,
        annotations: {},
        validators: {},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [
      {
        name: '',
        displayHeader: '',
        displayDescription: '',
        annotations: {}
      }
    ]
  },
  enabled: false,
  self: '',
  origin: '',
  createdTimestamp: 0,
  totp: false,
  federationLink: '',
  serviceAccountClientId: '',
  credentials: [
    {
      id: '',
      type: '',
      userLabel: '',
      createdDate: 0,
      secretData: '',
      credentialData: '',
      priority: 0,
      value: '',
      temporary: false,
      device: '',
      hashedSaltedValue: '',
      salt: '',
      hashIterations: 0,
      counter: 0,
      algorithm: '',
      digits: 0,
      period: 0,
      config: {},
      federationLink: ''
    }
  ],
  disableableCredentialTypes: [],
  requiredActions: [],
  federatedIdentities: [
    {
      identityProvider: '',
      userId: '',
      userName: ''
    }
  ],
  realmRoles: [],
  clientRoles: {},
  clientConsents: [
    {
      clientId: '',
      grantedClientScopes: [],
      createdDate: 0,
      lastUpdatedDate: 0,
      grantedRealmRoles: []
    }
  ],
  notBefore: 0,
  applicationRoles: {},
  socialLinks: [
    {
      socialProvider: '',
      socialUserId: '',
      socialUsername: ''
    }
  ],
  groups: [],
  access: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/users');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    username: '',
    firstName: '',
    lastName: '',
    email: '',
    emailVerified: false,
    attributes: {},
    userProfileMetadata: {
      attributes: [
        {
          name: '',
          displayName: '',
          required: false,
          readOnly: false,
          annotations: {},
          validators: {},
          group: '',
          multivalued: false,
          defaultValue: ''
        }
      ],
      groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
    },
    enabled: false,
    self: '',
    origin: '',
    createdTimestamp: 0,
    totp: false,
    federationLink: '',
    serviceAccountClientId: '',
    credentials: [
      {
        id: '',
        type: '',
        userLabel: '',
        createdDate: 0,
        secretData: '',
        credentialData: '',
        priority: 0,
        value: '',
        temporary: false,
        device: '',
        hashedSaltedValue: '',
        salt: '',
        hashIterations: 0,
        counter: 0,
        algorithm: '',
        digits: 0,
        period: 0,
        config: {},
        federationLink: ''
      }
    ],
    disableableCredentialTypes: [],
    requiredActions: [],
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    realmRoles: [],
    clientRoles: {},
    clientConsents: [
      {
        clientId: '',
        grantedClientScopes: [],
        createdDate: 0,
        lastUpdatedDate: 0,
        grantedRealmRoles: []
      }
    ],
    notBefore: 0,
    applicationRoles: {},
    socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
    groups: [],
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/users',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "username": "",\n  "firstName": "",\n  "lastName": "",\n  "email": "",\n  "emailVerified": false,\n  "attributes": {},\n  "userProfileMetadata": {\n    "attributes": [\n      {\n        "name": "",\n        "displayName": "",\n        "required": false,\n        "readOnly": false,\n        "annotations": {},\n        "validators": {},\n        "group": "",\n        "multivalued": false,\n        "defaultValue": ""\n      }\n    ],\n    "groups": [\n      {\n        "name": "",\n        "displayHeader": "",\n        "displayDescription": "",\n        "annotations": {}\n      }\n    ]\n  },\n  "enabled": false,\n  "self": "",\n  "origin": "",\n  "createdTimestamp": 0,\n  "totp": false,\n  "federationLink": "",\n  "serviceAccountClientId": "",\n  "credentials": [\n    {\n      "id": "",\n      "type": "",\n      "userLabel": "",\n      "createdDate": 0,\n      "secretData": "",\n      "credentialData": "",\n      "priority": 0,\n      "value": "",\n      "temporary": false,\n      "device": "",\n      "hashedSaltedValue": "",\n      "salt": "",\n      "hashIterations": 0,\n      "counter": 0,\n      "algorithm": "",\n      "digits": 0,\n      "period": 0,\n      "config": {},\n      "federationLink": ""\n    }\n  ],\n  "disableableCredentialTypes": [],\n  "requiredActions": [],\n  "federatedIdentities": [\n    {\n      "identityProvider": "",\n      "userId": "",\n      "userName": ""\n    }\n  ],\n  "realmRoles": [],\n  "clientRoles": {},\n  "clientConsents": [\n    {\n      "clientId": "",\n      "grantedClientScopes": [],\n      "createdDate": 0,\n      "lastUpdatedDate": 0,\n      "grantedRealmRoles": []\n    }\n  ],\n  "notBefore": 0,\n  "applicationRoles": {},\n  "socialLinks": [\n    {\n      "socialProvider": "",\n      "socialUserId": "",\n      "socialUsername": ""\n    }\n  ],\n  "groups": [],\n  "access": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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({
  id: '',
  username: '',
  firstName: '',
  lastName: '',
  email: '',
  emailVerified: false,
  attributes: {},
  userProfileMetadata: {
    attributes: [
      {
        name: '',
        displayName: '',
        required: false,
        readOnly: false,
        annotations: {},
        validators: {},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
  },
  enabled: false,
  self: '',
  origin: '',
  createdTimestamp: 0,
  totp: false,
  federationLink: '',
  serviceAccountClientId: '',
  credentials: [
    {
      id: '',
      type: '',
      userLabel: '',
      createdDate: 0,
      secretData: '',
      credentialData: '',
      priority: 0,
      value: '',
      temporary: false,
      device: '',
      hashedSaltedValue: '',
      salt: '',
      hashIterations: 0,
      counter: 0,
      algorithm: '',
      digits: 0,
      period: 0,
      config: {},
      federationLink: ''
    }
  ],
  disableableCredentialTypes: [],
  requiredActions: [],
  federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
  realmRoles: [],
  clientRoles: {},
  clientConsents: [
    {
      clientId: '',
      grantedClientScopes: [],
      createdDate: 0,
      lastUpdatedDate: 0,
      grantedRealmRoles: []
    }
  ],
  notBefore: 0,
  applicationRoles: {},
  socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
  groups: [],
  access: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    username: '',
    firstName: '',
    lastName: '',
    email: '',
    emailVerified: false,
    attributes: {},
    userProfileMetadata: {
      attributes: [
        {
          name: '',
          displayName: '',
          required: false,
          readOnly: false,
          annotations: {},
          validators: {},
          group: '',
          multivalued: false,
          defaultValue: ''
        }
      ],
      groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
    },
    enabled: false,
    self: '',
    origin: '',
    createdTimestamp: 0,
    totp: false,
    federationLink: '',
    serviceAccountClientId: '',
    credentials: [
      {
        id: '',
        type: '',
        userLabel: '',
        createdDate: 0,
        secretData: '',
        credentialData: '',
        priority: 0,
        value: '',
        temporary: false,
        device: '',
        hashedSaltedValue: '',
        salt: '',
        hashIterations: 0,
        counter: 0,
        algorithm: '',
        digits: 0,
        period: 0,
        config: {},
        federationLink: ''
      }
    ],
    disableableCredentialTypes: [],
    requiredActions: [],
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    realmRoles: [],
    clientRoles: {},
    clientConsents: [
      {
        clientId: '',
        grantedClientScopes: [],
        createdDate: 0,
        lastUpdatedDate: 0,
        grantedRealmRoles: []
      }
    ],
    notBefore: 0,
    applicationRoles: {},
    socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
    groups: [],
    access: {}
  },
  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}}/admin/realms/:realm/users');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  username: '',
  firstName: '',
  lastName: '',
  email: '',
  emailVerified: false,
  attributes: {},
  userProfileMetadata: {
    attributes: [
      {
        name: '',
        displayName: '',
        required: false,
        readOnly: false,
        annotations: {},
        validators: {},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [
      {
        name: '',
        displayHeader: '',
        displayDescription: '',
        annotations: {}
      }
    ]
  },
  enabled: false,
  self: '',
  origin: '',
  createdTimestamp: 0,
  totp: false,
  federationLink: '',
  serviceAccountClientId: '',
  credentials: [
    {
      id: '',
      type: '',
      userLabel: '',
      createdDate: 0,
      secretData: '',
      credentialData: '',
      priority: 0,
      value: '',
      temporary: false,
      device: '',
      hashedSaltedValue: '',
      salt: '',
      hashIterations: 0,
      counter: 0,
      algorithm: '',
      digits: 0,
      period: 0,
      config: {},
      federationLink: ''
    }
  ],
  disableableCredentialTypes: [],
  requiredActions: [],
  federatedIdentities: [
    {
      identityProvider: '',
      userId: '',
      userName: ''
    }
  ],
  realmRoles: [],
  clientRoles: {},
  clientConsents: [
    {
      clientId: '',
      grantedClientScopes: [],
      createdDate: 0,
      lastUpdatedDate: 0,
      grantedRealmRoles: []
    }
  ],
  notBefore: 0,
  applicationRoles: {},
  socialLinks: [
    {
      socialProvider: '',
      socialUserId: '',
      socialUsername: ''
    }
  ],
  groups: [],
  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: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    username: '',
    firstName: '',
    lastName: '',
    email: '',
    emailVerified: false,
    attributes: {},
    userProfileMetadata: {
      attributes: [
        {
          name: '',
          displayName: '',
          required: false,
          readOnly: false,
          annotations: {},
          validators: {},
          group: '',
          multivalued: false,
          defaultValue: ''
        }
      ],
      groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
    },
    enabled: false,
    self: '',
    origin: '',
    createdTimestamp: 0,
    totp: false,
    federationLink: '',
    serviceAccountClientId: '',
    credentials: [
      {
        id: '',
        type: '',
        userLabel: '',
        createdDate: 0,
        secretData: '',
        credentialData: '',
        priority: 0,
        value: '',
        temporary: false,
        device: '',
        hashedSaltedValue: '',
        salt: '',
        hashIterations: 0,
        counter: 0,
        algorithm: '',
        digits: 0,
        period: 0,
        config: {},
        federationLink: ''
      }
    ],
    disableableCredentialTypes: [],
    requiredActions: [],
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    realmRoles: [],
    clientRoles: {},
    clientConsents: [
      {
        clientId: '',
        grantedClientScopes: [],
        createdDate: 0,
        lastUpdatedDate: 0,
        grantedRealmRoles: []
      }
    ],
    notBefore: 0,
    applicationRoles: {},
    socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
    groups: [],
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{}}'
};

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 = @{ @"id": @"",
                              @"username": @"",
                              @"firstName": @"",
                              @"lastName": @"",
                              @"email": @"",
                              @"emailVerified": @NO,
                              @"attributes": @{  },
                              @"userProfileMetadata": @{ @"attributes": @[ @{ @"name": @"", @"displayName": @"", @"required": @NO, @"readOnly": @NO, @"annotations": @{  }, @"validators": @{  }, @"group": @"", @"multivalued": @NO, @"defaultValue": @"" } ], @"groups": @[ @{ @"name": @"", @"displayHeader": @"", @"displayDescription": @"", @"annotations": @{  } } ] },
                              @"enabled": @NO,
                              @"self": @"",
                              @"origin": @"",
                              @"createdTimestamp": @0,
                              @"totp": @NO,
                              @"federationLink": @"",
                              @"serviceAccountClientId": @"",
                              @"credentials": @[ @{ @"id": @"", @"type": @"", @"userLabel": @"", @"createdDate": @0, @"secretData": @"", @"credentialData": @"", @"priority": @0, @"value": @"", @"temporary": @NO, @"device": @"", @"hashedSaltedValue": @"", @"salt": @"", @"hashIterations": @0, @"counter": @0, @"algorithm": @"", @"digits": @0, @"period": @0, @"config": @{  }, @"federationLink": @"" } ],
                              @"disableableCredentialTypes": @[  ],
                              @"requiredActions": @[  ],
                              @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ],
                              @"realmRoles": @[  ],
                              @"clientRoles": @{  },
                              @"clientConsents": @[ @{ @"clientId": @"", @"grantedClientScopes": @[  ], @"createdDate": @0, @"lastUpdatedDate": @0, @"grantedRealmRoles": @[  ] } ],
                              @"notBefore": @0,
                              @"applicationRoles": @{  },
                              @"socialLinks": @[ @{ @"socialProvider": @"", @"socialUserId": @"", @"socialUsername": @"" } ],
                              @"groups": @[  ],
                              @"access": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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([
    'id' => '',
    'username' => '',
    'firstName' => '',
    'lastName' => '',
    'email' => '',
    'emailVerified' => null,
    'attributes' => [
        
    ],
    'userProfileMetadata' => [
        'attributes' => [
                [
                                'name' => '',
                                'displayName' => '',
                                'required' => null,
                                'readOnly' => null,
                                'annotations' => [
                                                                
                                ],
                                'validators' => [
                                                                
                                ],
                                'group' => '',
                                'multivalued' => null,
                                'defaultValue' => ''
                ]
        ],
        'groups' => [
                [
                                'name' => '',
                                'displayHeader' => '',
                                'displayDescription' => '',
                                'annotations' => [
                                                                
                                ]
                ]
        ]
    ],
    'enabled' => null,
    'self' => '',
    'origin' => '',
    'createdTimestamp' => 0,
    'totp' => null,
    'federationLink' => '',
    'serviceAccountClientId' => '',
    'credentials' => [
        [
                'id' => '',
                'type' => '',
                'userLabel' => '',
                'createdDate' => 0,
                'secretData' => '',
                'credentialData' => '',
                'priority' => 0,
                'value' => '',
                'temporary' => null,
                'device' => '',
                'hashedSaltedValue' => '',
                'salt' => '',
                'hashIterations' => 0,
                'counter' => 0,
                'algorithm' => '',
                'digits' => 0,
                'period' => 0,
                'config' => [
                                
                ],
                'federationLink' => ''
        ]
    ],
    'disableableCredentialTypes' => [
        
    ],
    'requiredActions' => [
        
    ],
    'federatedIdentities' => [
        [
                'identityProvider' => '',
                'userId' => '',
                'userName' => ''
        ]
    ],
    'realmRoles' => [
        
    ],
    'clientRoles' => [
        
    ],
    'clientConsents' => [
        [
                'clientId' => '',
                'grantedClientScopes' => [
                                
                ],
                'createdDate' => 0,
                'lastUpdatedDate' => 0,
                'grantedRealmRoles' => [
                                
                ]
        ]
    ],
    'notBefore' => 0,
    'applicationRoles' => [
        
    ],
    'socialLinks' => [
        [
                'socialProvider' => '',
                'socialUserId' => '',
                'socialUsername' => ''
        ]
    ],
    'groups' => [
        
    ],
    'access' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/users', [
  'body' => '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'username' => '',
  'firstName' => '',
  'lastName' => '',
  'email' => '',
  'emailVerified' => null,
  'attributes' => [
    
  ],
  'userProfileMetadata' => [
    'attributes' => [
        [
                'name' => '',
                'displayName' => '',
                'required' => null,
                'readOnly' => null,
                'annotations' => [
                                
                ],
                'validators' => [
                                
                ],
                'group' => '',
                'multivalued' => null,
                'defaultValue' => ''
        ]
    ],
    'groups' => [
        [
                'name' => '',
                'displayHeader' => '',
                'displayDescription' => '',
                'annotations' => [
                                
                ]
        ]
    ]
  ],
  'enabled' => null,
  'self' => '',
  'origin' => '',
  'createdTimestamp' => 0,
  'totp' => null,
  'federationLink' => '',
  'serviceAccountClientId' => '',
  'credentials' => [
    [
        'id' => '',
        'type' => '',
        'userLabel' => '',
        'createdDate' => 0,
        'secretData' => '',
        'credentialData' => '',
        'priority' => 0,
        'value' => '',
        'temporary' => null,
        'device' => '',
        'hashedSaltedValue' => '',
        'salt' => '',
        'hashIterations' => 0,
        'counter' => 0,
        'algorithm' => '',
        'digits' => 0,
        'period' => 0,
        'config' => [
                
        ],
        'federationLink' => ''
    ]
  ],
  'disableableCredentialTypes' => [
    
  ],
  'requiredActions' => [
    
  ],
  'federatedIdentities' => [
    [
        'identityProvider' => '',
        'userId' => '',
        'userName' => ''
    ]
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'clientConsents' => [
    [
        'clientId' => '',
        'grantedClientScopes' => [
                
        ],
        'createdDate' => 0,
        'lastUpdatedDate' => 0,
        'grantedRealmRoles' => [
                
        ]
    ]
  ],
  'notBefore' => 0,
  'applicationRoles' => [
    
  ],
  'socialLinks' => [
    [
        'socialProvider' => '',
        'socialUserId' => '',
        'socialUsername' => ''
    ]
  ],
  'groups' => [
    
  ],
  'access' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'username' => '',
  'firstName' => '',
  'lastName' => '',
  'email' => '',
  'emailVerified' => null,
  'attributes' => [
    
  ],
  'userProfileMetadata' => [
    'attributes' => [
        [
                'name' => '',
                'displayName' => '',
                'required' => null,
                'readOnly' => null,
                'annotations' => [
                                
                ],
                'validators' => [
                                
                ],
                'group' => '',
                'multivalued' => null,
                'defaultValue' => ''
        ]
    ],
    'groups' => [
        [
                'name' => '',
                'displayHeader' => '',
                'displayDescription' => '',
                'annotations' => [
                                
                ]
        ]
    ]
  ],
  'enabled' => null,
  'self' => '',
  'origin' => '',
  'createdTimestamp' => 0,
  'totp' => null,
  'federationLink' => '',
  'serviceAccountClientId' => '',
  'credentials' => [
    [
        'id' => '',
        'type' => '',
        'userLabel' => '',
        'createdDate' => 0,
        'secretData' => '',
        'credentialData' => '',
        'priority' => 0,
        'value' => '',
        'temporary' => null,
        'device' => '',
        'hashedSaltedValue' => '',
        'salt' => '',
        'hashIterations' => 0,
        'counter' => 0,
        'algorithm' => '',
        'digits' => 0,
        'period' => 0,
        'config' => [
                
        ],
        'federationLink' => ''
    ]
  ],
  'disableableCredentialTypes' => [
    
  ],
  'requiredActions' => [
    
  ],
  'federatedIdentities' => [
    [
        'identityProvider' => '',
        'userId' => '',
        'userName' => ''
    ]
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'clientConsents' => [
    [
        'clientId' => '',
        'grantedClientScopes' => [
                
        ],
        'createdDate' => 0,
        'lastUpdatedDate' => 0,
        'grantedRealmRoles' => [
                
        ]
    ]
  ],
  'notBefore' => 0,
  'applicationRoles' => [
    
  ],
  'socialLinks' => [
    [
        'socialProvider' => '',
        'socialUserId' => '',
        'socialUsername' => ''
    ]
  ],
  'groups' => [
    
  ],
  'access' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/users", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users"

payload = {
    "id": "",
    "username": "",
    "firstName": "",
    "lastName": "",
    "email": "",
    "emailVerified": False,
    "attributes": {},
    "userProfileMetadata": {
        "attributes": [
            {
                "name": "",
                "displayName": "",
                "required": False,
                "readOnly": False,
                "annotations": {},
                "validators": {},
                "group": "",
                "multivalued": False,
                "defaultValue": ""
            }
        ],
        "groups": [
            {
                "name": "",
                "displayHeader": "",
                "displayDescription": "",
                "annotations": {}
            }
        ]
    },
    "enabled": False,
    "self": "",
    "origin": "",
    "createdTimestamp": 0,
    "totp": False,
    "federationLink": "",
    "serviceAccountClientId": "",
    "credentials": [
        {
            "id": "",
            "type": "",
            "userLabel": "",
            "createdDate": 0,
            "secretData": "",
            "credentialData": "",
            "priority": 0,
            "value": "",
            "temporary": False,
            "device": "",
            "hashedSaltedValue": "",
            "salt": "",
            "hashIterations": 0,
            "counter": 0,
            "algorithm": "",
            "digits": 0,
            "period": 0,
            "config": {},
            "federationLink": ""
        }
    ],
    "disableableCredentialTypes": [],
    "requiredActions": [],
    "federatedIdentities": [
        {
            "identityProvider": "",
            "userId": "",
            "userName": ""
        }
    ],
    "realmRoles": [],
    "clientRoles": {},
    "clientConsents": [
        {
            "clientId": "",
            "grantedClientScopes": [],
            "createdDate": 0,
            "lastUpdatedDate": 0,
            "grantedRealmRoles": []
        }
    ],
    "notBefore": 0,
    "applicationRoles": {},
    "socialLinks": [
        {
            "socialProvider": "",
            "socialUserId": "",
            "socialUsername": ""
        }
    ],
    "groups": [],
    "access": {}
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users"

payload <- "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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}}/admin/realms/: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  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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/admin/realms/:realm/users') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users";

    let payload = json!({
        "id": "",
        "username": "",
        "firstName": "",
        "lastName": "",
        "email": "",
        "emailVerified": false,
        "attributes": json!({}),
        "userProfileMetadata": json!({
            "attributes": (
                json!({
                    "name": "",
                    "displayName": "",
                    "required": false,
                    "readOnly": false,
                    "annotations": json!({}),
                    "validators": json!({}),
                    "group": "",
                    "multivalued": false,
                    "defaultValue": ""
                })
            ),
            "groups": (
                json!({
                    "name": "",
                    "displayHeader": "",
                    "displayDescription": "",
                    "annotations": json!({})
                })
            )
        }),
        "enabled": false,
        "self": "",
        "origin": "",
        "createdTimestamp": 0,
        "totp": false,
        "federationLink": "",
        "serviceAccountClientId": "",
        "credentials": (
            json!({
                "id": "",
                "type": "",
                "userLabel": "",
                "createdDate": 0,
                "secretData": "",
                "credentialData": "",
                "priority": 0,
                "value": "",
                "temporary": false,
                "device": "",
                "hashedSaltedValue": "",
                "salt": "",
                "hashIterations": 0,
                "counter": 0,
                "algorithm": "",
                "digits": 0,
                "period": 0,
                "config": json!({}),
                "federationLink": ""
            })
        ),
        "disableableCredentialTypes": (),
        "requiredActions": (),
        "federatedIdentities": (
            json!({
                "identityProvider": "",
                "userId": "",
                "userName": ""
            })
        ),
        "realmRoles": (),
        "clientRoles": json!({}),
        "clientConsents": (
            json!({
                "clientId": "",
                "grantedClientScopes": (),
                "createdDate": 0,
                "lastUpdatedDate": 0,
                "grantedRealmRoles": ()
            })
        ),
        "notBefore": 0,
        "applicationRoles": json!({}),
        "socialLinks": (
            json!({
                "socialProvider": "",
                "socialUserId": "",
                "socialUsername": ""
            })
        ),
        "groups": (),
        "access": 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}}/admin/realms/:realm/users \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}'
echo '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/users \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "username": "",\n  "firstName": "",\n  "lastName": "",\n  "email": "",\n  "emailVerified": false,\n  "attributes": {},\n  "userProfileMetadata": {\n    "attributes": [\n      {\n        "name": "",\n        "displayName": "",\n        "required": false,\n        "readOnly": false,\n        "annotations": {},\n        "validators": {},\n        "group": "",\n        "multivalued": false,\n        "defaultValue": ""\n      }\n    ],\n    "groups": [\n      {\n        "name": "",\n        "displayHeader": "",\n        "displayDescription": "",\n        "annotations": {}\n      }\n    ]\n  },\n  "enabled": false,\n  "self": "",\n  "origin": "",\n  "createdTimestamp": 0,\n  "totp": false,\n  "federationLink": "",\n  "serviceAccountClientId": "",\n  "credentials": [\n    {\n      "id": "",\n      "type": "",\n      "userLabel": "",\n      "createdDate": 0,\n      "secretData": "",\n      "credentialData": "",\n      "priority": 0,\n      "value": "",\n      "temporary": false,\n      "device": "",\n      "hashedSaltedValue": "",\n      "salt": "",\n      "hashIterations": 0,\n      "counter": 0,\n      "algorithm": "",\n      "digits": 0,\n      "period": 0,\n      "config": {},\n      "federationLink": ""\n    }\n  ],\n  "disableableCredentialTypes": [],\n  "requiredActions": [],\n  "federatedIdentities": [\n    {\n      "identityProvider": "",\n      "userId": "",\n      "userName": ""\n    }\n  ],\n  "realmRoles": [],\n  "clientRoles": {},\n  "clientConsents": [\n    {\n      "clientId": "",\n      "grantedClientScopes": [],\n      "createdDate": 0,\n      "lastUpdatedDate": 0,\n      "grantedRealmRoles": []\n    }\n  ],\n  "notBefore": 0,\n  "applicationRoles": {},\n  "socialLinks": [\n    {\n      "socialProvider": "",\n      "socialUserId": "",\n      "socialUsername": ""\n    }\n  ],\n  "groups": [],\n  "access": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": [],
  "userProfileMetadata": [
    "attributes": [
      [
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": [],
        "validators": [],
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      ]
    ],
    "groups": [
      [
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": []
      ]
    ]
  ],
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    [
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": [],
      "federationLink": ""
    ]
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    [
      "identityProvider": "",
      "userId": "",
      "userName": ""
    ]
  ],
  "realmRoles": [],
  "clientRoles": [],
  "clientConsents": [
    [
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    ]
  ],
  "notBefore": 0,
  "applicationRoles": [],
  "socialLinks": [
    [
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    ]
  ],
  "groups": [],
  "access": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users/:user-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/users/:user-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/:user-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/users/:user-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/users/:user-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id
http DELETE {{baseUrl}}/admin/realms/:realm/users/:user-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/disable-credential-types" {:content-type :json
                                                                                                       :form-params [{}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/disable-credential-types")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/disable-credential-types');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/disable-credential-types', [
  'body' => '[
  {}
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/disable-credential-types' -Method PUT -Headers $headers -ContentType 'application/json' -Body '[
  {}
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/disable-credential-types", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/disable-credential-types \
  --header 'content-type: application/json' \
  --data '[
  {}
]'
echo '[
  {}
]' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/users/:user-id/disable-credential-types \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '[\n  {}\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/consents HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/consents'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/consents');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/consents');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/consents' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/consents' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/consents")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/consents') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/consents
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/consents
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid
QUERY PARAMS

clientUuid
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid"

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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid"

	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/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid"))
    .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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid")
  .asString();
const 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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid';
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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid');

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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid';
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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid"]
                                                       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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid",
  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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid")

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/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid";

    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}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-id/offline-sessions/:clientUuid")! 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}}/admin/realms/:realm/users/:user-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/:user-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/sessions
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/sessions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/sessions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/sessions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/sessions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/sessions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/sessions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/sessions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/sessions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/sessions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/sessions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/sessions
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/sessions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/sessions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/federated-identity HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/federated-identity")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/federated-identity') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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 the UserProfileMetadata from the configuration
{{baseUrl}}/admin/realms/:realm/users/profile/metadata
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/profile/metadata");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/profile/metadata")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/profile/metadata"

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}}/admin/realms/:realm/users/profile/metadata"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/profile/metadata");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/profile/metadata"

	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/admin/realms/:realm/users/profile/metadata HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/profile/metadata")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/profile/metadata"))
    .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}}/admin/realms/:realm/users/profile/metadata")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/profile/metadata")
  .asString();
const 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}}/admin/realms/:realm/users/profile/metadata');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/profile/metadata'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/profile/metadata';
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}}/admin/realms/:realm/users/profile/metadata',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/profile/metadata")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/users/profile/metadata',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/users/profile/metadata'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/users/profile/metadata');

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}}/admin/realms/:realm/users/profile/metadata'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/profile/metadata';
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}}/admin/realms/:realm/users/profile/metadata"]
                                                       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}}/admin/realms/:realm/users/profile/metadata" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/profile/metadata",
  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}}/admin/realms/:realm/users/profile/metadata');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/profile/metadata');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/profile/metadata');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/profile/metadata' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/profile/metadata' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/profile/metadata")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/profile/metadata"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/profile/metadata"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/profile/metadata")

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/admin/realms/:realm/users/profile/metadata') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/profile/metadata";

    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}}/admin/realms/:realm/users/profile/metadata
http GET {{baseUrl}}/admin/realms/:realm/users/profile/metadata
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/profile/metadata
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/profile/metadata")! 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 configuration for the user profile
{{baseUrl}}/admin/realms/:realm/users/profile
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/profile");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/profile")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/profile"

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}}/admin/realms/:realm/users/profile"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/profile");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/profile"

	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/admin/realms/:realm/users/profile HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/profile")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/profile"))
    .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}}/admin/realms/:realm/users/profile")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/profile")
  .asString();
const 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}}/admin/realms/:realm/users/profile');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/profile'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/profile';
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}}/admin/realms/:realm/users/profile',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/profile")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/users/profile',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/users/profile'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/users/profile');

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}}/admin/realms/:realm/users/profile'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/profile';
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}}/admin/realms/:realm/users/profile"]
                                                       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}}/admin/realms/:realm/users/profile" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/profile",
  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}}/admin/realms/:realm/users/profile');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/profile');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/profile');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/profile' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/profile' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/profile")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/profile"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/profile"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/profile")

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/admin/realms/:realm/users/profile') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/profile";

    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}}/admin/realms/:realm/users/profile
http GET {{baseUrl}}/admin/realms/:realm/users/profile
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/profile
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/profile")! 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 stream of users, filtered according to query parameters.
{{baseUrl}}/admin/realms/:realm/users
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/: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/admin/realms/:realm/users HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/admin/realms/:realm/users'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/users') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users
http GET {{baseUrl}}/admin/realms/:realm/users
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users/:user-id/impersonation
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/impersonation");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/impersonation HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/impersonation")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/impersonation');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/impersonation',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/impersonation" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/impersonation');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/users/:user-id/impersonation")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/impersonation') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/impersonation
http POST {{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/impersonation
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst
QUERY PARAMS

credentialId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst
http POST {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveToFirst
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId
QUERY PARAMS

credentialId
newPreviousCredentialId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId
http POST {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/moveAfter/:newPreviousCredentialId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId
QUERY PARAMS

credentialId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/credentials/:credentialId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/users/:user-id/credentials/:credentialId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId
http DELETE {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider
QUERY PARAMS

provider
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/federated-identity/:provider HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/users/:user-id/federated-identity/:provider")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/federated-identity/:provider
http DELETE {{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/federated-identity/:provider
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/logout
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/logout");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/users/:user-id/logout")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/logout");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/logout HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/users/:user-id/logout")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/logout")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/logout');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/logout'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/logout',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/logout" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/logout');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/logout');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/logout');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/logout' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/logout' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/users/:user-id/logout")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/logout"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/logout"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/logout') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/logout
http POST {{baseUrl}}/admin/realms/:realm/users/:user-id/logout
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/logout
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/configured-user-storage-credential-types
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/count")
require "http/client"

url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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/admin/realms/:realm/users/count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users/count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users/count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users/count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/: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/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/: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}}/admin/realms/:realm/users/count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users/count');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/: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/admin/realms/:realm/users/count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users/count
http GET {{baseUrl}}/admin/realms/:realm/users/count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/: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}}/admin/realms/:realm/users/:user-id/consents/:client");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/consents/:client HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents/:client")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents/:client');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents/:client',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents/:client" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents/:client');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/users/:user-id/consents/:client")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/consents/:client
http DELETE {{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/consents/:client
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/execute-actions-email" {:content-type :json
                                                                                                    :form-params [{}]})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/execute-actions-email")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/execute-actions-email');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/execute-actions-email', [
  'body' => '[
  {}
]',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/execute-actions-email' -Method PUT -Headers $headers -ContentType 'application/json' -Body '[
  {}
]'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/execute-actions-email", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/execute-actions-email \
  --header 'content-type: application/json' \
  --data '[
  {}
]'
echo '[
  {}
]' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/users/:user-id/execute-actions-email \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '[\n  {}\n]' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/reset-password-email");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-email"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email");
var request = new RestRequest("", Method.Put);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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/admin/realms/:realm/users/:user-id/reset-password-email HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-email")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-email');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-email',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-email'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-email" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-email');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/users/:user-id/reset-password-email")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-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}}/admin/realms/:realm/users/:user-id/reset-password-email
http PUT {{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-email
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password-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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/send-verify-email HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/send-verify-email")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/send-verify-email');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/send-verify-email',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/send-verify-email" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/send-verify-email');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/users/:user-id/send-verify-email")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/send-verify-email
http PUT {{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/send-verify-email
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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 the configuration for the user profile
{{baseUrl}}/admin/realms/:realm/users/profile
BODY json

{
  "attributes": [
    {
      "name": "",
      "displayName": "",
      "validations": {},
      "annotations": {},
      "required": {
        "roles": [],
        "scopes": []
      },
      "permissions": {
        "view": [],
        "edit": []
      },
      "selector": {
        "scopes": []
      },
      "group": "",
      "multivalued": false,
      "defaultValue": ""
    }
  ],
  "groups": [
    {
      "name": "",
      "displayHeader": "",
      "displayDescription": "",
      "annotations": {}
    }
  ],
  "unmanagedAttributePolicy": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/profile");

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    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/users/profile" {:content-type :json
                                                                             :form-params {:attributes [{:name ""
                                                                                                         :displayName ""
                                                                                                         :validations {}
                                                                                                         :annotations {}
                                                                                                         :required {:roles []
                                                                                                                    :scopes []}
                                                                                                         :permissions {:view []
                                                                                                                       :edit []}
                                                                                                         :selector {:scopes []}
                                                                                                         :group ""
                                                                                                         :multivalued false
                                                                                                         :defaultValue ""}]
                                                                                           :groups [{:name ""
                                                                                                     :displayHeader ""
                                                                                                     :displayDescription ""
                                                                                                     :annotations {}}]
                                                                                           :unmanagedAttributePolicy ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/profile"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\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}}/admin/realms/:realm/users/profile"),
    Content = new StringContent("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\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}}/admin/realms/:realm/users/profile");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/profile"

	payload := strings.NewReader("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\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/admin/realms/:realm/users/profile HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 560

{
  "attributes": [
    {
      "name": "",
      "displayName": "",
      "validations": {},
      "annotations": {},
      "required": {
        "roles": [],
        "scopes": []
      },
      "permissions": {
        "view": [],
        "edit": []
      },
      "selector": {
        "scopes": []
      },
      "group": "",
      "multivalued": false,
      "defaultValue": ""
    }
  ],
  "groups": [
    {
      "name": "",
      "displayHeader": "",
      "displayDescription": "",
      "annotations": {}
    }
  ],
  "unmanagedAttributePolicy": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/users/profile")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/profile"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\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    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/profile")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/profile")
  .header("content-type", "application/json")
  .body("{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  attributes: [
    {
      name: '',
      displayName: '',
      validations: {},
      annotations: {},
      required: {
        roles: [],
        scopes: []
      },
      permissions: {
        view: [],
        edit: []
      },
      selector: {
        scopes: []
      },
      group: '',
      multivalued: false,
      defaultValue: ''
    }
  ],
  groups: [
    {
      name: '',
      displayHeader: '',
      displayDescription: '',
      annotations: {}
    }
  ],
  unmanagedAttributePolicy: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/users/profile');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/profile',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: [
      {
        name: '',
        displayName: '',
        validations: {},
        annotations: {},
        required: {roles: [], scopes: []},
        permissions: {view: [], edit: []},
        selector: {scopes: []},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}],
    unmanagedAttributePolicy: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/profile';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":[{"name":"","displayName":"","validations":{},"annotations":{},"required":{"roles":[],"scopes":[]},"permissions":{"view":[],"edit":[]},"selector":{"scopes":[]},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}],"unmanagedAttributePolicy":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/users/profile',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "attributes": [\n    {\n      "name": "",\n      "displayName": "",\n      "validations": {},\n      "annotations": {},\n      "required": {\n        "roles": [],\n        "scopes": []\n      },\n      "permissions": {\n        "view": [],\n        "edit": []\n      },\n      "selector": {\n        "scopes": []\n      },\n      "group": "",\n      "multivalued": false,\n      "defaultValue": ""\n    }\n  ],\n  "groups": [\n    {\n      "name": "",\n      "displayHeader": "",\n      "displayDescription": "",\n      "annotations": {}\n    }\n  ],\n  "unmanagedAttributePolicy": ""\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    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/profile")
  .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/admin/realms/:realm/users/profile',
  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: [
    {
      name: '',
      displayName: '',
      validations: {},
      annotations: {},
      required: {roles: [], scopes: []},
      permissions: {view: [], edit: []},
      selector: {scopes: []},
      group: '',
      multivalued: false,
      defaultValue: ''
    }
  ],
  groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}],
  unmanagedAttributePolicy: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/profile',
  headers: {'content-type': 'application/json'},
  body: {
    attributes: [
      {
        name: '',
        displayName: '',
        validations: {},
        annotations: {},
        required: {roles: [], scopes: []},
        permissions: {view: [], edit: []},
        selector: {scopes: []},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}],
    unmanagedAttributePolicy: ''
  },
  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}}/admin/realms/:realm/users/profile');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  attributes: [
    {
      name: '',
      displayName: '',
      validations: {},
      annotations: {},
      required: {
        roles: [],
        scopes: []
      },
      permissions: {
        view: [],
        edit: []
      },
      selector: {
        scopes: []
      },
      group: '',
      multivalued: false,
      defaultValue: ''
    }
  ],
  groups: [
    {
      name: '',
      displayHeader: '',
      displayDescription: '',
      annotations: {}
    }
  ],
  unmanagedAttributePolicy: ''
});

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}}/admin/realms/:realm/users/profile',
  headers: {'content-type': 'application/json'},
  data: {
    attributes: [
      {
        name: '',
        displayName: '',
        validations: {},
        annotations: {},
        required: {roles: [], scopes: []},
        permissions: {view: [], edit: []},
        selector: {scopes: []},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}],
    unmanagedAttributePolicy: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/profile';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"attributes":[{"name":"","displayName":"","validations":{},"annotations":{},"required":{"roles":[],"scopes":[]},"permissions":{"view":[],"edit":[]},"selector":{"scopes":[]},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}],"unmanagedAttributePolicy":""}'
};

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": @[ @{ @"name": @"", @"displayName": @"", @"validations": @{  }, @"annotations": @{  }, @"required": @{ @"roles": @[  ], @"scopes": @[  ] }, @"permissions": @{ @"view": @[  ], @"edit": @[  ] }, @"selector": @{ @"scopes": @[  ] }, @"group": @"", @"multivalued": @NO, @"defaultValue": @"" } ],
                              @"groups": @[ @{ @"name": @"", @"displayHeader": @"", @"displayDescription": @"", @"annotations": @{  } } ],
                              @"unmanagedAttributePolicy": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/users/profile"]
                                                       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}}/admin/realms/:realm/users/profile" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/profile",
  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' => [
        [
                'name' => '',
                'displayName' => '',
                'validations' => [
                                
                ],
                'annotations' => [
                                
                ],
                'required' => [
                                'roles' => [
                                                                
                                ],
                                'scopes' => [
                                                                
                                ]
                ],
                'permissions' => [
                                'view' => [
                                                                
                                ],
                                'edit' => [
                                                                
                                ]
                ],
                'selector' => [
                                'scopes' => [
                                                                
                                ]
                ],
                'group' => '',
                'multivalued' => null,
                'defaultValue' => ''
        ]
    ],
    'groups' => [
        [
                'name' => '',
                'displayHeader' => '',
                'displayDescription' => '',
                'annotations' => [
                                
                ]
        ]
    ],
    'unmanagedAttributePolicy' => ''
  ]),
  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}}/admin/realms/:realm/users/profile', [
  'body' => '{
  "attributes": [
    {
      "name": "",
      "displayName": "",
      "validations": {},
      "annotations": {},
      "required": {
        "roles": [],
        "scopes": []
      },
      "permissions": {
        "view": [],
        "edit": []
      },
      "selector": {
        "scopes": []
      },
      "group": "",
      "multivalued": false,
      "defaultValue": ""
    }
  ],
  "groups": [
    {
      "name": "",
      "displayHeader": "",
      "displayDescription": "",
      "annotations": {}
    }
  ],
  "unmanagedAttributePolicy": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/profile');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'attributes' => [
    [
        'name' => '',
        'displayName' => '',
        'validations' => [
                
        ],
        'annotations' => [
                
        ],
        'required' => [
                'roles' => [
                                
                ],
                'scopes' => [
                                
                ]
        ],
        'permissions' => [
                'view' => [
                                
                ],
                'edit' => [
                                
                ]
        ],
        'selector' => [
                'scopes' => [
                                
                ]
        ],
        'group' => '',
        'multivalued' => null,
        'defaultValue' => ''
    ]
  ],
  'groups' => [
    [
        'name' => '',
        'displayHeader' => '',
        'displayDescription' => '',
        'annotations' => [
                
        ]
    ]
  ],
  'unmanagedAttributePolicy' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'attributes' => [
    [
        'name' => '',
        'displayName' => '',
        'validations' => [
                
        ],
        'annotations' => [
                
        ],
        'required' => [
                'roles' => [
                                
                ],
                'scopes' => [
                                
                ]
        ],
        'permissions' => [
                'view' => [
                                
                ],
                'edit' => [
                                
                ]
        ],
        'selector' => [
                'scopes' => [
                                
                ]
        ],
        'group' => '',
        'multivalued' => null,
        'defaultValue' => ''
    ]
  ],
  'groups' => [
    [
        'name' => '',
        'displayHeader' => '',
        'displayDescription' => '',
        'annotations' => [
                
        ]
    ]
  ],
  'unmanagedAttributePolicy' => ''
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/profile');
$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}}/admin/realms/:realm/users/profile' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": [
    {
      "name": "",
      "displayName": "",
      "validations": {},
      "annotations": {},
      "required": {
        "roles": [],
        "scopes": []
      },
      "permissions": {
        "view": [],
        "edit": []
      },
      "selector": {
        "scopes": []
      },
      "group": "",
      "multivalued": false,
      "defaultValue": ""
    }
  ],
  "groups": [
    {
      "name": "",
      "displayHeader": "",
      "displayDescription": "",
      "annotations": {}
    }
  ],
  "unmanagedAttributePolicy": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/profile' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "attributes": [
    {
      "name": "",
      "displayName": "",
      "validations": {},
      "annotations": {},
      "required": {
        "roles": [],
        "scopes": []
      },
      "permissions": {
        "view": [],
        "edit": []
      },
      "selector": {
        "scopes": []
      },
      "group": "",
      "multivalued": false,
      "defaultValue": ""
    }
  ],
  "groups": [
    {
      "name": "",
      "displayHeader": "",
      "displayDescription": "",
      "annotations": {}
    }
  ],
  "unmanagedAttributePolicy": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/users/profile", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/profile"

payload = {
    "attributes": [
        {
            "name": "",
            "displayName": "",
            "validations": {},
            "annotations": {},
            "required": {
                "roles": [],
                "scopes": []
            },
            "permissions": {
                "view": [],
                "edit": []
            },
            "selector": { "scopes": [] },
            "group": "",
            "multivalued": False,
            "defaultValue": ""
        }
    ],
    "groups": [
        {
            "name": "",
            "displayHeader": "",
            "displayDescription": "",
            "annotations": {}
        }
    ],
    "unmanagedAttributePolicy": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/profile"

payload <- "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\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}}/admin/realms/:realm/users/profile")

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    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\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/admin/realms/:realm/users/profile') do |req|
  req.body = "{\n  \"attributes\": [\n    {\n      \"name\": \"\",\n      \"displayName\": \"\",\n      \"validations\": {},\n      \"annotations\": {},\n      \"required\": {\n        \"roles\": [],\n        \"scopes\": []\n      },\n      \"permissions\": {\n        \"view\": [],\n        \"edit\": []\n      },\n      \"selector\": {\n        \"scopes\": []\n      },\n      \"group\": \"\",\n      \"multivalued\": false,\n      \"defaultValue\": \"\"\n    }\n  ],\n  \"groups\": [\n    {\n      \"name\": \"\",\n      \"displayHeader\": \"\",\n      \"displayDescription\": \"\",\n      \"annotations\": {}\n    }\n  ],\n  \"unmanagedAttributePolicy\": \"\"\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}}/admin/realms/:realm/users/profile";

    let payload = json!({
        "attributes": (
            json!({
                "name": "",
                "displayName": "",
                "validations": json!({}),
                "annotations": json!({}),
                "required": json!({
                    "roles": (),
                    "scopes": ()
                }),
                "permissions": json!({
                    "view": (),
                    "edit": ()
                }),
                "selector": json!({"scopes": ()}),
                "group": "",
                "multivalued": false,
                "defaultValue": ""
            })
        ),
        "groups": (
            json!({
                "name": "",
                "displayHeader": "",
                "displayDescription": "",
                "annotations": json!({})
            })
        ),
        "unmanagedAttributePolicy": ""
    });

    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}}/admin/realms/:realm/users/profile \
  --header 'content-type: application/json' \
  --data '{
  "attributes": [
    {
      "name": "",
      "displayName": "",
      "validations": {},
      "annotations": {},
      "required": {
        "roles": [],
        "scopes": []
      },
      "permissions": {
        "view": [],
        "edit": []
      },
      "selector": {
        "scopes": []
      },
      "group": "",
      "multivalued": false,
      "defaultValue": ""
    }
  ],
  "groups": [
    {
      "name": "",
      "displayHeader": "",
      "displayDescription": "",
      "annotations": {}
    }
  ],
  "unmanagedAttributePolicy": ""
}'
echo '{
  "attributes": [
    {
      "name": "",
      "displayName": "",
      "validations": {},
      "annotations": {},
      "required": {
        "roles": [],
        "scopes": []
      },
      "permissions": {
        "view": [],
        "edit": []
      },
      "selector": {
        "scopes": []
      },
      "group": "",
      "multivalued": false,
      "defaultValue": ""
    }
  ],
  "groups": [
    {
      "name": "",
      "displayHeader": "",
      "displayDescription": "",
      "annotations": {}
    }
  ],
  "unmanagedAttributePolicy": ""
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/users/profile \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "attributes": [\n    {\n      "name": "",\n      "displayName": "",\n      "validations": {},\n      "annotations": {},\n      "required": {\n        "roles": [],\n        "scopes": []\n      },\n      "permissions": {\n        "view": [],\n        "edit": []\n      },\n      "selector": {\n        "scopes": []\n      },\n      "group": "",\n      "multivalued": false,\n      "defaultValue": ""\n    }\n  ],\n  "groups": [\n    {\n      "name": "",\n      "displayHeader": "",\n      "displayDescription": "",\n      "annotations": {}\n    }\n  ],\n  "unmanagedAttributePolicy": ""\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/profile
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "attributes": [
    [
      "name": "",
      "displayName": "",
      "validations": [],
      "annotations": [],
      "required": [
        "roles": [],
        "scopes": []
      ],
      "permissions": [
        "view": [],
        "edit": []
      ],
      "selector": ["scopes": []],
      "group": "",
      "multivalued": false,
      "defaultValue": ""
    ]
  ],
  "groups": [
    [
      "name": "",
      "displayHeader": "",
      "displayDescription": "",
      "annotations": []
    ]
  ],
  "unmanagedAttributePolicy": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/profile")! 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 Set up a new password for the user.
{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password
BODY json

{
  "id": "",
  "type": "",
  "userLabel": "",
  "createdDate": 0,
  "secretData": "",
  "credentialData": "",
  "priority": 0,
  "value": "",
  "temporary": false,
  "device": "",
  "hashedSaltedValue": "",
  "salt": "",
  "hashIterations": 0,
  "counter": 0,
  "algorithm": "",
  "digits": 0,
  "period": 0,
  "config": {},
  "federationLink": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-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  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password" {:content-type :json
                                                                                             :form-params {:id ""
                                                                                                           :type ""
                                                                                                           :userLabel ""
                                                                                                           :createdDate 0
                                                                                                           :secretData ""
                                                                                                           :credentialData ""
                                                                                                           :priority 0
                                                                                                           :value ""
                                                                                                           :temporary false
                                                                                                           :device ""
                                                                                                           :hashedSaltedValue ""
                                                                                                           :salt ""
                                                                                                           :hashIterations 0
                                                                                                           :counter 0
                                                                                                           :algorithm ""
                                                                                                           :digits 0
                                                                                                           :period 0
                                                                                                           :config {}
                                                                                                           :federationLink ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\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}}/admin/realms/:realm/users/:user-id/reset-password"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\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}}/admin/realms/:realm/users/:user-id/reset-password");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\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/admin/realms/:realm/users/:user-id/reset-password HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 350

{
  "id": "",
  "type": "",
  "userLabel": "",
  "createdDate": 0,
  "secretData": "",
  "credentialData": "",
  "priority": 0,
  "value": "",
  "temporary": false,
  "device": "",
  "hashedSaltedValue": "",
  "salt": "",
  "hashIterations": 0,
  "counter": 0,
  "algorithm": "",
  "digits": 0,
  "period": 0,
  "config": {},
  "federationLink": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\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  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  type: '',
  userLabel: '',
  createdDate: 0,
  secretData: '',
  credentialData: '',
  priority: 0,
  value: '',
  temporary: false,
  device: '',
  hashedSaltedValue: '',
  salt: '',
  hashIterations: 0,
  counter: 0,
  algorithm: '',
  digits: 0,
  period: 0,
  config: {},
  federationLink: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    type: '',
    userLabel: '',
    createdDate: 0,
    secretData: '',
    credentialData: '',
    priority: 0,
    value: '',
    temporary: false,
    device: '',
    hashedSaltedValue: '',
    salt: '',
    hashIterations: 0,
    counter: 0,
    algorithm: '',
    digits: 0,
    period: 0,
    config: {},
    federationLink: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "type": "",\n  "userLabel": "",\n  "createdDate": 0,\n  "secretData": "",\n  "credentialData": "",\n  "priority": 0,\n  "value": "",\n  "temporary": false,\n  "device": "",\n  "hashedSaltedValue": "",\n  "salt": "",\n  "hashIterations": 0,\n  "counter": 0,\n  "algorithm": "",\n  "digits": 0,\n  "period": 0,\n  "config": {},\n  "federationLink": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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({
  id: '',
  type: '',
  userLabel: '',
  createdDate: 0,
  secretData: '',
  credentialData: '',
  priority: 0,
  value: '',
  temporary: false,
  device: '',
  hashedSaltedValue: '',
  salt: '',
  hashIterations: 0,
  counter: 0,
  algorithm: '',
  digits: 0,
  period: 0,
  config: {},
  federationLink: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    type: '',
    userLabel: '',
    createdDate: 0,
    secretData: '',
    credentialData: '',
    priority: 0,
    value: '',
    temporary: false,
    device: '',
    hashedSaltedValue: '',
    salt: '',
    hashIterations: 0,
    counter: 0,
    algorithm: '',
    digits: 0,
    period: 0,
    config: {},
    federationLink: ''
  },
  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}}/admin/realms/:realm/users/:user-id/reset-password');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  type: '',
  userLabel: '',
  createdDate: 0,
  secretData: '',
  credentialData: '',
  priority: 0,
  value: '',
  temporary: false,
  device: '',
  hashedSaltedValue: '',
  salt: '',
  hashIterations: 0,
  counter: 0,
  algorithm: '',
  digits: 0,
  period: 0,
  config: {},
  federationLink: ''
});

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}}/admin/realms/:realm/users/:user-id/reset-password',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    type: '',
    userLabel: '',
    createdDate: 0,
    secretData: '',
    credentialData: '',
    priority: 0,
    value: '',
    temporary: false,
    device: '',
    hashedSaltedValue: '',
    salt: '',
    hashIterations: 0,
    counter: 0,
    algorithm: '',
    digits: 0,
    period: 0,
    config: {},
    federationLink: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}'
};

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 = @{ @"id": @"",
                              @"type": @"",
                              @"userLabel": @"",
                              @"createdDate": @0,
                              @"secretData": @"",
                              @"credentialData": @"",
                              @"priority": @0,
                              @"value": @"",
                              @"temporary": @NO,
                              @"device": @"",
                              @"hashedSaltedValue": @"",
                              @"salt": @"",
                              @"hashIterations": @0,
                              @"counter": @0,
                              @"algorithm": @"",
                              @"digits": @0,
                              @"period": @0,
                              @"config": @{  },
                              @"federationLink": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/reset-password" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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([
    'id' => '',
    'type' => '',
    'userLabel' => '',
    'createdDate' => 0,
    'secretData' => '',
    'credentialData' => '',
    'priority' => 0,
    'value' => '',
    'temporary' => null,
    'device' => '',
    'hashedSaltedValue' => '',
    'salt' => '',
    'hashIterations' => 0,
    'counter' => 0,
    'algorithm' => '',
    'digits' => 0,
    'period' => 0,
    'config' => [
        
    ],
    'federationLink' => ''
  ]),
  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}}/admin/realms/:realm/users/:user-id/reset-password', [
  'body' => '{
  "id": "",
  "type": "",
  "userLabel": "",
  "createdDate": 0,
  "secretData": "",
  "credentialData": "",
  "priority": 0,
  "value": "",
  "temporary": false,
  "device": "",
  "hashedSaltedValue": "",
  "salt": "",
  "hashIterations": 0,
  "counter": 0,
  "algorithm": "",
  "digits": 0,
  "period": 0,
  "config": {},
  "federationLink": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'type' => '',
  'userLabel' => '',
  'createdDate' => 0,
  'secretData' => '',
  'credentialData' => '',
  'priority' => 0,
  'value' => '',
  'temporary' => null,
  'device' => '',
  'hashedSaltedValue' => '',
  'salt' => '',
  'hashIterations' => 0,
  'counter' => 0,
  'algorithm' => '',
  'digits' => 0,
  'period' => 0,
  'config' => [
    
  ],
  'federationLink' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'type' => '',
  'userLabel' => '',
  'createdDate' => 0,
  'secretData' => '',
  'credentialData' => '',
  'priority' => 0,
  'value' => '',
  'temporary' => null,
  'device' => '',
  'hashedSaltedValue' => '',
  'salt' => '',
  'hashIterations' => 0,
  'counter' => 0,
  'algorithm' => '',
  'digits' => 0,
  'period' => 0,
  'config' => [
    
  ],
  'federationLink' => ''
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/reset-password' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "type": "",
  "userLabel": "",
  "createdDate": 0,
  "secretData": "",
  "credentialData": "",
  "priority": 0,
  "value": "",
  "temporary": false,
  "device": "",
  "hashedSaltedValue": "",
  "salt": "",
  "hashIterations": 0,
  "counter": 0,
  "algorithm": "",
  "digits": 0,
  "period": 0,
  "config": {},
  "federationLink": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "type": "",
  "userLabel": "",
  "createdDate": 0,
  "secretData": "",
  "credentialData": "",
  "priority": 0,
  "value": "",
  "temporary": false,
  "device": "",
  "hashedSaltedValue": "",
  "salt": "",
  "hashIterations": 0,
  "counter": 0,
  "algorithm": "",
  "digits": 0,
  "period": 0,
  "config": {},
  "federationLink": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/users/:user-id/reset-password", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password"

payload = {
    "id": "",
    "type": "",
    "userLabel": "",
    "createdDate": 0,
    "secretData": "",
    "credentialData": "",
    "priority": 0,
    "value": "",
    "temporary": False,
    "device": "",
    "hashedSaltedValue": "",
    "salt": "",
    "hashIterations": 0,
    "counter": 0,
    "algorithm": "",
    "digits": 0,
    "period": 0,
    "config": {},
    "federationLink": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password"

payload <- "{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\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}}/admin/realms/:realm/users/:user-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  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\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/admin/realms/:realm/users/:user-id/reset-password') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"type\": \"\",\n  \"userLabel\": \"\",\n  \"createdDate\": 0,\n  \"secretData\": \"\",\n  \"credentialData\": \"\",\n  \"priority\": 0,\n  \"value\": \"\",\n  \"temporary\": false,\n  \"device\": \"\",\n  \"hashedSaltedValue\": \"\",\n  \"salt\": \"\",\n  \"hashIterations\": 0,\n  \"counter\": 0,\n  \"algorithm\": \"\",\n  \"digits\": 0,\n  \"period\": 0,\n  \"config\": {},\n  \"federationLink\": \"\"\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}}/admin/realms/:realm/users/:user-id/reset-password";

    let payload = json!({
        "id": "",
        "type": "",
        "userLabel": "",
        "createdDate": 0,
        "secretData": "",
        "credentialData": "",
        "priority": 0,
        "value": "",
        "temporary": false,
        "device": "",
        "hashedSaltedValue": "",
        "salt": "",
        "hashIterations": 0,
        "counter": 0,
        "algorithm": "",
        "digits": 0,
        "period": 0,
        "config": json!({}),
        "federationLink": ""
    });

    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}}/admin/realms/:realm/users/:user-id/reset-password \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "type": "",
  "userLabel": "",
  "createdDate": 0,
  "secretData": "",
  "credentialData": "",
  "priority": 0,
  "value": "",
  "temporary": false,
  "device": "",
  "hashedSaltedValue": "",
  "salt": "",
  "hashIterations": 0,
  "counter": 0,
  "algorithm": "",
  "digits": 0,
  "period": 0,
  "config": {},
  "federationLink": ""
}'
echo '{
  "id": "",
  "type": "",
  "userLabel": "",
  "createdDate": 0,
  "secretData": "",
  "credentialData": "",
  "priority": 0,
  "value": "",
  "temporary": false,
  "device": "",
  "hashedSaltedValue": "",
  "salt": "",
  "hashIterations": 0,
  "counter": 0,
  "algorithm": "",
  "digits": 0,
  "period": 0,
  "config": {},
  "federationLink": ""
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "type": "",\n  "userLabel": "",\n  "createdDate": 0,\n  "secretData": "",\n  "credentialData": "",\n  "priority": 0,\n  "value": "",\n  "temporary": false,\n  "device": "",\n  "hashedSaltedValue": "",\n  "salt": "",\n  "hashIterations": 0,\n  "counter": 0,\n  "algorithm": "",\n  "digits": 0,\n  "period": 0,\n  "config": {},\n  "federationLink": ""\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/reset-password
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "type": "",
  "userLabel": "",
  "createdDate": 0,
  "secretData": "",
  "credentialData": "",
  "priority": 0,
  "value": "",
  "temporary": false,
  "device": "",
  "hashedSaltedValue": "",
  "salt": "",
  "hashIterations": 0,
  "counter": 0,
  "algorithm": "",
  "digits": 0,
  "period": 0,
  "config": [],
  "federationLink": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel
QUERY PARAMS

credentialId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel
http PUT {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials/:credentialId/userLabel
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id
BODY json

{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-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  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/users/:user-id" {:content-type :json
                                                                              :form-params {:id ""
                                                                                            :username ""
                                                                                            :firstName ""
                                                                                            :lastName ""
                                                                                            :email ""
                                                                                            :emailVerified false
                                                                                            :attributes {}
                                                                                            :userProfileMetadata {:attributes [{:name ""
                                                                                                                                :displayName ""
                                                                                                                                :required false
                                                                                                                                :readOnly false
                                                                                                                                :annotations {}
                                                                                                                                :validators {}
                                                                                                                                :group ""
                                                                                                                                :multivalued false
                                                                                                                                :defaultValue ""}]
                                                                                                                  :groups [{:name ""
                                                                                                                            :displayHeader ""
                                                                                                                            :displayDescription ""
                                                                                                                            :annotations {}}]}
                                                                                            :enabled false
                                                                                            :self ""
                                                                                            :origin ""
                                                                                            :createdTimestamp 0
                                                                                            :totp false
                                                                                            :federationLink ""
                                                                                            :serviceAccountClientId ""
                                                                                            :credentials [{:id ""
                                                                                                           :type ""
                                                                                                           :userLabel ""
                                                                                                           :createdDate 0
                                                                                                           :secretData ""
                                                                                                           :credentialData ""
                                                                                                           :priority 0
                                                                                                           :value ""
                                                                                                           :temporary false
                                                                                                           :device ""
                                                                                                           :hashedSaltedValue ""
                                                                                                           :salt ""
                                                                                                           :hashIterations 0
                                                                                                           :counter 0
                                                                                                           :algorithm ""
                                                                                                           :digits 0
                                                                                                           :period 0
                                                                                                           :config {}
                                                                                                           :federationLink ""}]
                                                                                            :disableableCredentialTypes []
                                                                                            :requiredActions []
                                                                                            :federatedIdentities [{:identityProvider ""
                                                                                                                   :userId ""
                                                                                                                   :userName ""}]
                                                                                            :realmRoles []
                                                                                            :clientRoles {}
                                                                                            :clientConsents [{:clientId ""
                                                                                                              :grantedClientScopes []
                                                                                                              :createdDate 0
                                                                                                              :lastUpdatedDate 0
                                                                                                              :grantedRealmRoles []}]
                                                                                            :notBefore 0
                                                                                            :applicationRoles {}
                                                                                            :socialLinks [{:socialProvider ""
                                                                                                           :socialUserId ""
                                                                                                           :socialUsername ""}]
                                                                                            :groups []
                                                                                            :access {}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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}}/admin/realms/:realm/users/:user-id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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}}/admin/realms/:realm/users/:user-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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/admin/realms/:realm/users/:user-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1777

{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/users/:user-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/:user-id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  username: '',
  firstName: '',
  lastName: '',
  email: '',
  emailVerified: false,
  attributes: {},
  userProfileMetadata: {
    attributes: [
      {
        name: '',
        displayName: '',
        required: false,
        readOnly: false,
        annotations: {},
        validators: {},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [
      {
        name: '',
        displayHeader: '',
        displayDescription: '',
        annotations: {}
      }
    ]
  },
  enabled: false,
  self: '',
  origin: '',
  createdTimestamp: 0,
  totp: false,
  federationLink: '',
  serviceAccountClientId: '',
  credentials: [
    {
      id: '',
      type: '',
      userLabel: '',
      createdDate: 0,
      secretData: '',
      credentialData: '',
      priority: 0,
      value: '',
      temporary: false,
      device: '',
      hashedSaltedValue: '',
      salt: '',
      hashIterations: 0,
      counter: 0,
      algorithm: '',
      digits: 0,
      period: 0,
      config: {},
      federationLink: ''
    }
  ],
  disableableCredentialTypes: [],
  requiredActions: [],
  federatedIdentities: [
    {
      identityProvider: '',
      userId: '',
      userName: ''
    }
  ],
  realmRoles: [],
  clientRoles: {},
  clientConsents: [
    {
      clientId: '',
      grantedClientScopes: [],
      createdDate: 0,
      lastUpdatedDate: 0,
      grantedRealmRoles: []
    }
  ],
  notBefore: 0,
  applicationRoles: {},
  socialLinks: [
    {
      socialProvider: '',
      socialUserId: '',
      socialUsername: ''
    }
  ],
  groups: [],
  access: {}
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/users/:user-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    username: '',
    firstName: '',
    lastName: '',
    email: '',
    emailVerified: false,
    attributes: {},
    userProfileMetadata: {
      attributes: [
        {
          name: '',
          displayName: '',
          required: false,
          readOnly: false,
          annotations: {},
          validators: {},
          group: '',
          multivalued: false,
          defaultValue: ''
        }
      ],
      groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
    },
    enabled: false,
    self: '',
    origin: '',
    createdTimestamp: 0,
    totp: false,
    federationLink: '',
    serviceAccountClientId: '',
    credentials: [
      {
        id: '',
        type: '',
        userLabel: '',
        createdDate: 0,
        secretData: '',
        credentialData: '',
        priority: 0,
        value: '',
        temporary: false,
        device: '',
        hashedSaltedValue: '',
        salt: '',
        hashIterations: 0,
        counter: 0,
        algorithm: '',
        digits: 0,
        period: 0,
        config: {},
        federationLink: ''
      }
    ],
    disableableCredentialTypes: [],
    requiredActions: [],
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    realmRoles: [],
    clientRoles: {},
    clientConsents: [
      {
        clientId: '',
        grantedClientScopes: [],
        createdDate: 0,
        lastUpdatedDate: 0,
        grantedRealmRoles: []
      }
    ],
    notBefore: 0,
    applicationRoles: {},
    socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
    groups: [],
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "username": "",\n  "firstName": "",\n  "lastName": "",\n  "email": "",\n  "emailVerified": false,\n  "attributes": {},\n  "userProfileMetadata": {\n    "attributes": [\n      {\n        "name": "",\n        "displayName": "",\n        "required": false,\n        "readOnly": false,\n        "annotations": {},\n        "validators": {},\n        "group": "",\n        "multivalued": false,\n        "defaultValue": ""\n      }\n    ],\n    "groups": [\n      {\n        "name": "",\n        "displayHeader": "",\n        "displayDescription": "",\n        "annotations": {}\n      }\n    ]\n  },\n  "enabled": false,\n  "self": "",\n  "origin": "",\n  "createdTimestamp": 0,\n  "totp": false,\n  "federationLink": "",\n  "serviceAccountClientId": "",\n  "credentials": [\n    {\n      "id": "",\n      "type": "",\n      "userLabel": "",\n      "createdDate": 0,\n      "secretData": "",\n      "credentialData": "",\n      "priority": 0,\n      "value": "",\n      "temporary": false,\n      "device": "",\n      "hashedSaltedValue": "",\n      "salt": "",\n      "hashIterations": 0,\n      "counter": 0,\n      "algorithm": "",\n      "digits": 0,\n      "period": 0,\n      "config": {},\n      "federationLink": ""\n    }\n  ],\n  "disableableCredentialTypes": [],\n  "requiredActions": [],\n  "federatedIdentities": [\n    {\n      "identityProvider": "",\n      "userId": "",\n      "userName": ""\n    }\n  ],\n  "realmRoles": [],\n  "clientRoles": {},\n  "clientConsents": [\n    {\n      "clientId": "",\n      "grantedClientScopes": [],\n      "createdDate": 0,\n      "lastUpdatedDate": 0,\n      "grantedRealmRoles": []\n    }\n  ],\n  "notBefore": 0,\n  "applicationRoles": {},\n  "socialLinks": [\n    {\n      "socialProvider": "",\n      "socialUserId": "",\n      "socialUsername": ""\n    }\n  ],\n  "groups": [],\n  "access": {}\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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({
  id: '',
  username: '',
  firstName: '',
  lastName: '',
  email: '',
  emailVerified: false,
  attributes: {},
  userProfileMetadata: {
    attributes: [
      {
        name: '',
        displayName: '',
        required: false,
        readOnly: false,
        annotations: {},
        validators: {},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
  },
  enabled: false,
  self: '',
  origin: '',
  createdTimestamp: 0,
  totp: false,
  federationLink: '',
  serviceAccountClientId: '',
  credentials: [
    {
      id: '',
      type: '',
      userLabel: '',
      createdDate: 0,
      secretData: '',
      credentialData: '',
      priority: 0,
      value: '',
      temporary: false,
      device: '',
      hashedSaltedValue: '',
      salt: '',
      hashIterations: 0,
      counter: 0,
      algorithm: '',
      digits: 0,
      period: 0,
      config: {},
      federationLink: ''
    }
  ],
  disableableCredentialTypes: [],
  requiredActions: [],
  federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
  realmRoles: [],
  clientRoles: {},
  clientConsents: [
    {
      clientId: '',
      grantedClientScopes: [],
      createdDate: 0,
      lastUpdatedDate: 0,
      grantedRealmRoles: []
    }
  ],
  notBefore: 0,
  applicationRoles: {},
  socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
  groups: [],
  access: {}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    username: '',
    firstName: '',
    lastName: '',
    email: '',
    emailVerified: false,
    attributes: {},
    userProfileMetadata: {
      attributes: [
        {
          name: '',
          displayName: '',
          required: false,
          readOnly: false,
          annotations: {},
          validators: {},
          group: '',
          multivalued: false,
          defaultValue: ''
        }
      ],
      groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
    },
    enabled: false,
    self: '',
    origin: '',
    createdTimestamp: 0,
    totp: false,
    federationLink: '',
    serviceAccountClientId: '',
    credentials: [
      {
        id: '',
        type: '',
        userLabel: '',
        createdDate: 0,
        secretData: '',
        credentialData: '',
        priority: 0,
        value: '',
        temporary: false,
        device: '',
        hashedSaltedValue: '',
        salt: '',
        hashIterations: 0,
        counter: 0,
        algorithm: '',
        digits: 0,
        period: 0,
        config: {},
        federationLink: ''
      }
    ],
    disableableCredentialTypes: [],
    requiredActions: [],
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    realmRoles: [],
    clientRoles: {},
    clientConsents: [
      {
        clientId: '',
        grantedClientScopes: [],
        createdDate: 0,
        lastUpdatedDate: 0,
        grantedRealmRoles: []
      }
    ],
    notBefore: 0,
    applicationRoles: {},
    socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
    groups: [],
    access: {}
  },
  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}}/admin/realms/:realm/users/:user-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  username: '',
  firstName: '',
  lastName: '',
  email: '',
  emailVerified: false,
  attributes: {},
  userProfileMetadata: {
    attributes: [
      {
        name: '',
        displayName: '',
        required: false,
        readOnly: false,
        annotations: {},
        validators: {},
        group: '',
        multivalued: false,
        defaultValue: ''
      }
    ],
    groups: [
      {
        name: '',
        displayHeader: '',
        displayDescription: '',
        annotations: {}
      }
    ]
  },
  enabled: false,
  self: '',
  origin: '',
  createdTimestamp: 0,
  totp: false,
  federationLink: '',
  serviceAccountClientId: '',
  credentials: [
    {
      id: '',
      type: '',
      userLabel: '',
      createdDate: 0,
      secretData: '',
      credentialData: '',
      priority: 0,
      value: '',
      temporary: false,
      device: '',
      hashedSaltedValue: '',
      salt: '',
      hashIterations: 0,
      counter: 0,
      algorithm: '',
      digits: 0,
      period: 0,
      config: {},
      federationLink: ''
    }
  ],
  disableableCredentialTypes: [],
  requiredActions: [],
  federatedIdentities: [
    {
      identityProvider: '',
      userId: '',
      userName: ''
    }
  ],
  realmRoles: [],
  clientRoles: {},
  clientConsents: [
    {
      clientId: '',
      grantedClientScopes: [],
      createdDate: 0,
      lastUpdatedDate: 0,
      grantedRealmRoles: []
    }
  ],
  notBefore: 0,
  applicationRoles: {},
  socialLinks: [
    {
      socialProvider: '',
      socialUserId: '',
      socialUsername: ''
    }
  ],
  groups: [],
  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: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    username: '',
    firstName: '',
    lastName: '',
    email: '',
    emailVerified: false,
    attributes: {},
    userProfileMetadata: {
      attributes: [
        {
          name: '',
          displayName: '',
          required: false,
          readOnly: false,
          annotations: {},
          validators: {},
          group: '',
          multivalued: false,
          defaultValue: ''
        }
      ],
      groups: [{name: '', displayHeader: '', displayDescription: '', annotations: {}}]
    },
    enabled: false,
    self: '',
    origin: '',
    createdTimestamp: 0,
    totp: false,
    federationLink: '',
    serviceAccountClientId: '',
    credentials: [
      {
        id: '',
        type: '',
        userLabel: '',
        createdDate: 0,
        secretData: '',
        credentialData: '',
        priority: 0,
        value: '',
        temporary: false,
        device: '',
        hashedSaltedValue: '',
        salt: '',
        hashIterations: 0,
        counter: 0,
        algorithm: '',
        digits: 0,
        period: 0,
        config: {},
        federationLink: ''
      }
    ],
    disableableCredentialTypes: [],
    requiredActions: [],
    federatedIdentities: [{identityProvider: '', userId: '', userName: ''}],
    realmRoles: [],
    clientRoles: {},
    clientConsents: [
      {
        clientId: '',
        grantedClientScopes: [],
        createdDate: 0,
        lastUpdatedDate: 0,
        grantedRealmRoles: []
      }
    ],
    notBefore: 0,
    applicationRoles: {},
    socialLinks: [{socialProvider: '', socialUserId: '', socialUsername: ''}],
    groups: [],
    access: {}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","username":"","firstName":"","lastName":"","email":"","emailVerified":false,"attributes":{},"userProfileMetadata":{"attributes":[{"name":"","displayName":"","required":false,"readOnly":false,"annotations":{},"validators":{},"group":"","multivalued":false,"defaultValue":""}],"groups":[{"name":"","displayHeader":"","displayDescription":"","annotations":{}}]},"enabled":false,"self":"","origin":"","createdTimestamp":0,"totp":false,"federationLink":"","serviceAccountClientId":"","credentials":[{"id":"","type":"","userLabel":"","createdDate":0,"secretData":"","credentialData":"","priority":0,"value":"","temporary":false,"device":"","hashedSaltedValue":"","salt":"","hashIterations":0,"counter":0,"algorithm":"","digits":0,"period":0,"config":{},"federationLink":""}],"disableableCredentialTypes":[],"requiredActions":[],"federatedIdentities":[{"identityProvider":"","userId":"","userName":""}],"realmRoles":[],"clientRoles":{},"clientConsents":[{"clientId":"","grantedClientScopes":[],"createdDate":0,"lastUpdatedDate":0,"grantedRealmRoles":[]}],"notBefore":0,"applicationRoles":{},"socialLinks":[{"socialProvider":"","socialUserId":"","socialUsername":""}],"groups":[],"access":{}}'
};

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 = @{ @"id": @"",
                              @"username": @"",
                              @"firstName": @"",
                              @"lastName": @"",
                              @"email": @"",
                              @"emailVerified": @NO,
                              @"attributes": @{  },
                              @"userProfileMetadata": @{ @"attributes": @[ @{ @"name": @"", @"displayName": @"", @"required": @NO, @"readOnly": @NO, @"annotations": @{  }, @"validators": @{  }, @"group": @"", @"multivalued": @NO, @"defaultValue": @"" } ], @"groups": @[ @{ @"name": @"", @"displayHeader": @"", @"displayDescription": @"", @"annotations": @{  } } ] },
                              @"enabled": @NO,
                              @"self": @"",
                              @"origin": @"",
                              @"createdTimestamp": @0,
                              @"totp": @NO,
                              @"federationLink": @"",
                              @"serviceAccountClientId": @"",
                              @"credentials": @[ @{ @"id": @"", @"type": @"", @"userLabel": @"", @"createdDate": @0, @"secretData": @"", @"credentialData": @"", @"priority": @0, @"value": @"", @"temporary": @NO, @"device": @"", @"hashedSaltedValue": @"", @"salt": @"", @"hashIterations": @0, @"counter": @0, @"algorithm": @"", @"digits": @0, @"period": @0, @"config": @{  }, @"federationLink": @"" } ],
                              @"disableableCredentialTypes": @[  ],
                              @"requiredActions": @[  ],
                              @"federatedIdentities": @[ @{ @"identityProvider": @"", @"userId": @"", @"userName": @"" } ],
                              @"realmRoles": @[  ],
                              @"clientRoles": @{  },
                              @"clientConsents": @[ @{ @"clientId": @"", @"grantedClientScopes": @[  ], @"createdDate": @0, @"lastUpdatedDate": @0, @"grantedRealmRoles": @[  ] } ],
                              @"notBefore": @0,
                              @"applicationRoles": @{  },
                              @"socialLinks": @[ @{ @"socialProvider": @"", @"socialUserId": @"", @"socialUsername": @"" } ],
                              @"groups": @[  ],
                              @"access": @{  } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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([
    'id' => '',
    'username' => '',
    'firstName' => '',
    'lastName' => '',
    'email' => '',
    'emailVerified' => null,
    'attributes' => [
        
    ],
    'userProfileMetadata' => [
        'attributes' => [
                [
                                'name' => '',
                                'displayName' => '',
                                'required' => null,
                                'readOnly' => null,
                                'annotations' => [
                                                                
                                ],
                                'validators' => [
                                                                
                                ],
                                'group' => '',
                                'multivalued' => null,
                                'defaultValue' => ''
                ]
        ],
        'groups' => [
                [
                                'name' => '',
                                'displayHeader' => '',
                                'displayDescription' => '',
                                'annotations' => [
                                                                
                                ]
                ]
        ]
    ],
    'enabled' => null,
    'self' => '',
    'origin' => '',
    'createdTimestamp' => 0,
    'totp' => null,
    'federationLink' => '',
    'serviceAccountClientId' => '',
    'credentials' => [
        [
                'id' => '',
                'type' => '',
                'userLabel' => '',
                'createdDate' => 0,
                'secretData' => '',
                'credentialData' => '',
                'priority' => 0,
                'value' => '',
                'temporary' => null,
                'device' => '',
                'hashedSaltedValue' => '',
                'salt' => '',
                'hashIterations' => 0,
                'counter' => 0,
                'algorithm' => '',
                'digits' => 0,
                'period' => 0,
                'config' => [
                                
                ],
                'federationLink' => ''
        ]
    ],
    'disableableCredentialTypes' => [
        
    ],
    'requiredActions' => [
        
    ],
    'federatedIdentities' => [
        [
                'identityProvider' => '',
                'userId' => '',
                'userName' => ''
        ]
    ],
    'realmRoles' => [
        
    ],
    'clientRoles' => [
        
    ],
    'clientConsents' => [
        [
                'clientId' => '',
                'grantedClientScopes' => [
                                
                ],
                'createdDate' => 0,
                'lastUpdatedDate' => 0,
                'grantedRealmRoles' => [
                                
                ]
        ]
    ],
    'notBefore' => 0,
    'applicationRoles' => [
        
    ],
    'socialLinks' => [
        [
                'socialProvider' => '',
                'socialUserId' => '',
                'socialUsername' => ''
        ]
    ],
    'groups' => [
        
    ],
    'access' => [
        
    ]
  ]),
  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}}/admin/realms/:realm/users/:user-id', [
  'body' => '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'username' => '',
  'firstName' => '',
  'lastName' => '',
  'email' => '',
  'emailVerified' => null,
  'attributes' => [
    
  ],
  'userProfileMetadata' => [
    'attributes' => [
        [
                'name' => '',
                'displayName' => '',
                'required' => null,
                'readOnly' => null,
                'annotations' => [
                                
                ],
                'validators' => [
                                
                ],
                'group' => '',
                'multivalued' => null,
                'defaultValue' => ''
        ]
    ],
    'groups' => [
        [
                'name' => '',
                'displayHeader' => '',
                'displayDescription' => '',
                'annotations' => [
                                
                ]
        ]
    ]
  ],
  'enabled' => null,
  'self' => '',
  'origin' => '',
  'createdTimestamp' => 0,
  'totp' => null,
  'federationLink' => '',
  'serviceAccountClientId' => '',
  'credentials' => [
    [
        'id' => '',
        'type' => '',
        'userLabel' => '',
        'createdDate' => 0,
        'secretData' => '',
        'credentialData' => '',
        'priority' => 0,
        'value' => '',
        'temporary' => null,
        'device' => '',
        'hashedSaltedValue' => '',
        'salt' => '',
        'hashIterations' => 0,
        'counter' => 0,
        'algorithm' => '',
        'digits' => 0,
        'period' => 0,
        'config' => [
                
        ],
        'federationLink' => ''
    ]
  ],
  'disableableCredentialTypes' => [
    
  ],
  'requiredActions' => [
    
  ],
  'federatedIdentities' => [
    [
        'identityProvider' => '',
        'userId' => '',
        'userName' => ''
    ]
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'clientConsents' => [
    [
        'clientId' => '',
        'grantedClientScopes' => [
                
        ],
        'createdDate' => 0,
        'lastUpdatedDate' => 0,
        'grantedRealmRoles' => [
                
        ]
    ]
  ],
  'notBefore' => 0,
  'applicationRoles' => [
    
  ],
  'socialLinks' => [
    [
        'socialProvider' => '',
        'socialUserId' => '',
        'socialUsername' => ''
    ]
  ],
  'groups' => [
    
  ],
  'access' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'username' => '',
  'firstName' => '',
  'lastName' => '',
  'email' => '',
  'emailVerified' => null,
  'attributes' => [
    
  ],
  'userProfileMetadata' => [
    'attributes' => [
        [
                'name' => '',
                'displayName' => '',
                'required' => null,
                'readOnly' => null,
                'annotations' => [
                                
                ],
                'validators' => [
                                
                ],
                'group' => '',
                'multivalued' => null,
                'defaultValue' => ''
        ]
    ],
    'groups' => [
        [
                'name' => '',
                'displayHeader' => '',
                'displayDescription' => '',
                'annotations' => [
                                
                ]
        ]
    ]
  ],
  'enabled' => null,
  'self' => '',
  'origin' => '',
  'createdTimestamp' => 0,
  'totp' => null,
  'federationLink' => '',
  'serviceAccountClientId' => '',
  'credentials' => [
    [
        'id' => '',
        'type' => '',
        'userLabel' => '',
        'createdDate' => 0,
        'secretData' => '',
        'credentialData' => '',
        'priority' => 0,
        'value' => '',
        'temporary' => null,
        'device' => '',
        'hashedSaltedValue' => '',
        'salt' => '',
        'hashIterations' => 0,
        'counter' => 0,
        'algorithm' => '',
        'digits' => 0,
        'period' => 0,
        'config' => [
                
        ],
        'federationLink' => ''
    ]
  ],
  'disableableCredentialTypes' => [
    
  ],
  'requiredActions' => [
    
  ],
  'federatedIdentities' => [
    [
        'identityProvider' => '',
        'userId' => '',
        'userName' => ''
    ]
  ],
  'realmRoles' => [
    
  ],
  'clientRoles' => [
    
  ],
  'clientConsents' => [
    [
        'clientId' => '',
        'grantedClientScopes' => [
                
        ],
        'createdDate' => 0,
        'lastUpdatedDate' => 0,
        'grantedRealmRoles' => [
                
        ]
    ]
  ],
  'notBefore' => 0,
  'applicationRoles' => [
    
  ],
  'socialLinks' => [
    [
        'socialProvider' => '',
        'socialUserId' => '',
        'socialUsername' => ''
    ]
  ],
  'groups' => [
    
  ],
  'access' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/users/:user-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id"

payload = {
    "id": "",
    "username": "",
    "firstName": "",
    "lastName": "",
    "email": "",
    "emailVerified": False,
    "attributes": {},
    "userProfileMetadata": {
        "attributes": [
            {
                "name": "",
                "displayName": "",
                "required": False,
                "readOnly": False,
                "annotations": {},
                "validators": {},
                "group": "",
                "multivalued": False,
                "defaultValue": ""
            }
        ],
        "groups": [
            {
                "name": "",
                "displayHeader": "",
                "displayDescription": "",
                "annotations": {}
            }
        ]
    },
    "enabled": False,
    "self": "",
    "origin": "",
    "createdTimestamp": 0,
    "totp": False,
    "federationLink": "",
    "serviceAccountClientId": "",
    "credentials": [
        {
            "id": "",
            "type": "",
            "userLabel": "",
            "createdDate": 0,
            "secretData": "",
            "credentialData": "",
            "priority": 0,
            "value": "",
            "temporary": False,
            "device": "",
            "hashedSaltedValue": "",
            "salt": "",
            "hashIterations": 0,
            "counter": 0,
            "algorithm": "",
            "digits": 0,
            "period": 0,
            "config": {},
            "federationLink": ""
        }
    ],
    "disableableCredentialTypes": [],
    "requiredActions": [],
    "federatedIdentities": [
        {
            "identityProvider": "",
            "userId": "",
            "userName": ""
        }
    ],
    "realmRoles": [],
    "clientRoles": {},
    "clientConsents": [
        {
            "clientId": "",
            "grantedClientScopes": [],
            "createdDate": 0,
            "lastUpdatedDate": 0,
            "grantedRealmRoles": []
        }
    ],
    "notBefore": 0,
    "applicationRoles": {},
    "socialLinks": [
        {
            "socialProvider": "",
            "socialUserId": "",
            "socialUsername": ""
        }
    ],
    "groups": [],
    "access": {}
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id"

payload <- "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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}}/admin/realms/:realm/users/:user-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  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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/admin/realms/:realm/users/:user-id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"username\": \"\",\n  \"firstName\": \"\",\n  \"lastName\": \"\",\n  \"email\": \"\",\n  \"emailVerified\": false,\n  \"attributes\": {},\n  \"userProfileMetadata\": {\n    \"attributes\": [\n      {\n        \"name\": \"\",\n        \"displayName\": \"\",\n        \"required\": false,\n        \"readOnly\": false,\n        \"annotations\": {},\n        \"validators\": {},\n        \"group\": \"\",\n        \"multivalued\": false,\n        \"defaultValue\": \"\"\n      }\n    ],\n    \"groups\": [\n      {\n        \"name\": \"\",\n        \"displayHeader\": \"\",\n        \"displayDescription\": \"\",\n        \"annotations\": {}\n      }\n    ]\n  },\n  \"enabled\": false,\n  \"self\": \"\",\n  \"origin\": \"\",\n  \"createdTimestamp\": 0,\n  \"totp\": false,\n  \"federationLink\": \"\",\n  \"serviceAccountClientId\": \"\",\n  \"credentials\": [\n    {\n      \"id\": \"\",\n      \"type\": \"\",\n      \"userLabel\": \"\",\n      \"createdDate\": 0,\n      \"secretData\": \"\",\n      \"credentialData\": \"\",\n      \"priority\": 0,\n      \"value\": \"\",\n      \"temporary\": false,\n      \"device\": \"\",\n      \"hashedSaltedValue\": \"\",\n      \"salt\": \"\",\n      \"hashIterations\": 0,\n      \"counter\": 0,\n      \"algorithm\": \"\",\n      \"digits\": 0,\n      \"period\": 0,\n      \"config\": {},\n      \"federationLink\": \"\"\n    }\n  ],\n  \"disableableCredentialTypes\": [],\n  \"requiredActions\": [],\n  \"federatedIdentities\": [\n    {\n      \"identityProvider\": \"\",\n      \"userId\": \"\",\n      \"userName\": \"\"\n    }\n  ],\n  \"realmRoles\": [],\n  \"clientRoles\": {},\n  \"clientConsents\": [\n    {\n      \"clientId\": \"\",\n      \"grantedClientScopes\": [],\n      \"createdDate\": 0,\n      \"lastUpdatedDate\": 0,\n      \"grantedRealmRoles\": []\n    }\n  ],\n  \"notBefore\": 0,\n  \"applicationRoles\": {},\n  \"socialLinks\": [\n    {\n      \"socialProvider\": \"\",\n      \"socialUserId\": \"\",\n      \"socialUsername\": \"\"\n    }\n  ],\n  \"groups\": [],\n  \"access\": {}\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}}/admin/realms/:realm/users/:user-id";

    let payload = json!({
        "id": "",
        "username": "",
        "firstName": "",
        "lastName": "",
        "email": "",
        "emailVerified": false,
        "attributes": json!({}),
        "userProfileMetadata": json!({
            "attributes": (
                json!({
                    "name": "",
                    "displayName": "",
                    "required": false,
                    "readOnly": false,
                    "annotations": json!({}),
                    "validators": json!({}),
                    "group": "",
                    "multivalued": false,
                    "defaultValue": ""
                })
            ),
            "groups": (
                json!({
                    "name": "",
                    "displayHeader": "",
                    "displayDescription": "",
                    "annotations": json!({})
                })
            )
        }),
        "enabled": false,
        "self": "",
        "origin": "",
        "createdTimestamp": 0,
        "totp": false,
        "federationLink": "",
        "serviceAccountClientId": "",
        "credentials": (
            json!({
                "id": "",
                "type": "",
                "userLabel": "",
                "createdDate": 0,
                "secretData": "",
                "credentialData": "",
                "priority": 0,
                "value": "",
                "temporary": false,
                "device": "",
                "hashedSaltedValue": "",
                "salt": "",
                "hashIterations": 0,
                "counter": 0,
                "algorithm": "",
                "digits": 0,
                "period": 0,
                "config": json!({}),
                "federationLink": ""
            })
        ),
        "disableableCredentialTypes": (),
        "requiredActions": (),
        "federatedIdentities": (
            json!({
                "identityProvider": "",
                "userId": "",
                "userName": ""
            })
        ),
        "realmRoles": (),
        "clientRoles": json!({}),
        "clientConsents": (
            json!({
                "clientId": "",
                "grantedClientScopes": (),
                "createdDate": 0,
                "lastUpdatedDate": 0,
                "grantedRealmRoles": ()
            })
        ),
        "notBefore": 0,
        "applicationRoles": json!({}),
        "socialLinks": (
            json!({
                "socialProvider": "",
                "socialUserId": "",
                "socialUsername": ""
            })
        ),
        "groups": (),
        "access": 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}}/admin/realms/:realm/users/:user-id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}'
echo '{
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": {},
  "userProfileMetadata": {
    "attributes": [
      {
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": {},
        "validators": {},
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      }
    ],
    "groups": [
      {
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": {}
      }
    ]
  },
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    {
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": {},
      "federationLink": ""
    }
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    {
      "identityProvider": "",
      "userId": "",
      "userName": ""
    }
  ],
  "realmRoles": [],
  "clientRoles": {},
  "clientConsents": [
    {
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    }
  ],
  "notBefore": 0,
  "applicationRoles": {},
  "socialLinks": [
    {
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    }
  ],
  "groups": [],
  "access": {}
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/users/:user-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "username": "",\n  "firstName": "",\n  "lastName": "",\n  "email": "",\n  "emailVerified": false,\n  "attributes": {},\n  "userProfileMetadata": {\n    "attributes": [\n      {\n        "name": "",\n        "displayName": "",\n        "required": false,\n        "readOnly": false,\n        "annotations": {},\n        "validators": {},\n        "group": "",\n        "multivalued": false,\n        "defaultValue": ""\n      }\n    ],\n    "groups": [\n      {\n        "name": "",\n        "displayHeader": "",\n        "displayDescription": "",\n        "annotations": {}\n      }\n    ]\n  },\n  "enabled": false,\n  "self": "",\n  "origin": "",\n  "createdTimestamp": 0,\n  "totp": false,\n  "federationLink": "",\n  "serviceAccountClientId": "",\n  "credentials": [\n    {\n      "id": "",\n      "type": "",\n      "userLabel": "",\n      "createdDate": 0,\n      "secretData": "",\n      "credentialData": "",\n      "priority": 0,\n      "value": "",\n      "temporary": false,\n      "device": "",\n      "hashedSaltedValue": "",\n      "salt": "",\n      "hashIterations": 0,\n      "counter": 0,\n      "algorithm": "",\n      "digits": 0,\n      "period": 0,\n      "config": {},\n      "federationLink": ""\n    }\n  ],\n  "disableableCredentialTypes": [],\n  "requiredActions": [],\n  "federatedIdentities": [\n    {\n      "identityProvider": "",\n      "userId": "",\n      "userName": ""\n    }\n  ],\n  "realmRoles": [],\n  "clientRoles": {},\n  "clientConsents": [\n    {\n      "clientId": "",\n      "grantedClientScopes": [],\n      "createdDate": 0,\n      "lastUpdatedDate": 0,\n      "grantedRealmRoles": []\n    }\n  ],\n  "notBefore": 0,\n  "applicationRoles": {},\n  "socialLinks": [\n    {\n      "socialProvider": "",\n      "socialUserId": "",\n      "socialUsername": ""\n    }\n  ],\n  "groups": [],\n  "access": {}\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "username": "",
  "firstName": "",
  "lastName": "",
  "email": "",
  "emailVerified": false,
  "attributes": [],
  "userProfileMetadata": [
    "attributes": [
      [
        "name": "",
        "displayName": "",
        "required": false,
        "readOnly": false,
        "annotations": [],
        "validators": [],
        "group": "",
        "multivalued": false,
        "defaultValue": ""
      ]
    ],
    "groups": [
      [
        "name": "",
        "displayHeader": "",
        "displayDescription": "",
        "annotations": []
      ]
    ]
  ],
  "enabled": false,
  "self": "",
  "origin": "",
  "createdTimestamp": 0,
  "totp": false,
  "federationLink": "",
  "serviceAccountClientId": "",
  "credentials": [
    [
      "id": "",
      "type": "",
      "userLabel": "",
      "createdDate": 0,
      "secretData": "",
      "credentialData": "",
      "priority": 0,
      "value": "",
      "temporary": false,
      "device": "",
      "hashedSaltedValue": "",
      "salt": "",
      "hashIterations": 0,
      "counter": 0,
      "algorithm": "",
      "digits": 0,
      "period": 0,
      "config": [],
      "federationLink": ""
    ]
  ],
  "disableableCredentialTypes": [],
  "requiredActions": [],
  "federatedIdentities": [
    [
      "identityProvider": "",
      "userId": "",
      "userName": ""
    ]
  ],
  "realmRoles": [],
  "clientRoles": [],
  "clientConsents": [
    [
      "clientId": "",
      "grantedClientScopes": [],
      "createdDate": 0,
      "lastUpdatedDate": 0,
      "grantedRealmRoles": []
    ]
  ],
  "notBefore": 0,
  "applicationRoles": [],
  "socialLinks": [
    [
      "socialProvider": "",
      "socialUserId": "",
      "socialUsername": ""
    ]
  ],
  "groups": [],
  "access": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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 -admin-realms--realm-users--user-id-groups--groupId
{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/groups/:groupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/users/:user-id/groups/:groupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId
http DELETE {{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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 -admin-realms--realm-users--user-id-credentials
{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/credentials HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/credentials")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/credentials"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/credentials') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/credentials
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/credentials
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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 -admin-realms--realm-users--user-id-groups-count
{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/groups/count HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/count")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/count');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/count',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/count" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/count');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/groups/count")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/groups/count') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/count
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/groups/count
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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 -admin-realms--realm-users--user-id-groups
{{baseUrl}}/admin/realms/:realm/users/:user-id/groups
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/groups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/groups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/groups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/groups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/groups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/groups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/groups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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()
GET get -admin-realms--realm-users--user-id-unmanagedAttributes
{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes"

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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes"

	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/admin/realms/:realm/users/:user-id/unmanagedAttributes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes"))
    .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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes")
  .asString();
const 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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes';
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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/users/:user-id/unmanagedAttributes',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes');

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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes';
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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes"]
                                                       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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes",
  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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/users/:user-id/unmanagedAttributes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes")

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/admin/realms/:realm/users/:user-id/unmanagedAttributes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes";

    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}}/admin/realms/:realm/users/:user-id/unmanagedAttributes
http GET {{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-id/unmanagedAttributes")! 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 -admin-realms--realm-users--user-id-groups--groupId
{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId
QUERY PARAMS

groupId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-id/groups/:groupId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId")
  .put(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId',
  method: 'PUT',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId" in

Client.call `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId');
$request->setMethod(HTTP_METH_PUT);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId');
$request->setRequestMethod('PUT');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId' -Method PUT 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId' -Method PUT 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("PUT", "/baseUrl/admin/realms/:realm/users/:user-id/groups/:groupId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId"

response = requests.put(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId"

response <- VERB("PUT", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/users/:user-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/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-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}}/admin/realms/:realm/users/:user-id/groups/:groupId
http PUT {{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId
wget --quiet \
  --method PUT \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/users/:user-id/groups/:groupId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/users/:user-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()
DELETE delete -admin-realms--realm-clients--client-uuid-authz-resource-server-resource--resource-id
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
QUERY PARAMS

resource-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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 -admin-realms--realm-clients--client-uuid-authz-resource-server-scope--scope-id
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
QUERY PARAMS

scope-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
http DELETE {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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 -admin-realms--realm-clients--client-uuid-authz-resource-server-permission-providers
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/search")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-permission
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-policy-providers
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/providers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/search")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-policy
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-resource--resource-id-attributes
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes
QUERY PARAMS

resource-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/attributes")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-resource--resource-id-permissions
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions
QUERY PARAMS

resource-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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 get -admin-realms--realm-clients--client-uuid-authz-resource-server-resource--resource-id-scopes
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes
QUERY PARAMS

resource-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/scopes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id/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 -admin-realms--realm-clients--client-uuid-authz-resource-server-resource--resource-id
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
QUERY PARAMS

resource-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/search")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-resource
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-scope--scope-id-permissions
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions
QUERY PARAMS

scope-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/permissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/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 get -admin-realms--realm-clients--client-uuid-authz-resource-server-scope--scope-id-resources
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources
QUERY PARAMS

scope-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id/resources")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-scope--scope-id
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
QUERY PARAMS

scope-id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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()
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/search")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-scope
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-settings
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/settings")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server
http GET {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-import
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import
BODY json

{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import");

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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import" {:content-type :json
                                                                                                                  :form-params {:id ""
                                                                                                                                :clientId ""
                                                                                                                                :name ""
                                                                                                                                :allowRemoteResourceManagement false
                                                                                                                                :policyEnforcementMode ""
                                                                                                                                :resources [{:_id ""
                                                                                                                                             :name ""
                                                                                                                                             :uris []
                                                                                                                                             :type ""
                                                                                                                                             :scopes [{:id ""
                                                                                                                                                       :name ""
                                                                                                                                                       :iconUri ""
                                                                                                                                                       :policies [{:id ""
                                                                                                                                                                   :name ""
                                                                                                                                                                   :description ""
                                                                                                                                                                   :type ""
                                                                                                                                                                   :policies []
                                                                                                                                                                   :resources []
                                                                                                                                                                   :scopes []
                                                                                                                                                                   :logic ""
                                                                                                                                                                   :decisionStrategy ""
                                                                                                                                                                   :owner ""
                                                                                                                                                                   :resourceType ""
                                                                                                                                                                   :resourcesData []
                                                                                                                                                                   :scopesData []
                                                                                                                                                                   :config {}}]
                                                                                                                                                       :resources []
                                                                                                                                                       :displayName ""}]
                                                                                                                                             :icon_uri ""
                                                                                                                                             :owner {}
                                                                                                                                             :ownerManagedAccess false
                                                                                                                                             :displayName ""
                                                                                                                                             :attributes {}
                                                                                                                                             :uri ""
                                                                                                                                             :scopesUma [{}]}]
                                                                                                                                :policies [{}]
                                                                                                                                :scopes [{}]
                                                                                                                                :decisionStrategy ""
                                                                                                                                :authorizationSchema {:resourceTypes {}}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1194

{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  clientId: '',
  name: '',
  allowRemoteResourceManagement: false,
  policyEnforcementMode: '',
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [
        {}
      ]
    }
  ],
  policies: [
    {}
  ],
  scopes: [
    {}
  ],
  decisionStrategy: '',
  authorizationSchema: {
    resourceTypes: {}
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    policies: [{}],
    scopes: [{}],
    decisionStrategy: '',
    authorizationSchema: {resourceTypes: {}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "clientId": "",\n  "name": "",\n  "allowRemoteResourceManagement": false,\n  "policyEnforcementMode": "",\n  "resources": [\n    {\n      "_id": "",\n      "name": "",\n      "uris": [],\n      "type": "",\n      "scopes": [\n        {\n          "id": "",\n          "name": "",\n          "iconUri": "",\n          "policies": [\n            {\n              "id": "",\n              "name": "",\n              "description": "",\n              "type": "",\n              "policies": [],\n              "resources": [],\n              "scopes": [],\n              "logic": "",\n              "decisionStrategy": "",\n              "owner": "",\n              "resourceType": "",\n              "resourcesData": [],\n              "scopesData": [],\n              "config": {}\n            }\n          ],\n          "resources": [],\n          "displayName": ""\n        }\n      ],\n      "icon_uri": "",\n      "owner": {},\n      "ownerManagedAccess": false,\n      "displayName": "",\n      "attributes": {},\n      "uri": "",\n      "scopesUma": [\n        {}\n      ]\n    }\n  ],\n  "policies": [\n    {}\n  ],\n  "scopes": [\n    {}\n  ],\n  "decisionStrategy": "",\n  "authorizationSchema": {\n    "resourceTypes": {}\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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import")
  .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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import',
  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({
  id: '',
  clientId: '',
  name: '',
  allowRemoteResourceManagement: false,
  policyEnforcementMode: '',
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [{}]
    }
  ],
  policies: [{}],
  scopes: [{}],
  decisionStrategy: '',
  authorizationSchema: {resourceTypes: {}}
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    policies: [{}],
    scopes: [{}],
    decisionStrategy: '',
    authorizationSchema: {resourceTypes: {}}
  },
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  clientId: '',
  name: '',
  allowRemoteResourceManagement: false,
  policyEnforcementMode: '',
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [
        {}
      ]
    }
  ],
  policies: [
    {}
  ],
  scopes: [
    {}
  ],
  decisionStrategy: '',
  authorizationSchema: {
    resourceTypes: {}
  }
});

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    policies: [{}],
    scopes: [{}],
    decisionStrategy: '',
    authorizationSchema: {resourceTypes: {}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}}'
};

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 = @{ @"id": @"",
                              @"clientId": @"",
                              @"name": @"",
                              @"allowRemoteResourceManagement": @NO,
                              @"policyEnforcementMode": @"",
                              @"resources": @[ @{ @"_id": @"", @"name": @"", @"uris": @[  ], @"type": @"", @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ], @"icon_uri": @"", @"owner": @{  }, @"ownerManagedAccess": @NO, @"displayName": @"", @"attributes": @{  }, @"uri": @"", @"scopesUma": @[ @{  } ] } ],
                              @"policies": @[ @{  } ],
                              @"scopes": @[ @{  } ],
                              @"decisionStrategy": @"",
                              @"authorizationSchema": @{ @"resourceTypes": @{  } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import",
  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([
    'id' => '',
    'clientId' => '',
    'name' => '',
    'allowRemoteResourceManagement' => null,
    'policyEnforcementMode' => '',
    'resources' => [
        [
                '_id' => '',
                'name' => '',
                'uris' => [
                                
                ],
                'type' => '',
                'scopes' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'iconUri' => '',
                                                                'policies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => ''
                                ]
                ],
                'icon_uri' => '',
                'owner' => [
                                
                ],
                'ownerManagedAccess' => null,
                'displayName' => '',
                'attributes' => [
                                
                ],
                'uri' => '',
                'scopesUma' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'policies' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ],
    'decisionStrategy' => '',
    'authorizationSchema' => [
        'resourceTypes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import', [
  'body' => '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'clientId' => '',
  'name' => '',
  'allowRemoteResourceManagement' => null,
  'policyEnforcementMode' => '',
  'resources' => [
    [
        '_id' => '',
        'name' => '',
        'uris' => [
                
        ],
        'type' => '',
        'scopes' => [
                [
                                'id' => '',
                                'name' => '',
                                'iconUri' => '',
                                'policies' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'description' => '',
                                                                                                                                'type' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'logic' => '',
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'resourceType' => '',
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'resources' => [
                                                                
                                ],
                                'displayName' => ''
                ]
        ],
        'icon_uri' => '',
        'owner' => [
                
        ],
        'ownerManagedAccess' => null,
        'displayName' => '',
        'attributes' => [
                
        ],
        'uri' => '',
        'scopesUma' => [
                [
                                
                ]
        ]
    ]
  ],
  'policies' => [
    [
        
    ]
  ],
  'scopes' => [
    [
        
    ]
  ],
  'decisionStrategy' => '',
  'authorizationSchema' => [
    'resourceTypes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'clientId' => '',
  'name' => '',
  'allowRemoteResourceManagement' => null,
  'policyEnforcementMode' => '',
  'resources' => [
    [
        '_id' => '',
        'name' => '',
        'uris' => [
                
        ],
        'type' => '',
        'scopes' => [
                [
                                'id' => '',
                                'name' => '',
                                'iconUri' => '',
                                'policies' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'description' => '',
                                                                                                                                'type' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'logic' => '',
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'resourceType' => '',
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'resources' => [
                                                                
                                ],
                                'displayName' => ''
                ]
        ],
        'icon_uri' => '',
        'owner' => [
                
        ],
        'ownerManagedAccess' => null,
        'displayName' => '',
        'attributes' => [
                
        ],
        'uri' => '',
        'scopesUma' => [
                [
                                
                ]
        ]
    ]
  ],
  'policies' => [
    [
        
    ]
  ],
  'scopes' => [
    [
        
    ]
  ],
  'decisionStrategy' => '',
  'authorizationSchema' => [
    'resourceTypes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import');
$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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import"

payload = {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": False,
    "policyEnforcementMode": "",
    "resources": [
        {
            "_id": "",
            "name": "",
            "uris": [],
            "type": "",
            "scopes": [
                {
                    "id": "",
                    "name": "",
                    "iconUri": "",
                    "policies": [
                        {
                            "id": "",
                            "name": "",
                            "description": "",
                            "type": "",
                            "policies": [],
                            "resources": [],
                            "scopes": [],
                            "logic": "",
                            "decisionStrategy": "",
                            "owner": "",
                            "resourceType": "",
                            "resourcesData": [],
                            "scopesData": [],
                            "config": {}
                        }
                    ],
                    "resources": [],
                    "displayName": ""
                }
            ],
            "icon_uri": "",
            "owner": {},
            "ownerManagedAccess": False,
            "displayName": "",
            "attributes": {},
            "uri": "",
            "scopesUma": [{}]
        }
    ],
    "policies": [{}],
    "scopes": [{}],
    "decisionStrategy": "",
    "authorizationSchema": { "resourceTypes": {} }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import"

payload <- "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import")

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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import";

    let payload = json!({
        "id": "",
        "clientId": "",
        "name": "",
        "allowRemoteResourceManagement": false,
        "policyEnforcementMode": "",
        "resources": (
            json!({
                "_id": "",
                "name": "",
                "uris": (),
                "type": "",
                "scopes": (
                    json!({
                        "id": "",
                        "name": "",
                        "iconUri": "",
                        "policies": (
                            json!({
                                "id": "",
                                "name": "",
                                "description": "",
                                "type": "",
                                "policies": (),
                                "resources": (),
                                "scopes": (),
                                "logic": "",
                                "decisionStrategy": "",
                                "owner": "",
                                "resourceType": "",
                                "resourcesData": (),
                                "scopesData": (),
                                "config": json!({})
                            })
                        ),
                        "resources": (),
                        "displayName": ""
                    })
                ),
                "icon_uri": "",
                "owner": json!({}),
                "ownerManagedAccess": false,
                "displayName": "",
                "attributes": json!({}),
                "uri": "",
                "scopesUma": (json!({}))
            })
        ),
        "policies": (json!({})),
        "scopes": (json!({})),
        "decisionStrategy": "",
        "authorizationSchema": json!({"resourceTypes": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}'
echo '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "clientId": "",\n  "name": "",\n  "allowRemoteResourceManagement": false,\n  "policyEnforcementMode": "",\n  "resources": [\n    {\n      "_id": "",\n      "name": "",\n      "uris": [],\n      "type": "",\n      "scopes": [\n        {\n          "id": "",\n          "name": "",\n          "iconUri": "",\n          "policies": [\n            {\n              "id": "",\n              "name": "",\n              "description": "",\n              "type": "",\n              "policies": [],\n              "resources": [],\n              "scopes": [],\n              "logic": "",\n              "decisionStrategy": "",\n              "owner": "",\n              "resourceType": "",\n              "resourcesData": [],\n              "scopesData": [],\n              "config": {}\n            }\n          ],\n          "resources": [],\n          "displayName": ""\n        }\n      ],\n      "icon_uri": "",\n      "owner": {},\n      "ownerManagedAccess": false,\n      "displayName": "",\n      "attributes": {},\n      "uri": "",\n      "scopesUma": [\n        {}\n      ]\n    }\n  ],\n  "policies": [\n    {}\n  ],\n  "scopes": [\n    {}\n  ],\n  "decisionStrategy": "",\n  "authorizationSchema": {\n    "resourceTypes": {}\n  }\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    [
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        [
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            [
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": []
            ]
          ],
          "resources": [],
          "displayName": ""
        ]
      ],
      "icon_uri": "",
      "owner": [],
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": [],
      "uri": "",
      "scopesUma": [[]]
    ]
  ],
  "policies": [[]],
  "scopes": [[]],
  "decisionStrategy": "",
  "authorizationSchema": ["resourceTypes": []]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/import")! 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 post -admin-realms--realm-clients--client-uuid-authz-resource-server-permission-evaluate
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate
BODY json

{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate");

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  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate" {:content-type :json
                                                                                                                               :form-params {:context {}
                                                                                                                                             :resources [{:_id ""
                                                                                                                                                          :name ""
                                                                                                                                                          :uris []
                                                                                                                                                          :type ""
                                                                                                                                                          :scopes [{:id ""
                                                                                                                                                                    :name ""
                                                                                                                                                                    :iconUri ""
                                                                                                                                                                    :policies [{:id ""
                                                                                                                                                                                :name ""
                                                                                                                                                                                :description ""
                                                                                                                                                                                :type ""
                                                                                                                                                                                :policies []
                                                                                                                                                                                :resources []
                                                                                                                                                                                :scopes []
                                                                                                                                                                                :logic ""
                                                                                                                                                                                :decisionStrategy ""
                                                                                                                                                                                :owner ""
                                                                                                                                                                                :resourceType ""
                                                                                                                                                                                :resourcesData []
                                                                                                                                                                                :scopesData []
                                                                                                                                                                                :config {}}]
                                                                                                                                                                    :resources []
                                                                                                                                                                    :displayName ""}]
                                                                                                                                                          :icon_uri ""
                                                                                                                                                          :owner {}
                                                                                                                                                          :ownerManagedAccess false
                                                                                                                                                          :displayName ""
                                                                                                                                                          :attributes {}
                                                                                                                                                          :uri ""
                                                                                                                                                          :scopesUma [{}]}]
                                                                                                                                             :resourceType ""
                                                                                                                                             :clientId ""
                                                                                                                                             :userId ""
                                                                                                                                             :roleIds []
                                                                                                                                             :entitlements false}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate"),
    Content = new StringContent("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate"

	payload := strings.NewReader("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1056

{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate")
  .header("content-type", "application/json")
  .body("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}")
  .asString();
const data = JSON.stringify({
  context: {},
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [
        {}
      ]
    }
  ],
  resourceType: '',
  clientId: '',
  userId: '',
  roleIds: [],
  entitlements: 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate',
  headers: {'content-type': 'application/json'},
  data: {
    context: {},
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    resourceType: '',
    clientId: '',
    userId: '',
    roleIds: [],
    entitlements: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"context":{},"resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"resourceType":"","clientId":"","userId":"","roleIds":[],"entitlements":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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "context": {},\n  "resources": [\n    {\n      "_id": "",\n      "name": "",\n      "uris": [],\n      "type": "",\n      "scopes": [\n        {\n          "id": "",\n          "name": "",\n          "iconUri": "",\n          "policies": [\n            {\n              "id": "",\n              "name": "",\n              "description": "",\n              "type": "",\n              "policies": [],\n              "resources": [],\n              "scopes": [],\n              "logic": "",\n              "decisionStrategy": "",\n              "owner": "",\n              "resourceType": "",\n              "resourcesData": [],\n              "scopesData": [],\n              "config": {}\n            }\n          ],\n          "resources": [],\n          "displayName": ""\n        }\n      ],\n      "icon_uri": "",\n      "owner": {},\n      "ownerManagedAccess": false,\n      "displayName": "",\n      "attributes": {},\n      "uri": "",\n      "scopesUma": [\n        {}\n      ]\n    }\n  ],\n  "resourceType": "",\n  "clientId": "",\n  "userId": "",\n  "roleIds": [],\n  "entitlements": 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  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate")
  .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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate',
  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({
  context: {},
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [{}]
    }
  ],
  resourceType: '',
  clientId: '',
  userId: '',
  roleIds: [],
  entitlements: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate',
  headers: {'content-type': 'application/json'},
  body: {
    context: {},
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    resourceType: '',
    clientId: '',
    userId: '',
    roleIds: [],
    entitlements: 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  context: {},
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [
        {}
      ]
    }
  ],
  resourceType: '',
  clientId: '',
  userId: '',
  roleIds: [],
  entitlements: 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate',
  headers: {'content-type': 'application/json'},
  data: {
    context: {},
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    resourceType: '',
    clientId: '',
    userId: '',
    roleIds: [],
    entitlements: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"context":{},"resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"resourceType":"","clientId":"","userId":"","roleIds":[],"entitlements":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 = @{ @"context": @{  },
                              @"resources": @[ @{ @"_id": @"", @"name": @"", @"uris": @[  ], @"type": @"", @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ], @"icon_uri": @"", @"owner": @{  }, @"ownerManagedAccess": @NO, @"displayName": @"", @"attributes": @{  }, @"uri": @"", @"scopesUma": @[ @{  } ] } ],
                              @"resourceType": @"",
                              @"clientId": @"",
                              @"userId": @"",
                              @"roleIds": @[  ],
                              @"entitlements": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate",
  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([
    'context' => [
        
    ],
    'resources' => [
        [
                '_id' => '',
                'name' => '',
                'uris' => [
                                
                ],
                'type' => '',
                'scopes' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'iconUri' => '',
                                                                'policies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => ''
                                ]
                ],
                'icon_uri' => '',
                'owner' => [
                                
                ],
                'ownerManagedAccess' => null,
                'displayName' => '',
                'attributes' => [
                                
                ],
                'uri' => '',
                'scopesUma' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'resourceType' => '',
    'clientId' => '',
    'userId' => '',
    'roleIds' => [
        
    ],
    'entitlements' => 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate', [
  'body' => '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'context' => [
    
  ],
  'resources' => [
    [
        '_id' => '',
        'name' => '',
        'uris' => [
                
        ],
        'type' => '',
        'scopes' => [
                [
                                'id' => '',
                                'name' => '',
                                'iconUri' => '',
                                'policies' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'description' => '',
                                                                                                                                'type' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'logic' => '',
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'resourceType' => '',
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'resources' => [
                                                                
                                ],
                                'displayName' => ''
                ]
        ],
        'icon_uri' => '',
        'owner' => [
                
        ],
        'ownerManagedAccess' => null,
        'displayName' => '',
        'attributes' => [
                
        ],
        'uri' => '',
        'scopesUma' => [
                [
                                
                ]
        ]
    ]
  ],
  'resourceType' => '',
  'clientId' => '',
  'userId' => '',
  'roleIds' => [
    
  ],
  'entitlements' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'context' => [
    
  ],
  'resources' => [
    [
        '_id' => '',
        'name' => '',
        'uris' => [
                
        ],
        'type' => '',
        'scopes' => [
                [
                                'id' => '',
                                'name' => '',
                                'iconUri' => '',
                                'policies' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'description' => '',
                                                                                                                                'type' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'logic' => '',
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'resourceType' => '',
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'resources' => [
                                                                
                                ],
                                'displayName' => ''
                ]
        ],
        'icon_uri' => '',
        'owner' => [
                
        ],
        'ownerManagedAccess' => null,
        'displayName' => '',
        'attributes' => [
                
        ],
        'uri' => '',
        'scopesUma' => [
                [
                                
                ]
        ]
    ]
  ],
  'resourceType' => '',
  'clientId' => '',
  'userId' => '',
  'roleIds' => [
    
  ],
  'entitlements' => null
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate');
$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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate"

payload = {
    "context": {},
    "resources": [
        {
            "_id": "",
            "name": "",
            "uris": [],
            "type": "",
            "scopes": [
                {
                    "id": "",
                    "name": "",
                    "iconUri": "",
                    "policies": [
                        {
                            "id": "",
                            "name": "",
                            "description": "",
                            "type": "",
                            "policies": [],
                            "resources": [],
                            "scopes": [],
                            "logic": "",
                            "decisionStrategy": "",
                            "owner": "",
                            "resourceType": "",
                            "resourcesData": [],
                            "scopesData": [],
                            "config": {}
                        }
                    ],
                    "resources": [],
                    "displayName": ""
                }
            ],
            "icon_uri": "",
            "owner": {},
            "ownerManagedAccess": False,
            "displayName": "",
            "attributes": {},
            "uri": "",
            "scopesUma": [{}]
        }
    ],
    "resourceType": "",
    "clientId": "",
    "userId": "",
    "roleIds": [],
    "entitlements": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate"

payload <- "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate")

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  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate') do |req|
  req.body = "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate";

    let payload = json!({
        "context": json!({}),
        "resources": (
            json!({
                "_id": "",
                "name": "",
                "uris": (),
                "type": "",
                "scopes": (
                    json!({
                        "id": "",
                        "name": "",
                        "iconUri": "",
                        "policies": (
                            json!({
                                "id": "",
                                "name": "",
                                "description": "",
                                "type": "",
                                "policies": (),
                                "resources": (),
                                "scopes": (),
                                "logic": "",
                                "decisionStrategy": "",
                                "owner": "",
                                "resourceType": "",
                                "resourcesData": (),
                                "scopesData": (),
                                "config": json!({})
                            })
                        ),
                        "resources": (),
                        "displayName": ""
                    })
                ),
                "icon_uri": "",
                "owner": json!({}),
                "ownerManagedAccess": false,
                "displayName": "",
                "attributes": json!({}),
                "uri": "",
                "scopesUma": (json!({}))
            })
        ),
        "resourceType": "",
        "clientId": "",
        "userId": "",
        "roleIds": (),
        "entitlements": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate \
  --header 'content-type: application/json' \
  --data '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}'
echo '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "context": {},\n  "resources": [\n    {\n      "_id": "",\n      "name": "",\n      "uris": [],\n      "type": "",\n      "scopes": [\n        {\n          "id": "",\n          "name": "",\n          "iconUri": "",\n          "policies": [\n            {\n              "id": "",\n              "name": "",\n              "description": "",\n              "type": "",\n              "policies": [],\n              "resources": [],\n              "scopes": [],\n              "logic": "",\n              "decisionStrategy": "",\n              "owner": "",\n              "resourceType": "",\n              "resourcesData": [],\n              "scopesData": [],\n              "config": {}\n            }\n          ],\n          "resources": [],\n          "displayName": ""\n        }\n      ],\n      "icon_uri": "",\n      "owner": {},\n      "ownerManagedAccess": false,\n      "displayName": "",\n      "attributes": {},\n      "uri": "",\n      "scopesUma": [\n        {}\n      ]\n    }\n  ],\n  "resourceType": "",\n  "clientId": "",\n  "userId": "",\n  "roleIds": [],\n  "entitlements": false\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "context": [],
  "resources": [
    [
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        [
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            [
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": []
            ]
          ],
          "resources": [],
          "displayName": ""
        ]
      ],
      "icon_uri": "",
      "owner": [],
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": [],
      "uri": "",
      "scopesUma": [[]]
    ]
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission/evaluate")! 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 post -admin-realms--realm-clients--client-uuid-authz-resource-server-permission
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission
http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/permission")! 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 post -admin-realms--realm-clients--client-uuid-authz-resource-server-policy-evaluate
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate
BODY json

{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate");

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  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate" {:content-type :json
                                                                                                                           :form-params {:context {}
                                                                                                                                         :resources [{:_id ""
                                                                                                                                                      :name ""
                                                                                                                                                      :uris []
                                                                                                                                                      :type ""
                                                                                                                                                      :scopes [{:id ""
                                                                                                                                                                :name ""
                                                                                                                                                                :iconUri ""
                                                                                                                                                                :policies [{:id ""
                                                                                                                                                                            :name ""
                                                                                                                                                                            :description ""
                                                                                                                                                                            :type ""
                                                                                                                                                                            :policies []
                                                                                                                                                                            :resources []
                                                                                                                                                                            :scopes []
                                                                                                                                                                            :logic ""
                                                                                                                                                                            :decisionStrategy ""
                                                                                                                                                                            :owner ""
                                                                                                                                                                            :resourceType ""
                                                                                                                                                                            :resourcesData []
                                                                                                                                                                            :scopesData []
                                                                                                                                                                            :config {}}]
                                                                                                                                                                :resources []
                                                                                                                                                                :displayName ""}]
                                                                                                                                                      :icon_uri ""
                                                                                                                                                      :owner {}
                                                                                                                                                      :ownerManagedAccess false
                                                                                                                                                      :displayName ""
                                                                                                                                                      :attributes {}
                                                                                                                                                      :uri ""
                                                                                                                                                      :scopesUma [{}]}]
                                                                                                                                         :resourceType ""
                                                                                                                                         :clientId ""
                                                                                                                                         :userId ""
                                                                                                                                         :roleIds []
                                                                                                                                         :entitlements false}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate"),
    Content = new StringContent("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate"

	payload := strings.NewReader("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1056

{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate")
  .header("content-type", "application/json")
  .body("{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}")
  .asString();
const data = JSON.stringify({
  context: {},
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [
        {}
      ]
    }
  ],
  resourceType: '',
  clientId: '',
  userId: '',
  roleIds: [],
  entitlements: 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate',
  headers: {'content-type': 'application/json'},
  data: {
    context: {},
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    resourceType: '',
    clientId: '',
    userId: '',
    roleIds: [],
    entitlements: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"context":{},"resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"resourceType":"","clientId":"","userId":"","roleIds":[],"entitlements":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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "context": {},\n  "resources": [\n    {\n      "_id": "",\n      "name": "",\n      "uris": [],\n      "type": "",\n      "scopes": [\n        {\n          "id": "",\n          "name": "",\n          "iconUri": "",\n          "policies": [\n            {\n              "id": "",\n              "name": "",\n              "description": "",\n              "type": "",\n              "policies": [],\n              "resources": [],\n              "scopes": [],\n              "logic": "",\n              "decisionStrategy": "",\n              "owner": "",\n              "resourceType": "",\n              "resourcesData": [],\n              "scopesData": [],\n              "config": {}\n            }\n          ],\n          "resources": [],\n          "displayName": ""\n        }\n      ],\n      "icon_uri": "",\n      "owner": {},\n      "ownerManagedAccess": false,\n      "displayName": "",\n      "attributes": {},\n      "uri": "",\n      "scopesUma": [\n        {}\n      ]\n    }\n  ],\n  "resourceType": "",\n  "clientId": "",\n  "userId": "",\n  "roleIds": [],\n  "entitlements": 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  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate")
  .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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate',
  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({
  context: {},
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [{}]
    }
  ],
  resourceType: '',
  clientId: '',
  userId: '',
  roleIds: [],
  entitlements: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate',
  headers: {'content-type': 'application/json'},
  body: {
    context: {},
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    resourceType: '',
    clientId: '',
    userId: '',
    roleIds: [],
    entitlements: 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  context: {},
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [
        {}
      ]
    }
  ],
  resourceType: '',
  clientId: '',
  userId: '',
  roleIds: [],
  entitlements: 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate',
  headers: {'content-type': 'application/json'},
  data: {
    context: {},
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    resourceType: '',
    clientId: '',
    userId: '',
    roleIds: [],
    entitlements: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"context":{},"resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"resourceType":"","clientId":"","userId":"","roleIds":[],"entitlements":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 = @{ @"context": @{  },
                              @"resources": @[ @{ @"_id": @"", @"name": @"", @"uris": @[  ], @"type": @"", @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ], @"icon_uri": @"", @"owner": @{  }, @"ownerManagedAccess": @NO, @"displayName": @"", @"attributes": @{  }, @"uri": @"", @"scopesUma": @[ @{  } ] } ],
                              @"resourceType": @"",
                              @"clientId": @"",
                              @"userId": @"",
                              @"roleIds": @[  ],
                              @"entitlements": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate",
  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([
    'context' => [
        
    ],
    'resources' => [
        [
                '_id' => '',
                'name' => '',
                'uris' => [
                                
                ],
                'type' => '',
                'scopes' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'iconUri' => '',
                                                                'policies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => ''
                                ]
                ],
                'icon_uri' => '',
                'owner' => [
                                
                ],
                'ownerManagedAccess' => null,
                'displayName' => '',
                'attributes' => [
                                
                ],
                'uri' => '',
                'scopesUma' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'resourceType' => '',
    'clientId' => '',
    'userId' => '',
    'roleIds' => [
        
    ],
    'entitlements' => 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate', [
  'body' => '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'context' => [
    
  ],
  'resources' => [
    [
        '_id' => '',
        'name' => '',
        'uris' => [
                
        ],
        'type' => '',
        'scopes' => [
                [
                                'id' => '',
                                'name' => '',
                                'iconUri' => '',
                                'policies' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'description' => '',
                                                                                                                                'type' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'logic' => '',
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'resourceType' => '',
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'resources' => [
                                                                
                                ],
                                'displayName' => ''
                ]
        ],
        'icon_uri' => '',
        'owner' => [
                
        ],
        'ownerManagedAccess' => null,
        'displayName' => '',
        'attributes' => [
                
        ],
        'uri' => '',
        'scopesUma' => [
                [
                                
                ]
        ]
    ]
  ],
  'resourceType' => '',
  'clientId' => '',
  'userId' => '',
  'roleIds' => [
    
  ],
  'entitlements' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'context' => [
    
  ],
  'resources' => [
    [
        '_id' => '',
        'name' => '',
        'uris' => [
                
        ],
        'type' => '',
        'scopes' => [
                [
                                'id' => '',
                                'name' => '',
                                'iconUri' => '',
                                'policies' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'description' => '',
                                                                                                                                'type' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'logic' => '',
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'resourceType' => '',
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'resources' => [
                                                                
                                ],
                                'displayName' => ''
                ]
        ],
        'icon_uri' => '',
        'owner' => [
                
        ],
        'ownerManagedAccess' => null,
        'displayName' => '',
        'attributes' => [
                
        ],
        'uri' => '',
        'scopesUma' => [
                [
                                
                ]
        ]
    ]
  ],
  'resourceType' => '',
  'clientId' => '',
  'userId' => '',
  'roleIds' => [
    
  ],
  'entitlements' => null
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate');
$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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate"

payload = {
    "context": {},
    "resources": [
        {
            "_id": "",
            "name": "",
            "uris": [],
            "type": "",
            "scopes": [
                {
                    "id": "",
                    "name": "",
                    "iconUri": "",
                    "policies": [
                        {
                            "id": "",
                            "name": "",
                            "description": "",
                            "type": "",
                            "policies": [],
                            "resources": [],
                            "scopes": [],
                            "logic": "",
                            "decisionStrategy": "",
                            "owner": "",
                            "resourceType": "",
                            "resourcesData": [],
                            "scopesData": [],
                            "config": {}
                        }
                    ],
                    "resources": [],
                    "displayName": ""
                }
            ],
            "icon_uri": "",
            "owner": {},
            "ownerManagedAccess": False,
            "displayName": "",
            "attributes": {},
            "uri": "",
            "scopesUma": [{}]
        }
    ],
    "resourceType": "",
    "clientId": "",
    "userId": "",
    "roleIds": [],
    "entitlements": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate"

payload <- "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate")

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  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": 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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate') do |req|
  req.body = "{\n  \"context\": {},\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"resourceType\": \"\",\n  \"clientId\": \"\",\n  \"userId\": \"\",\n  \"roleIds\": [],\n  \"entitlements\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate";

    let payload = json!({
        "context": json!({}),
        "resources": (
            json!({
                "_id": "",
                "name": "",
                "uris": (),
                "type": "",
                "scopes": (
                    json!({
                        "id": "",
                        "name": "",
                        "iconUri": "",
                        "policies": (
                            json!({
                                "id": "",
                                "name": "",
                                "description": "",
                                "type": "",
                                "policies": (),
                                "resources": (),
                                "scopes": (),
                                "logic": "",
                                "decisionStrategy": "",
                                "owner": "",
                                "resourceType": "",
                                "resourcesData": (),
                                "scopesData": (),
                                "config": json!({})
                            })
                        ),
                        "resources": (),
                        "displayName": ""
                    })
                ),
                "icon_uri": "",
                "owner": json!({}),
                "ownerManagedAccess": false,
                "displayName": "",
                "attributes": json!({}),
                "uri": "",
                "scopesUma": (json!({}))
            })
        ),
        "resourceType": "",
        "clientId": "",
        "userId": "",
        "roleIds": (),
        "entitlements": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate \
  --header 'content-type: application/json' \
  --data '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}'
echo '{
  "context": {},
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "context": {},\n  "resources": [\n    {\n      "_id": "",\n      "name": "",\n      "uris": [],\n      "type": "",\n      "scopes": [\n        {\n          "id": "",\n          "name": "",\n          "iconUri": "",\n          "policies": [\n            {\n              "id": "",\n              "name": "",\n              "description": "",\n              "type": "",\n              "policies": [],\n              "resources": [],\n              "scopes": [],\n              "logic": "",\n              "decisionStrategy": "",\n              "owner": "",\n              "resourceType": "",\n              "resourcesData": [],\n              "scopesData": [],\n              "config": {}\n            }\n          ],\n          "resources": [],\n          "displayName": ""\n        }\n      ],\n      "icon_uri": "",\n      "owner": {},\n      "ownerManagedAccess": false,\n      "displayName": "",\n      "attributes": {},\n      "uri": "",\n      "scopesUma": [\n        {}\n      ]\n    }\n  ],\n  "resourceType": "",\n  "clientId": "",\n  "userId": "",\n  "roleIds": [],\n  "entitlements": false\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "context": [],
  "resources": [
    [
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        [
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            [
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": []
            ]
          ],
          "resources": [],
          "displayName": ""
        ]
      ],
      "icon_uri": "",
      "owner": [],
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": [],
      "uri": "",
      "scopesUma": [[]]
    ]
  ],
  "resourceType": "",
  "clientId": "",
  "userId": "",
  "roleIds": [],
  "entitlements": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy/evaluate")! 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 post -admin-realms--realm-clients--client-uuid-authz-resource-server-policy
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"

	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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"))
    .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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
  .asString();
const 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy';
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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy",
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")

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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy";

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy
http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/policy")! 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 post -admin-realms--realm-clients--client-uuid-authz-resource-server-resource
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource
BODY json

{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource");

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  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource" {:content-type :json
                                                                                                                    :form-params {:_id ""
                                                                                                                                  :name ""
                                                                                                                                  :uris []
                                                                                                                                  :type ""
                                                                                                                                  :scopes [{:id ""
                                                                                                                                            :name ""
                                                                                                                                            :iconUri ""
                                                                                                                                            :policies [{:id ""
                                                                                                                                                        :name ""
                                                                                                                                                        :description ""
                                                                                                                                                        :type ""
                                                                                                                                                        :policies []
                                                                                                                                                        :resources []
                                                                                                                                                        :scopes []
                                                                                                                                                        :logic ""
                                                                                                                                                        :decisionStrategy ""
                                                                                                                                                        :owner ""
                                                                                                                                                        :resourceType ""
                                                                                                                                                        :resourcesData []
                                                                                                                                                        :scopesData []
                                                                                                                                                        :config {}}]
                                                                                                                                            :resources []
                                                                                                                                            :displayName ""}]
                                                                                                                                  :icon_uri ""
                                                                                                                                  :owner {}
                                                                                                                                  :ownerManagedAccess false
                                                                                                                                  :displayName ""
                                                                                                                                  :attributes {}
                                                                                                                                  :uri ""
                                                                                                                                  :scopesUma [{}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"),
    Content = new StringContent("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"

	payload := strings.NewReader("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 748

{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
  .header("content-type", "application/json")
  .body("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}")
  .asString();
const data = JSON.stringify({
  _id: '',
  name: '',
  uris: [],
  type: '',
  scopes: [
    {
      id: '',
      name: '',
      iconUri: '',
      policies: [
        {
          id: '',
          name: '',
          description: '',
          type: '',
          policies: [],
          resources: [],
          scopes: [],
          logic: '',
          decisionStrategy: '',
          owner: '',
          resourceType: '',
          resourcesData: [],
          scopesData: [],
          config: {}
        }
      ],
      resources: [],
      displayName: ''
    }
  ],
  icon_uri: '',
  owner: {},
  ownerManagedAccess: false,
  displayName: '',
  attributes: {},
  uri: '',
  scopesUma: [
    {}
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource',
  headers: {'content-type': 'application/json'},
  data: {
    _id: '',
    name: '',
    uris: [],
    type: '',
    scopes: [
      {
        id: '',
        name: '',
        iconUri: '',
        policies: [
          {
            id: '',
            name: '',
            description: '',
            type: '',
            policies: [],
            resources: [],
            scopes: [],
            logic: '',
            decisionStrategy: '',
            owner: '',
            resourceType: '',
            resourcesData: [],
            scopesData: [],
            config: {}
          }
        ],
        resources: [],
        displayName: ''
      }
    ],
    icon_uri: '',
    owner: {},
    ownerManagedAccess: false,
    displayName: '',
    attributes: {},
    uri: '',
    scopesUma: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "_id": "",\n  "name": "",\n  "uris": [],\n  "type": "",\n  "scopes": [\n    {\n      "id": "",\n      "name": "",\n      "iconUri": "",\n      "policies": [\n        {\n          "id": "",\n          "name": "",\n          "description": "",\n          "type": "",\n          "policies": [],\n          "resources": [],\n          "scopes": [],\n          "logic": "",\n          "decisionStrategy": "",\n          "owner": "",\n          "resourceType": "",\n          "resourcesData": [],\n          "scopesData": [],\n          "config": {}\n        }\n      ],\n      "resources": [],\n      "displayName": ""\n    }\n  ],\n  "icon_uri": "",\n  "owner": {},\n  "ownerManagedAccess": false,\n  "displayName": "",\n  "attributes": {},\n  "uri": "",\n  "scopesUma": [\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  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")
  .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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource',
  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({
  _id: '',
  name: '',
  uris: [],
  type: '',
  scopes: [
    {
      id: '',
      name: '',
      iconUri: '',
      policies: [
        {
          id: '',
          name: '',
          description: '',
          type: '',
          policies: [],
          resources: [],
          scopes: [],
          logic: '',
          decisionStrategy: '',
          owner: '',
          resourceType: '',
          resourcesData: [],
          scopesData: [],
          config: {}
        }
      ],
      resources: [],
      displayName: ''
    }
  ],
  icon_uri: '',
  owner: {},
  ownerManagedAccess: false,
  displayName: '',
  attributes: {},
  uri: '',
  scopesUma: [{}]
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource',
  headers: {'content-type': 'application/json'},
  body: {
    _id: '',
    name: '',
    uris: [],
    type: '',
    scopes: [
      {
        id: '',
        name: '',
        iconUri: '',
        policies: [
          {
            id: '',
            name: '',
            description: '',
            type: '',
            policies: [],
            resources: [],
            scopes: [],
            logic: '',
            decisionStrategy: '',
            owner: '',
            resourceType: '',
            resourcesData: [],
            scopesData: [],
            config: {}
          }
        ],
        resources: [],
        displayName: ''
      }
    ],
    icon_uri: '',
    owner: {},
    ownerManagedAccess: false,
    displayName: '',
    attributes: {},
    uri: '',
    scopesUma: [{}]
  },
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  _id: '',
  name: '',
  uris: [],
  type: '',
  scopes: [
    {
      id: '',
      name: '',
      iconUri: '',
      policies: [
        {
          id: '',
          name: '',
          description: '',
          type: '',
          policies: [],
          resources: [],
          scopes: [],
          logic: '',
          decisionStrategy: '',
          owner: '',
          resourceType: '',
          resourcesData: [],
          scopesData: [],
          config: {}
        }
      ],
      resources: [],
      displayName: ''
    }
  ],
  icon_uri: '',
  owner: {},
  ownerManagedAccess: false,
  displayName: '',
  attributes: {},
  uri: '',
  scopesUma: [
    {}
  ]
});

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource',
  headers: {'content-type': 'application/json'},
  data: {
    _id: '',
    name: '',
    uris: [],
    type: '',
    scopes: [
      {
        id: '',
        name: '',
        iconUri: '',
        policies: [
          {
            id: '',
            name: '',
            description: '',
            type: '',
            policies: [],
            resources: [],
            scopes: [],
            logic: '',
            decisionStrategy: '',
            owner: '',
            resourceType: '',
            resourcesData: [],
            scopesData: [],
            config: {}
          }
        ],
        resources: [],
        displayName: ''
      }
    ],
    icon_uri: '',
    owner: {},
    ownerManagedAccess: false,
    displayName: '',
    attributes: {},
    uri: '',
    scopesUma: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}'
};

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 = @{ @"_id": @"",
                              @"name": @"",
                              @"uris": @[  ],
                              @"type": @"",
                              @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ],
                              @"icon_uri": @"",
                              @"owner": @{  },
                              @"ownerManagedAccess": @NO,
                              @"displayName": @"",
                              @"attributes": @{  },
                              @"uri": @"",
                              @"scopesUma": @[ @{  } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource",
  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([
    '_id' => '',
    'name' => '',
    'uris' => [
        
    ],
    'type' => '',
    'scopes' => [
        [
                'id' => '',
                'name' => '',
                'iconUri' => '',
                'policies' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'description' => '',
                                                                'type' => '',
                                                                'policies' => [
                                                                                                                                
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'scopes' => [
                                                                                                                                
                                                                ],
                                                                'logic' => '',
                                                                'decisionStrategy' => '',
                                                                'owner' => '',
                                                                'resourceType' => '',
                                                                'resourcesData' => [
                                                                                                                                
                                                                ],
                                                                'scopesData' => [
                                                                                                                                
                                                                ],
                                                                'config' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'resources' => [
                                
                ],
                'displayName' => ''
        ]
    ],
    'icon_uri' => '',
    'owner' => [
        
    ],
    'ownerManagedAccess' => null,
    'displayName' => '',
    'attributes' => [
        
    ],
    'uri' => '',
    'scopesUma' => [
        [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource', [
  'body' => '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  '_id' => '',
  'name' => '',
  'uris' => [
    
  ],
  'type' => '',
  'scopes' => [
    [
        'id' => '',
        'name' => '',
        'iconUri' => '',
        'policies' => [
                [
                                'id' => '',
                                'name' => '',
                                'description' => '',
                                'type' => '',
                                'policies' => [
                                                                
                                ],
                                'resources' => [
                                                                
                                ],
                                'scopes' => [
                                                                
                                ],
                                'logic' => '',
                                'decisionStrategy' => '',
                                'owner' => '',
                                'resourceType' => '',
                                'resourcesData' => [
                                                                
                                ],
                                'scopesData' => [
                                                                
                                ],
                                'config' => [
                                                                
                                ]
                ]
        ],
        'resources' => [
                
        ],
        'displayName' => ''
    ]
  ],
  'icon_uri' => '',
  'owner' => [
    
  ],
  'ownerManagedAccess' => null,
  'displayName' => '',
  'attributes' => [
    
  ],
  'uri' => '',
  'scopesUma' => [
    [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  '_id' => '',
  'name' => '',
  'uris' => [
    
  ],
  'type' => '',
  'scopes' => [
    [
        'id' => '',
        'name' => '',
        'iconUri' => '',
        'policies' => [
                [
                                'id' => '',
                                'name' => '',
                                'description' => '',
                                'type' => '',
                                'policies' => [
                                                                
                                ],
                                'resources' => [
                                                                
                                ],
                                'scopes' => [
                                                                
                                ],
                                'logic' => '',
                                'decisionStrategy' => '',
                                'owner' => '',
                                'resourceType' => '',
                                'resourcesData' => [
                                                                
                                ],
                                'scopesData' => [
                                                                
                                ],
                                'config' => [
                                                                
                                ]
                ]
        ],
        'resources' => [
                
        ],
        'displayName' => ''
    ]
  ],
  'icon_uri' => '',
  'owner' => [
    
  ],
  'ownerManagedAccess' => null,
  'displayName' => '',
  'attributes' => [
    
  ],
  'uri' => '',
  'scopesUma' => [
    [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource');
$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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"

payload = {
    "_id": "",
    "name": "",
    "uris": [],
    "type": "",
    "scopes": [
        {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
                {
                    "id": "",
                    "name": "",
                    "description": "",
                    "type": "",
                    "policies": [],
                    "resources": [],
                    "scopes": [],
                    "logic": "",
                    "decisionStrategy": "",
                    "owner": "",
                    "resourceType": "",
                    "resourcesData": [],
                    "scopesData": [],
                    "config": {}
                }
            ],
            "resources": [],
            "displayName": ""
        }
    ],
    "icon_uri": "",
    "owner": {},
    "ownerManagedAccess": False,
    "displayName": "",
    "attributes": {},
    "uri": "",
    "scopesUma": [{}]
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource"

payload <- "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")

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  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource') do |req|
  req.body = "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource";

    let payload = json!({
        "_id": "",
        "name": "",
        "uris": (),
        "type": "",
        "scopes": (
            json!({
                "id": "",
                "name": "",
                "iconUri": "",
                "policies": (
                    json!({
                        "id": "",
                        "name": "",
                        "description": "",
                        "type": "",
                        "policies": (),
                        "resources": (),
                        "scopes": (),
                        "logic": "",
                        "decisionStrategy": "",
                        "owner": "",
                        "resourceType": "",
                        "resourcesData": (),
                        "scopesData": (),
                        "config": json!({})
                    })
                ),
                "resources": (),
                "displayName": ""
            })
        ),
        "icon_uri": "",
        "owner": json!({}),
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": json!({}),
        "uri": "",
        "scopesUma": (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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource \
  --header 'content-type: application/json' \
  --data '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}'
echo '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "_id": "",\n  "name": "",\n  "uris": [],\n  "type": "",\n  "scopes": [\n    {\n      "id": "",\n      "name": "",\n      "iconUri": "",\n      "policies": [\n        {\n          "id": "",\n          "name": "",\n          "description": "",\n          "type": "",\n          "policies": [],\n          "resources": [],\n          "scopes": [],\n          "logic": "",\n          "decisionStrategy": "",\n          "owner": "",\n          "resourceType": "",\n          "resourcesData": [],\n          "scopesData": [],\n          "config": {}\n        }\n      ],\n      "resources": [],\n      "displayName": ""\n    }\n  ],\n  "icon_uri": "",\n  "owner": {},\n  "ownerManagedAccess": false,\n  "displayName": "",\n  "attributes": {},\n  "uri": "",\n  "scopesUma": [\n    {}\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    [
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        [
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": []
        ]
      ],
      "resources": [],
      "displayName": ""
    ]
  ],
  "icon_uri": "",
  "owner": [],
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": [],
  "uri": "",
  "scopesUma": [[]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource")! 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 post -admin-realms--realm-clients--client-uuid-authz-resource-server-scope
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope
BODY json

{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope");

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  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope" {:content-type :json
                                                                                                                 :form-params {:id ""
                                                                                                                               :name ""
                                                                                                                               :iconUri ""
                                                                                                                               :policies [{:id ""
                                                                                                                                           :name ""
                                                                                                                                           :description ""
                                                                                                                                           :type ""
                                                                                                                                           :policies []
                                                                                                                                           :resources []
                                                                                                                                           :scopes []
                                                                                                                                           :logic ""
                                                                                                                                           :decisionStrategy ""
                                                                                                                                           :owner ""
                                                                                                                                           :resourceType ""
                                                                                                                                           :resourcesData []
                                                                                                                                           :scopesData []
                                                                                                                                           :config {}}]
                                                                                                                               :resources []
                                                                                                                               :displayName ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 424

{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  iconUri: '',
  policies: [
    {
      id: '',
      name: '',
      description: '',
      type: '',
      policies: [],
      resources: [],
      scopes: [],
      logic: '',
      decisionStrategy: '',
      owner: '',
      resourceType: '',
      resourcesData: [],
      scopesData: [],
      config: {}
    }
  ],
  resources: [],
  displayName: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    iconUri: '',
    policies: [
      {
        id: '',
        name: '',
        description: '',
        type: '',
        policies: [],
        resources: [],
        scopes: [],
        logic: '',
        decisionStrategy: '',
        owner: '',
        resourceType: '',
        resourcesData: [],
        scopesData: [],
        config: {}
      }
    ],
    resources: [],
    displayName: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "iconUri": "",\n  "policies": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "type": "",\n      "policies": [],\n      "resources": [],\n      "scopes": [],\n      "logic": "",\n      "decisionStrategy": "",\n      "owner": "",\n      "resourceType": "",\n      "resourcesData": [],\n      "scopesData": [],\n      "config": {}\n    }\n  ],\n  "resources": [],\n  "displayName": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")
  .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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope',
  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({
  id: '',
  name: '',
  iconUri: '',
  policies: [
    {
      id: '',
      name: '',
      description: '',
      type: '',
      policies: [],
      resources: [],
      scopes: [],
      logic: '',
      decisionStrategy: '',
      owner: '',
      resourceType: '',
      resourcesData: [],
      scopesData: [],
      config: {}
    }
  ],
  resources: [],
  displayName: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    iconUri: '',
    policies: [
      {
        id: '',
        name: '',
        description: '',
        type: '',
        policies: [],
        resources: [],
        scopes: [],
        logic: '',
        decisionStrategy: '',
        owner: '',
        resourceType: '',
        resourcesData: [],
        scopesData: [],
        config: {}
      }
    ],
    resources: [],
    displayName: ''
  },
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  iconUri: '',
  policies: [
    {
      id: '',
      name: '',
      description: '',
      type: '',
      policies: [],
      resources: [],
      scopes: [],
      logic: '',
      decisionStrategy: '',
      owner: '',
      resourceType: '',
      resourcesData: [],
      scopesData: [],
      config: {}
    }
  ],
  resources: [],
  displayName: ''
});

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    iconUri: '',
    policies: [
      {
        id: '',
        name: '',
        description: '',
        type: '',
        policies: [],
        resources: [],
        scopes: [],
        logic: '',
        decisionStrategy: '',
        owner: '',
        resourceType: '',
        resourcesData: [],
        scopesData: [],
        config: {}
      }
    ],
    resources: [],
    displayName: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"iconUri": @"",
                              @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ],
                              @"resources": @[  ],
                              @"displayName": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope",
  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([
    'id' => '',
    'name' => '',
    'iconUri' => '',
    'policies' => [
        [
                'id' => '',
                'name' => '',
                'description' => '',
                'type' => '',
                'policies' => [
                                
                ],
                'resources' => [
                                
                ],
                'scopes' => [
                                
                ],
                'logic' => '',
                'decisionStrategy' => '',
                'owner' => '',
                'resourceType' => '',
                'resourcesData' => [
                                
                ],
                'scopesData' => [
                                
                ],
                'config' => [
                                
                ]
        ]
    ],
    'resources' => [
        
    ],
    'displayName' => ''
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope', [
  'body' => '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'iconUri' => '',
  'policies' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'type' => '',
        'policies' => [
                
        ],
        'resources' => [
                
        ],
        'scopes' => [
                
        ],
        'logic' => '',
        'decisionStrategy' => '',
        'owner' => '',
        'resourceType' => '',
        'resourcesData' => [
                
        ],
        'scopesData' => [
                
        ],
        'config' => [
                
        ]
    ]
  ],
  'resources' => [
    
  ],
  'displayName' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'iconUri' => '',
  'policies' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'type' => '',
        'policies' => [
                
        ],
        'resources' => [
                
        ],
        'scopes' => [
                
        ],
        'logic' => '',
        'decisionStrategy' => '',
        'owner' => '',
        'resourceType' => '',
        'resourcesData' => [
                
        ],
        'scopesData' => [
                
        ],
        'config' => [
                
        ]
    ]
  ],
  'resources' => [
    
  ],
  'displayName' => ''
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope');
$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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"

payload = {
    "id": "",
    "name": "",
    "iconUri": "",
    "policies": [
        {
            "id": "",
            "name": "",
            "description": "",
            "type": "",
            "policies": [],
            "resources": [],
            "scopes": [],
            "logic": "",
            "decisionStrategy": "",
            "owner": "",
            "resourceType": "",
            "resourcesData": [],
            "scopesData": [],
            "config": {}
        }
    ],
    "resources": [],
    "displayName": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")

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  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope";

    let payload = json!({
        "id": "",
        "name": "",
        "iconUri": "",
        "policies": (
            json!({
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": (),
                "resources": (),
                "scopes": (),
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": (),
                "scopesData": (),
                "config": json!({})
            })
        ),
        "resources": (),
        "displayName": ""
    });

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}'
echo '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}' |  \
  http POST {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "iconUri": "",\n  "policies": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "type": "",\n      "policies": [],\n      "resources": [],\n      "scopes": [],\n      "logic": "",\n      "decisionStrategy": "",\n      "owner": "",\n      "resourceType": "",\n      "resourcesData": [],\n      "scopesData": [],\n      "config": {}\n    }\n  ],\n  "resources": [],\n  "displayName": ""\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    [
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": []
    ]
  ],
  "resources": [],
  "displayName": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope")! 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 -admin-realms--realm-clients--client-uuid-authz-resource-server-resource--resource-id
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
QUERY PARAMS

resource-id
BODY json

{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id" {:content-type :json
                                                                                                                                :form-params {:_id ""
                                                                                                                                              :name ""
                                                                                                                                              :uris []
                                                                                                                                              :type ""
                                                                                                                                              :scopes [{:id ""
                                                                                                                                                        :name ""
                                                                                                                                                        :iconUri ""
                                                                                                                                                        :policies [{:id ""
                                                                                                                                                                    :name ""
                                                                                                                                                                    :description ""
                                                                                                                                                                    :type ""
                                                                                                                                                                    :policies []
                                                                                                                                                                    :resources []
                                                                                                                                                                    :scopes []
                                                                                                                                                                    :logic ""
                                                                                                                                                                    :decisionStrategy ""
                                                                                                                                                                    :owner ""
                                                                                                                                                                    :resourceType ""
                                                                                                                                                                    :resourcesData []
                                                                                                                                                                    :scopesData []
                                                                                                                                                                    :config {}}]
                                                                                                                                                        :resources []
                                                                                                                                                        :displayName ""}]
                                                                                                                                              :icon_uri ""
                                                                                                                                              :owner {}
                                                                                                                                              :ownerManagedAccess false
                                                                                                                                              :displayName ""
                                                                                                                                              :attributes {}
                                                                                                                                              :uri ""
                                                                                                                                              :scopesUma [{}]}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"),
    Content = new StringContent("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"

	payload := strings.NewReader("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 748

{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id")
  .header("content-type", "application/json")
  .body("{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}")
  .asString();
const data = JSON.stringify({
  _id: '',
  name: '',
  uris: [],
  type: '',
  scopes: [
    {
      id: '',
      name: '',
      iconUri: '',
      policies: [
        {
          id: '',
          name: '',
          description: '',
          type: '',
          policies: [],
          resources: [],
          scopes: [],
          logic: '',
          decisionStrategy: '',
          owner: '',
          resourceType: '',
          resourcesData: [],
          scopesData: [],
          config: {}
        }
      ],
      resources: [],
      displayName: ''
    }
  ],
  icon_uri: '',
  owner: {},
  ownerManagedAccess: false,
  displayName: '',
  attributes: {},
  uri: '',
  scopesUma: [
    {}
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id',
  headers: {'content-type': 'application/json'},
  data: {
    _id: '',
    name: '',
    uris: [],
    type: '',
    scopes: [
      {
        id: '',
        name: '',
        iconUri: '',
        policies: [
          {
            id: '',
            name: '',
            description: '',
            type: '',
            policies: [],
            resources: [],
            scopes: [],
            logic: '',
            decisionStrategy: '',
            owner: '',
            resourceType: '',
            resourcesData: [],
            scopesData: [],
            config: {}
          }
        ],
        resources: [],
        displayName: ''
      }
    ],
    icon_uri: '',
    owner: {},
    ownerManagedAccess: false,
    displayName: '',
    attributes: {},
    uri: '',
    scopesUma: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "_id": "",\n  "name": "",\n  "uris": [],\n  "type": "",\n  "scopes": [\n    {\n      "id": "",\n      "name": "",\n      "iconUri": "",\n      "policies": [\n        {\n          "id": "",\n          "name": "",\n          "description": "",\n          "type": "",\n          "policies": [],\n          "resources": [],\n          "scopes": [],\n          "logic": "",\n          "decisionStrategy": "",\n          "owner": "",\n          "resourceType": "",\n          "resourcesData": [],\n          "scopesData": [],\n          "config": {}\n        }\n      ],\n      "resources": [],\n      "displayName": ""\n    }\n  ],\n  "icon_uri": "",\n  "owner": {},\n  "ownerManagedAccess": false,\n  "displayName": "",\n  "attributes": {},\n  "uri": "",\n  "scopesUma": [\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  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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({
  _id: '',
  name: '',
  uris: [],
  type: '',
  scopes: [
    {
      id: '',
      name: '',
      iconUri: '',
      policies: [
        {
          id: '',
          name: '',
          description: '',
          type: '',
          policies: [],
          resources: [],
          scopes: [],
          logic: '',
          decisionStrategy: '',
          owner: '',
          resourceType: '',
          resourcesData: [],
          scopesData: [],
          config: {}
        }
      ],
      resources: [],
      displayName: ''
    }
  ],
  icon_uri: '',
  owner: {},
  ownerManagedAccess: false,
  displayName: '',
  attributes: {},
  uri: '',
  scopesUma: [{}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id',
  headers: {'content-type': 'application/json'},
  body: {
    _id: '',
    name: '',
    uris: [],
    type: '',
    scopes: [
      {
        id: '',
        name: '',
        iconUri: '',
        policies: [
          {
            id: '',
            name: '',
            description: '',
            type: '',
            policies: [],
            resources: [],
            scopes: [],
            logic: '',
            decisionStrategy: '',
            owner: '',
            resourceType: '',
            resourcesData: [],
            scopesData: [],
            config: {}
          }
        ],
        resources: [],
        displayName: ''
      }
    ],
    icon_uri: '',
    owner: {},
    ownerManagedAccess: false,
    displayName: '',
    attributes: {},
    uri: '',
    scopesUma: [{}]
  },
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  _id: '',
  name: '',
  uris: [],
  type: '',
  scopes: [
    {
      id: '',
      name: '',
      iconUri: '',
      policies: [
        {
          id: '',
          name: '',
          description: '',
          type: '',
          policies: [],
          resources: [],
          scopes: [],
          logic: '',
          decisionStrategy: '',
          owner: '',
          resourceType: '',
          resourcesData: [],
          scopesData: [],
          config: {}
        }
      ],
      resources: [],
      displayName: ''
    }
  ],
  icon_uri: '',
  owner: {},
  ownerManagedAccess: false,
  displayName: '',
  attributes: {},
  uri: '',
  scopesUma: [
    {}
  ]
});

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id',
  headers: {'content-type': 'application/json'},
  data: {
    _id: '',
    name: '',
    uris: [],
    type: '',
    scopes: [
      {
        id: '',
        name: '',
        iconUri: '',
        policies: [
          {
            id: '',
            name: '',
            description: '',
            type: '',
            policies: [],
            resources: [],
            scopes: [],
            logic: '',
            decisionStrategy: '',
            owner: '',
            resourceType: '',
            resourcesData: [],
            scopesData: [],
            config: {}
          }
        ],
        resources: [],
        displayName: ''
      }
    ],
    icon_uri: '',
    owner: {},
    ownerManagedAccess: false,
    displayName: '',
    attributes: {},
    uri: '',
    scopesUma: [{}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}'
};

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 = @{ @"_id": @"",
                              @"name": @"",
                              @"uris": @[  ],
                              @"type": @"",
                              @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ],
                              @"icon_uri": @"",
                              @"owner": @{  },
                              @"ownerManagedAccess": @NO,
                              @"displayName": @"",
                              @"attributes": @{  },
                              @"uri": @"",
                              @"scopesUma": @[ @{  } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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([
    '_id' => '',
    'name' => '',
    'uris' => [
        
    ],
    'type' => '',
    'scopes' => [
        [
                'id' => '',
                'name' => '',
                'iconUri' => '',
                'policies' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'description' => '',
                                                                'type' => '',
                                                                'policies' => [
                                                                                                                                
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'scopes' => [
                                                                                                                                
                                                                ],
                                                                'logic' => '',
                                                                'decisionStrategy' => '',
                                                                'owner' => '',
                                                                'resourceType' => '',
                                                                'resourcesData' => [
                                                                                                                                
                                                                ],
                                                                'scopesData' => [
                                                                                                                                
                                                                ],
                                                                'config' => [
                                                                                                                                
                                                                ]
                                ]
                ],
                'resources' => [
                                
                ],
                'displayName' => ''
        ]
    ],
    'icon_uri' => '',
    'owner' => [
        
    ],
    'ownerManagedAccess' => null,
    'displayName' => '',
    'attributes' => [
        
    ],
    'uri' => '',
    'scopesUma' => [
        [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id', [
  'body' => '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  '_id' => '',
  'name' => '',
  'uris' => [
    
  ],
  'type' => '',
  'scopes' => [
    [
        'id' => '',
        'name' => '',
        'iconUri' => '',
        'policies' => [
                [
                                'id' => '',
                                'name' => '',
                                'description' => '',
                                'type' => '',
                                'policies' => [
                                                                
                                ],
                                'resources' => [
                                                                
                                ],
                                'scopes' => [
                                                                
                                ],
                                'logic' => '',
                                'decisionStrategy' => '',
                                'owner' => '',
                                'resourceType' => '',
                                'resourcesData' => [
                                                                
                                ],
                                'scopesData' => [
                                                                
                                ],
                                'config' => [
                                                                
                                ]
                ]
        ],
        'resources' => [
                
        ],
        'displayName' => ''
    ]
  ],
  'icon_uri' => '',
  'owner' => [
    
  ],
  'ownerManagedAccess' => null,
  'displayName' => '',
  'attributes' => [
    
  ],
  'uri' => '',
  'scopesUma' => [
    [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  '_id' => '',
  'name' => '',
  'uris' => [
    
  ],
  'type' => '',
  'scopes' => [
    [
        'id' => '',
        'name' => '',
        'iconUri' => '',
        'policies' => [
                [
                                'id' => '',
                                'name' => '',
                                'description' => '',
                                'type' => '',
                                'policies' => [
                                                                
                                ],
                                'resources' => [
                                                                
                                ],
                                'scopes' => [
                                                                
                                ],
                                'logic' => '',
                                'decisionStrategy' => '',
                                'owner' => '',
                                'resourceType' => '',
                                'resourcesData' => [
                                                                
                                ],
                                'scopesData' => [
                                                                
                                ],
                                'config' => [
                                                                
                                ]
                ]
        ],
        'resources' => [
                
        ],
        'displayName' => ''
    ]
  ],
  'icon_uri' => '',
  'owner' => [
    
  ],
  'ownerManagedAccess' => null,
  'displayName' => '',
  'attributes' => [
    
  ],
  'uri' => '',
  'scopesUma' => [
    [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\n    {}\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"

payload = {
    "_id": "",
    "name": "",
    "uris": [],
    "type": "",
    "scopes": [
        {
            "id": "",
            "name": "",
            "iconUri": "",
            "policies": [
                {
                    "id": "",
                    "name": "",
                    "description": "",
                    "type": "",
                    "policies": [],
                    "resources": [],
                    "scopes": [],
                    "logic": "",
                    "decisionStrategy": "",
                    "owner": "",
                    "resourceType": "",
                    "resourcesData": [],
                    "scopesData": [],
                    "config": {}
                }
            ],
            "resources": [],
            "displayName": ""
        }
    ],
    "icon_uri": "",
    "owner": {},
    "ownerManagedAccess": False,
    "displayName": "",
    "attributes": {},
    "uri": "",
    "scopesUma": [{}]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id"

payload <- "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id') do |req|
  req.body = "{\n  \"_id\": \"\",\n  \"name\": \"\",\n  \"uris\": [],\n  \"type\": \"\",\n  \"scopes\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"iconUri\": \"\",\n      \"policies\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"description\": \"\",\n          \"type\": \"\",\n          \"policies\": [],\n          \"resources\": [],\n          \"scopes\": [],\n          \"logic\": \"\",\n          \"decisionStrategy\": \"\",\n          \"owner\": \"\",\n          \"resourceType\": \"\",\n          \"resourcesData\": [],\n          \"scopesData\": [],\n          \"config\": {}\n        }\n      ],\n      \"resources\": [],\n      \"displayName\": \"\"\n    }\n  ],\n  \"icon_uri\": \"\",\n  \"owner\": {},\n  \"ownerManagedAccess\": false,\n  \"displayName\": \"\",\n  \"attributes\": {},\n  \"uri\": \"\",\n  \"scopesUma\": [\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id";

    let payload = json!({
        "_id": "",
        "name": "",
        "uris": (),
        "type": "",
        "scopes": (
            json!({
                "id": "",
                "name": "",
                "iconUri": "",
                "policies": (
                    json!({
                        "id": "",
                        "name": "",
                        "description": "",
                        "type": "",
                        "policies": (),
                        "resources": (),
                        "scopes": (),
                        "logic": "",
                        "decisionStrategy": "",
                        "owner": "",
                        "resourceType": "",
                        "resourcesData": (),
                        "scopesData": (),
                        "config": json!({})
                    })
                ),
                "resources": (),
                "displayName": ""
            })
        ),
        "icon_uri": "",
        "owner": json!({}),
        "ownerManagedAccess": false,
        "displayName": "",
        "attributes": json!({}),
        "uri": "",
        "scopesUma": (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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id \
  --header 'content-type: application/json' \
  --data '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}'
echo '{
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    {
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        {
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": {}
        }
      ],
      "resources": [],
      "displayName": ""
    }
  ],
  "icon_uri": "",
  "owner": {},
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": {},
  "uri": "",
  "scopesUma": [
    {}
  ]
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "_id": "",\n  "name": "",\n  "uris": [],\n  "type": "",\n  "scopes": [\n    {\n      "id": "",\n      "name": "",\n      "iconUri": "",\n      "policies": [\n        {\n          "id": "",\n          "name": "",\n          "description": "",\n          "type": "",\n          "policies": [],\n          "resources": [],\n          "scopes": [],\n          "logic": "",\n          "decisionStrategy": "",\n          "owner": "",\n          "resourceType": "",\n          "resourcesData": [],\n          "scopesData": [],\n          "config": {}\n        }\n      ],\n      "resources": [],\n      "displayName": ""\n    }\n  ],\n  "icon_uri": "",\n  "owner": {},\n  "ownerManagedAccess": false,\n  "displayName": "",\n  "attributes": {},\n  "uri": "",\n  "scopesUma": [\n    {}\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "_id": "",
  "name": "",
  "uris": [],
  "type": "",
  "scopes": [
    [
      "id": "",
      "name": "",
      "iconUri": "",
      "policies": [
        [
          "id": "",
          "name": "",
          "description": "",
          "type": "",
          "policies": [],
          "resources": [],
          "scopes": [],
          "logic": "",
          "decisionStrategy": "",
          "owner": "",
          "resourceType": "",
          "resourcesData": [],
          "scopesData": [],
          "config": []
        ]
      ],
      "resources": [],
      "displayName": ""
    ]
  ],
  "icon_uri": "",
  "owner": [],
  "ownerManagedAccess": false,
  "displayName": "",
  "attributes": [],
  "uri": "",
  "scopesUma": [[]]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/resource/:resource-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 put -admin-realms--realm-clients--client-uuid-authz-resource-server-scope--scope-id
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
QUERY PARAMS

scope-id
BODY json

{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id" {:content-type :json
                                                                                                                          :form-params {:id ""
                                                                                                                                        :name ""
                                                                                                                                        :iconUri ""
                                                                                                                                        :policies [{:id ""
                                                                                                                                                    :name ""
                                                                                                                                                    :description ""
                                                                                                                                                    :type ""
                                                                                                                                                    :policies []
                                                                                                                                                    :resources []
                                                                                                                                                    :scopes []
                                                                                                                                                    :logic ""
                                                                                                                                                    :decisionStrategy ""
                                                                                                                                                    :owner ""
                                                                                                                                                    :resourceType ""
                                                                                                                                                    :resourcesData []
                                                                                                                                                    :scopesData []
                                                                                                                                                    :config {}}]
                                                                                                                                        :resources []
                                                                                                                                        :displayName ""}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 424

{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  name: '',
  iconUri: '',
  policies: [
    {
      id: '',
      name: '',
      description: '',
      type: '',
      policies: [],
      resources: [],
      scopes: [],
      logic: '',
      decisionStrategy: '',
      owner: '',
      resourceType: '',
      resourcesData: [],
      scopesData: [],
      config: {}
    }
  ],
  resources: [],
  displayName: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    iconUri: '',
    policies: [
      {
        id: '',
        name: '',
        description: '',
        type: '',
        policies: [],
        resources: [],
        scopes: [],
        logic: '',
        decisionStrategy: '',
        owner: '',
        resourceType: '',
        resourcesData: [],
        scopesData: [],
        config: {}
      }
    ],
    resources: [],
    displayName: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "name": "",\n  "iconUri": "",\n  "policies": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "type": "",\n      "policies": [],\n      "resources": [],\n      "scopes": [],\n      "logic": "",\n      "decisionStrategy": "",\n      "owner": "",\n      "resourceType": "",\n      "resourcesData": [],\n      "scopesData": [],\n      "config": {}\n    }\n  ],\n  "resources": [],\n  "displayName": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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({
  id: '',
  name: '',
  iconUri: '',
  policies: [
    {
      id: '',
      name: '',
      description: '',
      type: '',
      policies: [],
      resources: [],
      scopes: [],
      logic: '',
      decisionStrategy: '',
      owner: '',
      resourceType: '',
      resourcesData: [],
      scopesData: [],
      config: {}
    }
  ],
  resources: [],
  displayName: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    name: '',
    iconUri: '',
    policies: [
      {
        id: '',
        name: '',
        description: '',
        type: '',
        policies: [],
        resources: [],
        scopes: [],
        logic: '',
        decisionStrategy: '',
        owner: '',
        resourceType: '',
        resourcesData: [],
        scopesData: [],
        config: {}
      }
    ],
    resources: [],
    displayName: ''
  },
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  name: '',
  iconUri: '',
  policies: [
    {
      id: '',
      name: '',
      description: '',
      type: '',
      policies: [],
      resources: [],
      scopes: [],
      logic: '',
      decisionStrategy: '',
      owner: '',
      resourceType: '',
      resourcesData: [],
      scopesData: [],
      config: {}
    }
  ],
  resources: [],
  displayName: ''
});

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    name: '',
    iconUri: '',
    policies: [
      {
        id: '',
        name: '',
        description: '',
        type: '',
        policies: [],
        resources: [],
        scopes: [],
        logic: '',
        decisionStrategy: '',
        owner: '',
        resourceType: '',
        resourcesData: [],
        scopesData: [],
        config: {}
      }
    ],
    resources: [],
    displayName: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}'
};

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 = @{ @"id": @"",
                              @"name": @"",
                              @"iconUri": @"",
                              @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ],
                              @"resources": @[  ],
                              @"displayName": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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([
    'id' => '',
    'name' => '',
    'iconUri' => '',
    'policies' => [
        [
                'id' => '',
                'name' => '',
                'description' => '',
                'type' => '',
                'policies' => [
                                
                ],
                'resources' => [
                                
                ],
                'scopes' => [
                                
                ],
                'logic' => '',
                'decisionStrategy' => '',
                'owner' => '',
                'resourceType' => '',
                'resourcesData' => [
                                
                ],
                'scopesData' => [
                                
                ],
                'config' => [
                                
                ]
        ]
    ],
    'resources' => [
        
    ],
    'displayName' => ''
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id', [
  'body' => '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'name' => '',
  'iconUri' => '',
  'policies' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'type' => '',
        'policies' => [
                
        ],
        'resources' => [
                
        ],
        'scopes' => [
                
        ],
        'logic' => '',
        'decisionStrategy' => '',
        'owner' => '',
        'resourceType' => '',
        'resourcesData' => [
                
        ],
        'scopesData' => [
                
        ],
        'config' => [
                
        ]
    ]
  ],
  'resources' => [
    
  ],
  'displayName' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'name' => '',
  'iconUri' => '',
  'policies' => [
    [
        'id' => '',
        'name' => '',
        'description' => '',
        'type' => '',
        'policies' => [
                
        ],
        'resources' => [
                
        ],
        'scopes' => [
                
        ],
        'logic' => '',
        'decisionStrategy' => '',
        'owner' => '',
        'resourceType' => '',
        'resourcesData' => [
                
        ],
        'scopesData' => [
                
        ],
        'config' => [
                
        ]
    ]
  ],
  'resources' => [
    
  ],
  'displayName' => ''
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"

payload = {
    "id": "",
    "name": "",
    "iconUri": "",
    "policies": [
        {
            "id": "",
            "name": "",
            "description": "",
            "type": "",
            "policies": [],
            "resources": [],
            "scopes": [],
            "logic": "",
            "decisionStrategy": "",
            "owner": "",
            "resourceType": "",
            "resourcesData": [],
            "scopesData": [],
            "config": {}
        }
    ],
    "resources": [],
    "displayName": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id"

payload <- "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"name\": \"\",\n  \"iconUri\": \"\",\n  \"policies\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"description\": \"\",\n      \"type\": \"\",\n      \"policies\": [],\n      \"resources\": [],\n      \"scopes\": [],\n      \"logic\": \"\",\n      \"decisionStrategy\": \"\",\n      \"owner\": \"\",\n      \"resourceType\": \"\",\n      \"resourcesData\": [],\n      \"scopesData\": [],\n      \"config\": {}\n    }\n  ],\n  \"resources\": [],\n  \"displayName\": \"\"\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id";

    let payload = json!({
        "id": "",
        "name": "",
        "iconUri": "",
        "policies": (
            json!({
                "id": "",
                "name": "",
                "description": "",
                "type": "",
                "policies": (),
                "resources": (),
                "scopes": (),
                "logic": "",
                "decisionStrategy": "",
                "owner": "",
                "resourceType": "",
                "resourcesData": (),
                "scopesData": (),
                "config": json!({})
            })
        ),
        "resources": (),
        "displayName": ""
    });

    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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}'
echo '{
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    {
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": {}
    }
  ],
  "resources": [],
  "displayName": ""
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "name": "",\n  "iconUri": "",\n  "policies": [\n    {\n      "id": "",\n      "name": "",\n      "description": "",\n      "type": "",\n      "policies": [],\n      "resources": [],\n      "scopes": [],\n      "logic": "",\n      "decisionStrategy": "",\n      "owner": "",\n      "resourceType": "",\n      "resourcesData": [],\n      "scopesData": [],\n      "config": {}\n    }\n  ],\n  "resources": [],\n  "displayName": ""\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-id
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "name": "",
  "iconUri": "",
  "policies": [
    [
      "id": "",
      "name": "",
      "description": "",
      "type": "",
      "policies": [],
      "resources": [],
      "scopes": [],
      "logic": "",
      "decisionStrategy": "",
      "owner": "",
      "resourceType": "",
      "resourcesData": [],
      "scopesData": [],
      "config": []
    ]
  ],
  "resources": [],
  "displayName": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server/scope/:scope-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 put -admin-realms--realm-clients--client-uuid-authz-resource-server
{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server
BODY json

{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server");

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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server" {:content-type :json
                                                                                                          :form-params {:id ""
                                                                                                                        :clientId ""
                                                                                                                        :name ""
                                                                                                                        :allowRemoteResourceManagement false
                                                                                                                        :policyEnforcementMode ""
                                                                                                                        :resources [{:_id ""
                                                                                                                                     :name ""
                                                                                                                                     :uris []
                                                                                                                                     :type ""
                                                                                                                                     :scopes [{:id ""
                                                                                                                                               :name ""
                                                                                                                                               :iconUri ""
                                                                                                                                               :policies [{:id ""
                                                                                                                                                           :name ""
                                                                                                                                                           :description ""
                                                                                                                                                           :type ""
                                                                                                                                                           :policies []
                                                                                                                                                           :resources []
                                                                                                                                                           :scopes []
                                                                                                                                                           :logic ""
                                                                                                                                                           :decisionStrategy ""
                                                                                                                                                           :owner ""
                                                                                                                                                           :resourceType ""
                                                                                                                                                           :resourcesData []
                                                                                                                                                           :scopesData []
                                                                                                                                                           :config {}}]
                                                                                                                                               :resources []
                                                                                                                                               :displayName ""}]
                                                                                                                                     :icon_uri ""
                                                                                                                                     :owner {}
                                                                                                                                     :ownerManagedAccess false
                                                                                                                                     :displayName ""
                                                                                                                                     :attributes {}
                                                                                                                                     :uri ""
                                                                                                                                     :scopesUma [{}]}]
                                                                                                                        :policies [{}]
                                                                                                                        :scopes [{}]
                                                                                                                        :decisionStrategy ""
                                                                                                                        :authorizationSchema {:resourceTypes {}}}})
require "http/client"

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1194

{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  clientId: '',
  name: '',
  allowRemoteResourceManagement: false,
  policyEnforcementMode: '',
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [
        {}
      ]
    }
  ],
  policies: [
    {}
  ],
  scopes: [
    {}
  ],
  decisionStrategy: '',
  authorizationSchema: {
    resourceTypes: {}
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    policies: [{}],
    scopes: [{}],
    decisionStrategy: '',
    authorizationSchema: {resourceTypes: {}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "clientId": "",\n  "name": "",\n  "allowRemoteResourceManagement": false,\n  "policyEnforcementMode": "",\n  "resources": [\n    {\n      "_id": "",\n      "name": "",\n      "uris": [],\n      "type": "",\n      "scopes": [\n        {\n          "id": "",\n          "name": "",\n          "iconUri": "",\n          "policies": [\n            {\n              "id": "",\n              "name": "",\n              "description": "",\n              "type": "",\n              "policies": [],\n              "resources": [],\n              "scopes": [],\n              "logic": "",\n              "decisionStrategy": "",\n              "owner": "",\n              "resourceType": "",\n              "resourcesData": [],\n              "scopesData": [],\n              "config": {}\n            }\n          ],\n          "resources": [],\n          "displayName": ""\n        }\n      ],\n      "icon_uri": "",\n      "owner": {},\n      "ownerManagedAccess": false,\n      "displayName": "",\n      "attributes": {},\n      "uri": "",\n      "scopesUma": [\n        {}\n      ]\n    }\n  ],\n  "policies": [\n    {}\n  ],\n  "scopes": [\n    {}\n  ],\n  "decisionStrategy": "",\n  "authorizationSchema": {\n    "resourceTypes": {}\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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")
  .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/admin/realms/:realm/clients/:client-uuid/authz/resource-server',
  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({
  id: '',
  clientId: '',
  name: '',
  allowRemoteResourceManagement: false,
  policyEnforcementMode: '',
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [{}]
    }
  ],
  policies: [{}],
  scopes: [{}],
  decisionStrategy: '',
  authorizationSchema: {resourceTypes: {}}
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    policies: [{}],
    scopes: [{}],
    decisionStrategy: '',
    authorizationSchema: {resourceTypes: {}}
  },
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  clientId: '',
  name: '',
  allowRemoteResourceManagement: false,
  policyEnforcementMode: '',
  resources: [
    {
      _id: '',
      name: '',
      uris: [],
      type: '',
      scopes: [
        {
          id: '',
          name: '',
          iconUri: '',
          policies: [
            {
              id: '',
              name: '',
              description: '',
              type: '',
              policies: [],
              resources: [],
              scopes: [],
              logic: '',
              decisionStrategy: '',
              owner: '',
              resourceType: '',
              resourcesData: [],
              scopesData: [],
              config: {}
            }
          ],
          resources: [],
          displayName: ''
        }
      ],
      icon_uri: '',
      owner: {},
      ownerManagedAccess: false,
      displayName: '',
      attributes: {},
      uri: '',
      scopesUma: [
        {}
      ]
    }
  ],
  policies: [
    {}
  ],
  scopes: [
    {}
  ],
  decisionStrategy: '',
  authorizationSchema: {
    resourceTypes: {}
  }
});

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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    clientId: '',
    name: '',
    allowRemoteResourceManagement: false,
    policyEnforcementMode: '',
    resources: [
      {
        _id: '',
        name: '',
        uris: [],
        type: '',
        scopes: [
          {
            id: '',
            name: '',
            iconUri: '',
            policies: [
              {
                id: '',
                name: '',
                description: '',
                type: '',
                policies: [],
                resources: [],
                scopes: [],
                logic: '',
                decisionStrategy: '',
                owner: '',
                resourceType: '',
                resourcesData: [],
                scopesData: [],
                config: {}
              }
            ],
            resources: [],
            displayName: ''
          }
        ],
        icon_uri: '',
        owner: {},
        ownerManagedAccess: false,
        displayName: '',
        attributes: {},
        uri: '',
        scopesUma: [{}]
      }
    ],
    policies: [{}],
    scopes: [{}],
    decisionStrategy: '',
    authorizationSchema: {resourceTypes: {}}
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","clientId":"","name":"","allowRemoteResourceManagement":false,"policyEnforcementMode":"","resources":[{"_id":"","name":"","uris":[],"type":"","scopes":[{"id":"","name":"","iconUri":"","policies":[{"id":"","name":"","description":"","type":"","policies":[],"resources":[],"scopes":[],"logic":"","decisionStrategy":"","owner":"","resourceType":"","resourcesData":[],"scopesData":[],"config":{}}],"resources":[],"displayName":""}],"icon_uri":"","owner":{},"ownerManagedAccess":false,"displayName":"","attributes":{},"uri":"","scopesUma":[{}]}],"policies":[{}],"scopes":[{}],"decisionStrategy":"","authorizationSchema":{"resourceTypes":{}}}'
};

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 = @{ @"id": @"",
                              @"clientId": @"",
                              @"name": @"",
                              @"allowRemoteResourceManagement": @NO,
                              @"policyEnforcementMode": @"",
                              @"resources": @[ @{ @"_id": @"", @"name": @"", @"uris": @[  ], @"type": @"", @"scopes": @[ @{ @"id": @"", @"name": @"", @"iconUri": @"", @"policies": @[ @{ @"id": @"", @"name": @"", @"description": @"", @"type": @"", @"policies": @[  ], @"resources": @[  ], @"scopes": @[  ], @"logic": @"", @"decisionStrategy": @"", @"owner": @"", @"resourceType": @"", @"resourcesData": @[  ], @"scopesData": @[  ], @"config": @{  } } ], @"resources": @[  ], @"displayName": @"" } ], @"icon_uri": @"", @"owner": @{  }, @"ownerManagedAccess": @NO, @"displayName": @"", @"attributes": @{  }, @"uri": @"", @"scopesUma": @[ @{  } ] } ],
                              @"policies": @[ @{  } ],
                              @"scopes": @[ @{  } ],
                              @"decisionStrategy": @"",
                              @"authorizationSchema": @{ @"resourceTypes": @{  } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"]
                                                       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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server",
  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([
    'id' => '',
    'clientId' => '',
    'name' => '',
    'allowRemoteResourceManagement' => null,
    'policyEnforcementMode' => '',
    'resources' => [
        [
                '_id' => '',
                'name' => '',
                'uris' => [
                                
                ],
                'type' => '',
                'scopes' => [
                                [
                                                                'id' => '',
                                                                'name' => '',
                                                                'iconUri' => '',
                                                                'policies' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '',
                                                                                                                                                                                                                                                                'name' => '',
                                                                                                                                                                                                                                                                'description' => '',
                                                                                                                                                                                                                                                                'type' => '',
                                                                                                                                                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'logic' => '',
                                                                                                                                                                                                                                                                'decisionStrategy' => '',
                                                                                                                                                                                                                                                                'owner' => '',
                                                                                                                                                                                                                                                                'resourceType' => '',
                                                                                                                                                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'resources' => [
                                                                                                                                
                                                                ],
                                                                'displayName' => ''
                                ]
                ],
                'icon_uri' => '',
                'owner' => [
                                
                ],
                'ownerManagedAccess' => null,
                'displayName' => '',
                'attributes' => [
                                
                ],
                'uri' => '',
                'scopesUma' => [
                                [
                                                                
                                ]
                ]
        ]
    ],
    'policies' => [
        [
                
        ]
    ],
    'scopes' => [
        [
                
        ]
    ],
    'decisionStrategy' => '',
    'authorizationSchema' => [
        'resourceTypes' => [
                
        ]
    ]
  ]),
  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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server', [
  'body' => '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'clientId' => '',
  'name' => '',
  'allowRemoteResourceManagement' => null,
  'policyEnforcementMode' => '',
  'resources' => [
    [
        '_id' => '',
        'name' => '',
        'uris' => [
                
        ],
        'type' => '',
        'scopes' => [
                [
                                'id' => '',
                                'name' => '',
                                'iconUri' => '',
                                'policies' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'description' => '',
                                                                                                                                'type' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'logic' => '',
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'resourceType' => '',
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'resources' => [
                                                                
                                ],
                                'displayName' => ''
                ]
        ],
        'icon_uri' => '',
        'owner' => [
                
        ],
        'ownerManagedAccess' => null,
        'displayName' => '',
        'attributes' => [
                
        ],
        'uri' => '',
        'scopesUma' => [
                [
                                
                ]
        ]
    ]
  ],
  'policies' => [
    [
        
    ]
  ],
  'scopes' => [
    [
        
    ]
  ],
  'decisionStrategy' => '',
  'authorizationSchema' => [
    'resourceTypes' => [
        
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'clientId' => '',
  'name' => '',
  'allowRemoteResourceManagement' => null,
  'policyEnforcementMode' => '',
  'resources' => [
    [
        '_id' => '',
        'name' => '',
        'uris' => [
                
        ],
        'type' => '',
        'scopes' => [
                [
                                'id' => '',
                                'name' => '',
                                'iconUri' => '',
                                'policies' => [
                                                                [
                                                                                                                                'id' => '',
                                                                                                                                'name' => '',
                                                                                                                                'description' => '',
                                                                                                                                'type' => '',
                                                                                                                                'policies' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'resources' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopes' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'logic' => '',
                                                                                                                                'decisionStrategy' => '',
                                                                                                                                'owner' => '',
                                                                                                                                'resourceType' => '',
                                                                                                                                'resourcesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'scopesData' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'config' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'resources' => [
                                                                
                                ],
                                'displayName' => ''
                ]
        ],
        'icon_uri' => '',
        'owner' => [
                
        ],
        'ownerManagedAccess' => null,
        'displayName' => '',
        'attributes' => [
                
        ],
        'uri' => '',
        'scopesUma' => [
                [
                                
                ]
        ]
    ]
  ],
  'policies' => [
    [
        
    ]
  ],
  'scopes' => [
    [
        
    ]
  ],
  'decisionStrategy' => '',
  'authorizationSchema' => [
    'resourceTypes' => [
        
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server');
$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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/admin/realms/:realm/clients/:client-uuid/authz/resource-server", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"

payload = {
    "id": "",
    "clientId": "",
    "name": "",
    "allowRemoteResourceManagement": False,
    "policyEnforcementMode": "",
    "resources": [
        {
            "_id": "",
            "name": "",
            "uris": [],
            "type": "",
            "scopes": [
                {
                    "id": "",
                    "name": "",
                    "iconUri": "",
                    "policies": [
                        {
                            "id": "",
                            "name": "",
                            "description": "",
                            "type": "",
                            "policies": [],
                            "resources": [],
                            "scopes": [],
                            "logic": "",
                            "decisionStrategy": "",
                            "owner": "",
                            "resourceType": "",
                            "resourcesData": [],
                            "scopesData": [],
                            "config": {}
                        }
                    ],
                    "resources": [],
                    "displayName": ""
                }
            ],
            "icon_uri": "",
            "owner": {},
            "ownerManagedAccess": False,
            "displayName": "",
            "attributes": {},
            "uri": "",
            "scopesUma": [{}]
        }
    ],
    "policies": [{}],
    "scopes": [{}],
    "decisionStrategy": "",
    "authorizationSchema": { "resourceTypes": {} }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server"

payload <- "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")

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  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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/admin/realms/:realm/clients/:client-uuid/authz/resource-server') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"clientId\": \"\",\n  \"name\": \"\",\n  \"allowRemoteResourceManagement\": false,\n  \"policyEnforcementMode\": \"\",\n  \"resources\": [\n    {\n      \"_id\": \"\",\n      \"name\": \"\",\n      \"uris\": [],\n      \"type\": \"\",\n      \"scopes\": [\n        {\n          \"id\": \"\",\n          \"name\": \"\",\n          \"iconUri\": \"\",\n          \"policies\": [\n            {\n              \"id\": \"\",\n              \"name\": \"\",\n              \"description\": \"\",\n              \"type\": \"\",\n              \"policies\": [],\n              \"resources\": [],\n              \"scopes\": [],\n              \"logic\": \"\",\n              \"decisionStrategy\": \"\",\n              \"owner\": \"\",\n              \"resourceType\": \"\",\n              \"resourcesData\": [],\n              \"scopesData\": [],\n              \"config\": {}\n            }\n          ],\n          \"resources\": [],\n          \"displayName\": \"\"\n        }\n      ],\n      \"icon_uri\": \"\",\n      \"owner\": {},\n      \"ownerManagedAccess\": false,\n      \"displayName\": \"\",\n      \"attributes\": {},\n      \"uri\": \"\",\n      \"scopesUma\": [\n        {}\n      ]\n    }\n  ],\n  \"policies\": [\n    {}\n  ],\n  \"scopes\": [\n    {}\n  ],\n  \"decisionStrategy\": \"\",\n  \"authorizationSchema\": {\n    \"resourceTypes\": {}\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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server";

    let payload = json!({
        "id": "",
        "clientId": "",
        "name": "",
        "allowRemoteResourceManagement": false,
        "policyEnforcementMode": "",
        "resources": (
            json!({
                "_id": "",
                "name": "",
                "uris": (),
                "type": "",
                "scopes": (
                    json!({
                        "id": "",
                        "name": "",
                        "iconUri": "",
                        "policies": (
                            json!({
                                "id": "",
                                "name": "",
                                "description": "",
                                "type": "",
                                "policies": (),
                                "resources": (),
                                "scopes": (),
                                "logic": "",
                                "decisionStrategy": "",
                                "owner": "",
                                "resourceType": "",
                                "resourcesData": (),
                                "scopesData": (),
                                "config": json!({})
                            })
                        ),
                        "resources": (),
                        "displayName": ""
                    })
                ),
                "icon_uri": "",
                "owner": json!({}),
                "ownerManagedAccess": false,
                "displayName": "",
                "attributes": json!({}),
                "uri": "",
                "scopesUma": (json!({}))
            })
        ),
        "policies": (json!({})),
        "scopes": (json!({})),
        "decisionStrategy": "",
        "authorizationSchema": json!({"resourceTypes": 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}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}'
echo '{
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    {
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        {
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            {
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": {}
            }
          ],
          "resources": [],
          "displayName": ""
        }
      ],
      "icon_uri": "",
      "owner": {},
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": {},
      "uri": "",
      "scopesUma": [
        {}
      ]
    }
  ],
  "policies": [
    {}
  ],
  "scopes": [
    {}
  ],
  "decisionStrategy": "",
  "authorizationSchema": {
    "resourceTypes": {}
  }
}' |  \
  http PUT {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "clientId": "",\n  "name": "",\n  "allowRemoteResourceManagement": false,\n  "policyEnforcementMode": "",\n  "resources": [\n    {\n      "_id": "",\n      "name": "",\n      "uris": [],\n      "type": "",\n      "scopes": [\n        {\n          "id": "",\n          "name": "",\n          "iconUri": "",\n          "policies": [\n            {\n              "id": "",\n              "name": "",\n              "description": "",\n              "type": "",\n              "policies": [],\n              "resources": [],\n              "scopes": [],\n              "logic": "",\n              "decisionStrategy": "",\n              "owner": "",\n              "resourceType": "",\n              "resourcesData": [],\n              "scopesData": [],\n              "config": {}\n            }\n          ],\n          "resources": [],\n          "displayName": ""\n        }\n      ],\n      "icon_uri": "",\n      "owner": {},\n      "ownerManagedAccess": false,\n      "displayName": "",\n      "attributes": {},\n      "uri": "",\n      "scopesUma": [\n        {}\n      ]\n    }\n  ],\n  "policies": [\n    {}\n  ],\n  "scopes": [\n    {}\n  ],\n  "decisionStrategy": "",\n  "authorizationSchema": {\n    "resourceTypes": {}\n  }\n}' \
  --output-document \
  - {{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "clientId": "",
  "name": "",
  "allowRemoteResourceManagement": false,
  "policyEnforcementMode": "",
  "resources": [
    [
      "_id": "",
      "name": "",
      "uris": [],
      "type": "",
      "scopes": [
        [
          "id": "",
          "name": "",
          "iconUri": "",
          "policies": [
            [
              "id": "",
              "name": "",
              "description": "",
              "type": "",
              "policies": [],
              "resources": [],
              "scopes": [],
              "logic": "",
              "decisionStrategy": "",
              "owner": "",
              "resourceType": "",
              "resourcesData": [],
              "scopesData": [],
              "config": []
            ]
          ],
          "resources": [],
          "displayName": ""
        ]
      ],
      "icon_uri": "",
      "owner": [],
      "ownerManagedAccess": false,
      "displayName": "",
      "attributes": [],
      "uri": "",
      "scopesUma": [[]]
    ]
  ],
  "policies": [[]],
  "scopes": [[]],
  "decisionStrategy": "",
  "authorizationSchema": ["resourceTypes": []]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/admin/realms/:realm/clients/:client-uuid/authz/resource-server")! 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()