Update a client's policy profile.
PUT
/api/admin/clients/{clientId}/profile
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/clients/example/profile \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ifMatch": "2", "profile": { "preset": "custom", "clientType": "web", "oauth": { "grantTypes": [ "authorization_code" ] }, "redirect": { "redirectUris": [ "https://app.example.com/callback" ] }, "metadata": { "status": "draft" } } }'Replace Profile in the Clients area. The request body is JSON unless the detailed schema for this operation states otherwise.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” clientId
required
string
Header Parameters
Section titled “Header Parameters ” X-Tenant-Id
string
Tenant selector for multi-tenant admin requests.
Request Body required
Section titled “Request Body required ”Replace a client policy profile. ifMatch is required and must match the current profile version.
Media type application/json
object
ifMatch
required
string
profile
required
object
clientId
required
string
version
required
integer format: int64
tenantContractVersion
required
integer format: int64
clientType
required
string
preset
required
string
oauth
required
object
key
additional properties
encryption
required
object
key
additional properties
scopes
required
Array<string>
authMethods
required
Array<string>
consent
required
object
key
additional properties
redirect
required
object
key
additional properties
tokens
required
object
key
additional properties
metadata
required
object
createdAt
string
createdBy
string
updatedAt
string
updatedBy
string
status
string
statusHistory
Array<object>
object
key
additional properties
activatedAt
string
deprecatedAt
string
archivedAt
string
Example
{ "ifMatch": "2", "profile": { "preset": "custom", "clientType": "web", "oauth": { "grantTypes": [ "authorization_code" ] }, "redirect": { "redirectUris": [ "https://app.example.com/callback" ] }, "metadata": { "status": "draft" } }}Responses
Section titled “ Responses ”Client policy profile update result.
Media type application/json
object
profile
required
object
clientId
required
string
version
required
integer format: int64
tenantContractVersion
required
integer format: int64
clientType
required
string
preset
required
string
oauth
required
object
key
additional properties
encryption
required
object
key
additional properties
scopes
required
Array<string>
authMethods
required
Array<string>
consent
required
object
key
additional properties
redirect
required
object
key
additional properties
tokens
required
object
key
additional properties
metadata
required
object
createdAt
string
createdBy
string
updatedAt
string
updatedBy
string
status
string
statusHistory
Array<object>
object
key
additional properties
activatedAt
string
deprecatedAt
string
archivedAt
string
previousVersion
required
integer format: int64
warnings
required
Array<string>
_links
required
object
self
string
Example
{ "profile": { "clientId": "client_123", "version": 3, "tenantContractVersion": 7, "clientType": "web", "preset": "custom", "oauth": { "grantTypes": [ "authorization_code" ] }, "encryption": {}, "scopes": [ "openid" ], "authMethods": [ "authorization_code" ], "consent": {}, "redirect": { "redirectUris": [ "https://app.example.com/callback" ] }, "tokens": {}, "metadata": { "createdAt": "2026-02-01T00:00:00.000Z", "createdBy": "admin_123", "updatedAt": "2026-02-01T00:05:00.000Z", "updatedBy": "admin_123", "status": "draft", "statusHistory": [] } }, "previousVersion": 2, "warnings": [], "_links": { "self": "/api/admin/clients/client_123/profile" }}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}default
Section titled “default ”Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}