Skip to content

Deactivate an API service integration instance secret

Request

OAuth 2.0 scope:
  • okta.oauthIntegrations.manage

Deactivates an API Service Integration instance Secret by secretId

Path
apiServiceIdstringrequired

id of the API Service Integration instance

Example:000lr2rLjZ6NsGn1P0g3
secretIdstringrequired

id of the API Service Integration instance Secret

Example:ocs2f4zrZbs8nUa7p0g4
curl -i -X POST \
  https://subdomain.okta.com/integrations/api/v1/api-services/000lr2rLjZ6NsGn1P0g3/credentials/secrets/ocs2f4zrZbs8nUa7p0g4/lifecycle/deactivate

Responses

OK

Bodyapplication/json
client_secretstringread-onlyrequired

The OAuth 2.0 client secret string. The client secret string is returned in the response of a Secret creation request. In other responses (such as list, activate, or deactivate requests), the client secret is returned as an undisclosed hashed value.

Example:"DRUFXGF9XbLnS9k-Sla3x3POBiIxDreBCdZuFs5B"
createdstringread-onlyrequired

Timestamp when the API Service Integration instance Secret was created

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

The ID of the API Service Integration instance Secret

Example:"ocs2f4zrZbs8nUa7p0g4"
lastUpdatedstringread-onlyrequired

Timestamp when the API Service Integration instance Secret was updated

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

OAuth 2.0 client secret string hash

Example:"yk4SVx4sUWVJVbHt6M-UPA"
statusstringrequired

Status of the API Service Integration instance Secret

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