curl --request PATCH \
--url https://{tenantDomain}/api/v2/client-profiles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"client_configuration": {
"refresh_token": {
"token_lifetime": {
"default_value": 15778800
},
"idle_token_lifetime": {
"default_value": 15778800
},
"leeway": {
"default_value": 1
}
},
"organization_usage": {},
"organization_require_behavior": {},
"organization_discovery_methods": {
"default_value": []
},
"require_proof_of_possession": {
"default_value": true
}
}
}
'import requests
url = "https://{tenantDomain}/api/v2/client-profiles/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"client_configuration": {
"refresh_token": {
"token_lifetime": { "default_value": 15778800 },
"idle_token_lifetime": { "default_value": 15778800 },
"leeway": { "default_value": 1 }
},
"organization_usage": {},
"organization_require_behavior": {},
"organization_discovery_methods": { "default_value": [] },
"require_proof_of_possession": { "default_value": True }
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
client_configuration: {
refresh_token: {
token_lifetime: {default_value: 15778800},
idle_token_lifetime: {default_value: 15778800},
leeway: {default_value: 1}
},
organization_usage: {},
organization_require_behavior: {},
organization_discovery_methods: {default_value: []},
require_proof_of_possession: {default_value: true}
}
})
};
fetch('https://{tenantDomain}/api/v2/client-profiles/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/client-profiles/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'client_configuration' => [
'refresh_token' => [
'token_lifetime' => [
'default_value' => 15778800
],
'idle_token_lifetime' => [
'default_value' => 15778800
],
'leeway' => [
'default_value' => 1
]
],
'organization_usage' => [
],
'organization_require_behavior' => [
],
'organization_discovery_methods' => [
'default_value' => [
]
],
'require_proof_of_possession' => [
'default_value' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenantDomain}/api/v2/client-profiles/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"client_configuration\": {\n \"refresh_token\": {\n \"token_lifetime\": {\n \"default_value\": 15778800\n },\n \"idle_token_lifetime\": {\n \"default_value\": 15778800\n },\n \"leeway\": {\n \"default_value\": 1\n }\n },\n \"organization_usage\": {},\n \"organization_require_behavior\": {},\n \"organization_discovery_methods\": {\n \"default_value\": []\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://{tenantDomain}/api/v2/client-profiles/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"client_configuration\": {\n \"refresh_token\": {\n \"token_lifetime\": {\n \"default_value\": 15778800\n },\n \"idle_token_lifetime\": {\n \"default_value\": 15778800\n },\n \"leeway\": {\n \"default_value\": 1\n }\n },\n \"organization_usage\": {},\n \"organization_require_behavior\": {},\n \"organization_discovery_methods\": {\n \"default_value\": []\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/client-profiles/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"client_configuration\": {\n \"refresh_token\": {\n \"token_lifetime\": {\n \"default_value\": 15778800\n },\n \"idle_token_lifetime\": {\n \"default_value\": 15778800\n },\n \"leeway\": {\n \"default_value\": 1\n }\n },\n \"organization_usage\": {},\n \"organization_require_behavior\": {},\n \"organization_discovery_methods\": {\n \"default_value\": []\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"client_configuration": {
"refresh_token": {
"token_lifetime": {
"default_value": 15778800
},
"idle_token_lifetime": {
"default_value": 15778800
},
"leeway": {
"default_value": 1
}
},
"organization_usage": {
"default_value": "deny"
},
"organization_require_behavior": {
"default_value": "no_prompt"
},
"organization_discovery_methods": {
"default_value": [
"email"
]
},
"require_proof_of_possession": {
"default_value": true
}
},
"apply_policy": {
"external_metadata_type": "cimd",
"external_metadata_created_by": "client"
},
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Mettre à jour un profil client
Mettre à jour un profil client. Prend en charge les mises à jour partielles au premier niveau (JSON Merge Patch); les champs de premier niveau omis restent inchangés. Les objets imbriqués comme client_configuration doivent être fournis au complet.
curl --request PATCH \
--url https://{tenantDomain}/api/v2/client-profiles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"client_configuration": {
"refresh_token": {
"token_lifetime": {
"default_value": 15778800
},
"idle_token_lifetime": {
"default_value": 15778800
},
"leeway": {
"default_value": 1
}
},
"organization_usage": {},
"organization_require_behavior": {},
"organization_discovery_methods": {
"default_value": []
},
"require_proof_of_possession": {
"default_value": true
}
}
}
'import requests
url = "https://{tenantDomain}/api/v2/client-profiles/{id}"
payload = {
"name": "<string>",
"description": "<string>",
"client_configuration": {
"refresh_token": {
"token_lifetime": { "default_value": 15778800 },
"idle_token_lifetime": { "default_value": 15778800 },
"leeway": { "default_value": 1 }
},
"organization_usage": {},
"organization_require_behavior": {},
"organization_discovery_methods": { "default_value": [] },
"require_proof_of_possession": { "default_value": True }
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
client_configuration: {
refresh_token: {
token_lifetime: {default_value: 15778800},
idle_token_lifetime: {default_value: 15778800},
leeway: {default_value: 1}
},
organization_usage: {},
organization_require_behavior: {},
organization_discovery_methods: {default_value: []},
require_proof_of_possession: {default_value: true}
}
})
};
fetch('https://{tenantDomain}/api/v2/client-profiles/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/client-profiles/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'client_configuration' => [
'refresh_token' => [
'token_lifetime' => [
'default_value' => 15778800
],
'idle_token_lifetime' => [
'default_value' => 15778800
],
'leeway' => [
'default_value' => 1
]
],
'organization_usage' => [
],
'organization_require_behavior' => [
],
'organization_discovery_methods' => [
'default_value' => [
]
],
'require_proof_of_possession' => [
'default_value' => true
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{tenantDomain}/api/v2/client-profiles/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"client_configuration\": {\n \"refresh_token\": {\n \"token_lifetime\": {\n \"default_value\": 15778800\n },\n \"idle_token_lifetime\": {\n \"default_value\": 15778800\n },\n \"leeway\": {\n \"default_value\": 1\n }\n },\n \"organization_usage\": {},\n \"organization_require_behavior\": {},\n \"organization_discovery_methods\": {\n \"default_value\": []\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n }\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://{tenantDomain}/api/v2/client-profiles/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"client_configuration\": {\n \"refresh_token\": {\n \"token_lifetime\": {\n \"default_value\": 15778800\n },\n \"idle_token_lifetime\": {\n \"default_value\": 15778800\n },\n \"leeway\": {\n \"default_value\": 1\n }\n },\n \"organization_usage\": {},\n \"organization_require_behavior\": {},\n \"organization_discovery_methods\": {\n \"default_value\": []\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/client-profiles/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"client_configuration\": {\n \"refresh_token\": {\n \"token_lifetime\": {\n \"default_value\": 15778800\n },\n \"idle_token_lifetime\": {\n \"default_value\": 15778800\n },\n \"leeway\": {\n \"default_value\": 1\n }\n },\n \"organization_usage\": {},\n \"organization_require_behavior\": {},\n \"organization_discovery_methods\": {\n \"default_value\": []\n },\n \"require_proof_of_possession\": {\n \"default_value\": true\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"client_configuration": {
"refresh_token": {
"token_lifetime": {
"default_value": 15778800
},
"idle_token_lifetime": {
"default_value": 15778800
},
"leeway": {
"default_value": 1
}
},
"organization_usage": {
"default_value": "deny"
},
"organization_require_behavior": {
"default_value": "no_prompt"
},
"organization_discovery_methods": {
"default_value": [
"email"
]
},
"require_proof_of_possession": {
"default_value": true
}
},
"apply_policy": {
"external_metadata_type": "cimd",
"external_metadata_created_by": "client"
},
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Autorisations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Paramètres de chemin
Identifiant du profil client.
Corps
JSON Merge Patch de premier niveau (RFC 7386) : les champs de premier niveau omis restent inchangés. Les objets imbriqués comme client_configuration doivent être fournis au complet.
Nom d’affichage du profil client.
1 - 128^[^\u0000]*$Description facultative du profil client.
256^[^\u0000]*$Politique appliquée à l’exécution aux clients correspondants. Pour les champs omis, les paramètres propres à chaque client s’appliquent.
Show child attributes
Show child attributes
Règles de correspondance évaluées à l’exécution pour déterminer les clients auxquels ce profil s’applique.
Show child attributes
Show child attributes
Réponse
Profil client mis à jour avec succès.
Identifiant du profil client.
Nom d’affichage du profil client.
1 - 128^[^\u0000]*$Politique appliquée à l’exécution aux clients correspondants. Pour les champs omis, les paramètres propres à chaque client s’appliquent.
Show child attributes
Show child attributes
Règles de correspondance évaluées à l’exécution pour déterminer les clients auxquels ce profil s’applique.
Show child attributes
Show child attributes
Description facultative du profil client.
256^[^\u0000]*$Horodatage de la création.
Horodatage de la dernière mise à jour.