The sample shows the POST /environments operation to create a new environment associated with the organization encoded in the access token. In the request body, the name, region, and type attributes are required. The value of the name attribute must be unique within the organization. The billOfMaterials attribute allows you to specify the Ping products associated with this environment.

If you set the type attribute to PRODUCTION, you cannot delete the environment until you reset the value to SANDBOX. If you have a trial license, you cannot create PRODUCTION environments or promote SANDBOX environments to PRODUCTION.