Skip to content

Deactivate an OAuth 2.0 client secret

Request

OAuth 2.0 scope:
  • okta.apps.manage

Deactivates an OAuth 2.0 client secret by secretId. You can't deactivate a secret if it's the only secret of the client.

Path
appIdstringrequired

Application ID

Example:0oafxqCAJWWGELFTYASJ
secretIdstringrequired

Unique id of the OAuth 2.0 client secret

Example:ocs2f4zrZbs8nUa7p0g4
curl -i -X POST \
  https://subdomain.okta.com/api/v1/apps/0oafxqCAJWWGELFTYASJ/credentials/secrets/ocs2f4zrZbs8nUa7p0g4/lifecycle/deactivate

Responses

OK

Bodyapplication/json
client_secretstringread-only

The OAuth 2.0 client secret string

Example:"DRUFXGF9XbLn......a3x3POBiIxDreBCdZuFs5B"
createdstringread-only

Timestamp when the OAuth 2.0 client secret was created

Example:"2023-02-21T20:08:24.000Z"
idstringread-only

The unique ID of the OAuth 2.0 client secret

Example:"ocs2f4zrZbs8nUa7p0g4"
lastUpdatedstringread-only

Timestamp when the OAuth 2.0 client secret was updated

Example:"2023-02-21T20:08:24.000Z"
secret_hashstringread-only

OAuth 2.0 client secret string hash

Example:"yk4SVx4sUWVJVbHt6M-UPA"
statusstring

Status of the OAuth 2.0 client secret

Default:"ACTIVE"
Enum:"ACTIVE""INACTIVE"
Example:"ACTIVE"
Response
{ "id": "ocs2f4zrZbs8nUa7p0g4", "status": "INACTIVE", "client_secret": "DRUFXGF9XbLn......a3x3POBiIxDreBCdZuFs5B", "secret_hash": "yk4SVx4sUWVJVbHt6M-UPA", "created": "2023-02-21T20:08:24.000Z", "lastUpdated": "2023-02-21T20:08:24.000Z", "_links": { "activate": { … }, "delete": { … } } }