Skip to main content

regenerateSecret

ClientSecretResponse regenerateSecret(clientId)

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

Regenerate client secret

Issues a new secret for the client and returns it. The previous secret stops working as soon as this call succeeds, there is no grace period and no way to recover it, so every deployed copy of the client has to be updated with the value returned here. An administrator may do this for any client of the tenant, a plain user only for the clients they created. Tokens already issued to the client keep working; only future client authentication is affected. The response carries the new secret and nothing else.

Parameters​

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

Responses​

Status codeDescriptionTypeResponse headers
200Client secret successfully regeneratedClientSecretResponse-
400The client ID is blank or contains only whitespaceProblemDetail-
403Insufficient permissions to regenerate client secretProblemDetail-
404No client with this ID is visible to the caller, or the ID cannot be parsed as a client IDProblemDetail-
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​

ClientSecretResponse

Authorization​

x-signature

HTTP request headers​

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