cURL
curl --request POST \ --url https://api.ctrlplane.dev/api/v1/environments \ --header 'Content-Type: application/json' \ --data '{ "directory": "my/env/path", "systemId": "<string>", "name": "<string>", "description": "<string>", "resourceSelector": {}, "policyId": "<string>", "releaseChannels": [ "<string>" ], "deploymentVersionChannels": [ "<string>" ], "metadata": {} }'
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "systemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "policyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "resourceSelector": {}, "directory": "my/env/path", "createdAt": "2023-11-07T05:31:56Z", "metadata": {}, "policy": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "systemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "approvalRequirement": "manual", "successType": "some", "successMinimum": 123, "concurrencyLimit": 123, "rolloutDuration": 123, "minimumReleaseInterval": 123, "releaseSequencing": "wait" } }
The directory path of the environment
"my/env/path"
Show child attributes
Environment created successfully