Deactivate Public Key
POST/v2/actions/targets/:targetId/publickeys/:keyId/deactivate
Deactivates the public key for payload encryption.
The public key will no longer be used to encrypt payloads sent to the target.
Be aware that deactivating the active key will leave the target without an active key.
Subsequent calls to the target with payload type PAYLOAD_TYPE_JWE will fail until a new key is activated.
This endpoint can be used in break glass scenarios to quickly disable a compromised key.
Deactivating a key that is already inactive is a no-op.
Required permission:
action.target.write
Request​
Responses​
- 200
- 403
- 404
- default
Public key deactivated successfully
Returned when the user does not have permission to access the resource.
The key to deactivate does not exist.
An unexpected error response.