To add a secret (an encrypted parameter value) to the external service configuration, you can use the PUT /environments/{{envID}}/externalServices/{{externalServiceID}}/secrets operation to define the name and value properties of the secret.