To add a variable to the external service configuration, you can again use the PUT /environments/{{envID}}/externalServices/{{externalServiceID}} operation to define the variables property. This property defines variables that can be used by any request specified in the requests property configuration.