curl --location --request POST 'https://app.launchdarkly.com/api/v2/projects//environments' \
--header 'Content-Type: application/json' \
--data-raw '{
"color": "417505",
"confirmChanges": false,
"defaultTrackEvents": false,
"defaultTtl": 0,
"key": "dev",
"name": "Development",
"requireComments": false,
"secureMode": false,
"tags": [
"tag1",
"tag2"
]
}'
{
"_id": "5a580a01b4ff89217bdf9dc1",
"_links": {
"next": {
"href": "/api/v2/endpoint",
"type": "application/json"
},
"self": {
"href": "/api/v2/endpoint",
"type": "application/json"
}
},
"apiKey": "XXX",
"approvalSettings": {
"canApplyDeclinedChanges": true,
"canReviewOwnRequest": true,
"minNumApprovals": 2,
"required": true,
"requiredApprovalTags": [
"string"
],
"serviceKind": "launchdarkly"
},
"color": "417505",
"confirmChanges": false,
"defaultTrackEvents": false,
"defaultTtl": 0,
"key": "production",
"mobileKey": "XXX",
"name": "Production",
"requireComments": false,
"secureMode": false,
"tags": [
"string"
]
}