The POST /environments/{environmentId}/encryptions operation encrypts the plaintext string specified in the request body. You must specify either the certificate ID or the key ID in the request (but not both). The following request initiates the encrypt operation by specifying the certificate ID in the request body.

The response data returns the encrypted cipher text string.