API Subscriptions
Revoke a subscription API Key
Revoke a subscription API Key
Revoke the subscription API Key by setting the revocation date to the current date and flagging it as revoked.<br> A notification will be sent to the subscriber according to his portal notification options.
High risk operation: require explicit user confirmation before execution.
post/environments/{envId}/apis/{apiId}/subscriptions/{subscriptionId}/api-keys/{apiKeyId}/_revoke
Response
The revoked subscription API Key.
Example response
{
"id": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"key": "my-api-key",
"application": {
"id": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"name": "My App",
"description": "I can use a hundred characters to describe this App.",
"domain": "https://my-app.com",
"type": "iOS",
"primaryOwner": {
"id": "00f8c9e7-78fc-4907-b8c9-e778fc790750",
"displayName": "John Doe"
},
"apiKeyMode": "UNSPECIFIED"
},
"subscriptions": [
{
"id": "34f8c9e7-68fd-4922-b8c9-e778fc790777"
}
],
"expireAt": "2023-05-18 12:40:46.184000+00:00",
"createdAt": "2023-01-18 12:40:46.184000+00:00",
"updatedAt": "2023-01-18 12:40:46.184000+00:00",
"revokedAt": "2023-01-18 12:40:46.184000+00:00"
}