To update the configuration of your environment, you can use PUT /environments/{environmentId} to modify the attributes of the specified environment. The sample shows a SANDBOX environment resource type is changed to PRODUCTION.
Note: You cannot delete a PRODUCTION environment unless you first demote it to SANDBOX. If you have a trial license, you cannot create PRODUCTION environments or promote SANDBOX environments to PRODUCTION.