Update OAuth client's secret

PUT {{baseUrl}}/provider/oauth/clients/:id/secrets

Replaces current client's secret(s) with new one. If a new secret is not provided, it will be automatically generated. If the scope is prv.oc.sec.ch, then the client can change it's own secret and needs to provide its old secret. If the scope is prv.oc.sec.admin, then it can change arbitrary client secret in the tenant. This is for technical users only.

Request Body

{"newSecret"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Current-SecretstringRequired, unless your have prv.oc.sec.admin scope. It is used to make sure the requestor has permission to modify the given client's secret.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;secret&quot;:&quot;reprehenderit&quot;}