Create a new client secret
Changed onCreate a new client secret for a given client. Multiple secrets can be active simultaneously for a single client.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The auth server ID
The OAuth 2.0 client ID
Request body
The OAuth 2.0 client secret
Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase.
Example request
{
"secret": "YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae"
}Response
A Client Secret item
The client secret. The secret value is only returned when creating a new secret item.
The ID of the client secret
Specifies whether the secret is enabled. If the secret is not enabled, it will not be usable during authentication phase.
The OAuth 2.0 client secret
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"secret": "YAzsyUlNZ5gNGeKS9H3VAdxVPzhPo4ae",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #2from the response bodyallOflist for the response status
12 more changes in this revision
- breaking