Delete API Key

POST /Api/Delete/Key

This process disables an active key if it was created by your access key and it is not your own. This proces also sets the end date to the current time. Secret Hmac and Today Code Required. No Caching.

Body Required


Only one of the KeyId or ApiKey are needed. If both KeyId and ApiKey are passed, they must match the same record.

  • KeyId number

    Optional key id for the record to edit (ApiKey required if this is omitted)

  • ApiKey string

    Optional API Key for the record to edit (KeyId required if this is omitted)

Responses

  • Deleted API Key successfully

    Hide response attribute Show response attribute object
  • Not Found - ID Not Found or Not Authorized.

POST /Api/Delete/Key
curl \
 -X POST https://Api.StrandVision.com/v1.0/Api/Delete/Key \
 -H "Authorization: X-apikey $ACCESS_TOKEN" \
 -H "Authorization: X-apidate $ACCESS_TOKEN" \
 -H "Authorization: X-apihmac $ACCESS_TOKEN" \
 -H "Authorization: X-apitoday $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"KeyId":1001,"ApiKey":"MyTestApiKey"}'
Request example
{
  "KeyId": 1001,
  "ApiKey": "MyTestApiKey"
}
Request examples
{
  "KeyId": 1001,
  "ApiKey": "MyTestApiKey"
}
Response examples (200)
{
  "DeleteDate": "Mon, 15 May 2023 14:34:17 GMT"
}
Response examples (200)
{
  "DeleteDate": "string"
}
Response examples (404)
"Error: Cannot find key id 1001"
Response examples (404)
Error: Cannot find key id 1001