Activate Public Key
POST/v2/actions/targets/:targetId/publickeys/:keyId/activate
Activates the public key for payload encryption.
The public key is used to encrypt the payload sent to the target when the payload type is set to PAYLOAD_TYPE_JWE.
Activating a new key will deactivate the current active key. Only one key can be active at a time.
The active key is indicated in the kid header in the JWE token sent to the target.
Activating a key that is already active is a no-op.
Required permission:
action.target.write
Request​
Responses​
- 200
- 403
- 404
- default
Public key activated successfully
Returned when the user does not have permission to access the resource.
The key to activate does not exist.
An unexpected error response.