POST - /environment
Description
This API adds an environment.
Input
Type: application/json
Param | Source | Type | Required | Description |
---|---|---|---|---|
code | body |  string |  yes |  environment code |
 description |  body |  string |  yes |  environment description |
 settings |  body |  object |  yes |  |
body.settingsÂ
"oneOf": [
{
"required": ["type", "port"]
},
{
"required": ["type", "namespace", "id"]
}
]
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | body.settings |  enum |  conditional |
|
 port | body.settings |  string |  conditional |  environment description |
 namespace | body.settings |  string |  conditional |
|
id | body.settings | string | conditional | Â |
Â