Skip to content

Revoke access to encryption key

Request to revoke the authorization of a user to use an encryption key:

DELETE /api/v2/encrypt_keys/<key-id>/authorized_users/<user-id>.json

Response contains HTTP status code as shown in the following table.

Response Description
200 OK The authorization has been revoked
403 Forbidden The request cannot be completed because API user has no permission to revoke access to encryption keys
404 Not Found Encryption key with such ID does not exist, the user does not exist, or the user is not authorized to use the key
409 Conflict

The key is application-protected:

{"error": "InvalidState", "explanation": "Could not revoke access on the application-protected key", "details": null}