Whenever you create a new company, a default environment is created with the three default groups assigned to the company. Several environments may be defined for a single company.
View environments for a company
Use the GET method to view groups under a company with the following input:
-
Service Root URI: https://<Server Name>/<IIS Application Name>/sem/v3
-
Resource path: /Companies('CompanyId')/Environments
Sample URI for viewing environments under a company
GET
https://WebApiServer1.APIServerDomain.com/webapibe3.0/sem/v3/Companies('dfbbe4ae-bfb2-44a3-9169-cd6f9f6159b7')/Environments
Sample URI for updating an environment
PATCH
https://WebApiServer1.APIServerDomain.com/webapibe3.0/sem/v3/Companies('dfbbe4ae-bfb2-44a3-9169-cd6f9f6159b7')/Environments('220b72a9-a805-4e54-a343-60ed95d0532b')
Sample JSON request
{
"Name": "Test Environment",
"Description": "Test Environment Description",
"Groups": [
"bc755e3d-6533-4a74-8688-84b4ce26ccf2"]
}