Add new OAuth client's secret
POST {{baseUrl}}/provider/oauth/clients/:id/secrets
Introduce new secret. If a new secret is not provided, it will be automatically generated. Up to two client secrets are supported. 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
| Key | Datatype | Required | Description |
|---|---|---|---|
Current-Secret | string | Required, 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-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"secret":"reprehenderit"}