跳到主要内容

changeActivation

changeActivation(clientId, ChangeClientActivationRequest)

PATCH /api/2.0/oauth2/clients/{clientId}/activation

Change client activation status

Enables or disables an existing client and answers 200 with an empty body. A disabled client can no longer obtain new tokens, but the tokens and consents it already holds stay valid until they expire on their own: disable a client to stop new authorizations, delete it to end the existing ones. An administrator may change any client of the tenant, a plain user only the clients they created. The body carries the single activation flag, and a client the caller may not see is reported as not found rather than as forbidden.

Parameters​

NameInTypeDescriptionNotes
clientIdpathStringID of the client to change activation for[required] [example: 6c7cf17b-1bd3-47d5-94c6-be2d3570e168] [minLength: 1]
ChangeClientActivationRequestbodyChangeClientActivationRequest[required]

Responses​

Status codeDescriptionTypeResponse headers
200Client activation status successfully changed--
400The client ID is blank, or the activation status is missingProblemDetail-
403Insufficient permissions to change client activationProblemDetail-
404No client with this ID is visible to the caller, or the ID cannot be parsed as a client IDProblemDetail-
415The Content-Type header is not application/jsonProblemDetail-
429Too many requests - rate limit exceededProblemDetail-
500Internal server error occurredProblemDetail-
405The HTTP method is not allowed for this pathProblemDetail-
406The Accept header does not allow application/jsonProblemDetail-

Return type​

null (empty response body)

Authorization​

x-signature

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json