curl --location --request POST 'https://app.launchdarkly.com/api/v2/projects' \
--header 'Content-Type: application/json' \
--data-raw '{
"defaultClientSideAvailability": {
"usingEnvironmentId": true,
"usingMobileKey": true
},
"environments": [
{
"color": "417505",
"confirmChanges": false,
"defaultTrackEvents": false,
"defaultTtl": 0,
"key": "dev",
"name": "Development",
"requireComments": false,
"secureMode": false,
"tags": [
"tag1",
"tag2"
]
}
],
"includeInSnippetByDefault": false,
"key": "new-project",
"name": "New Project",
"tags": [
"ops",
"dev"
]
}'
{
"_id": "5a580a01b4ff89217bdf9dc1",
"_links": {
"next": {
"href": "/api/v2/endpoint",
"type": "application/json"
},
"self": {
"href": "/api/v2/endpoint",
"type": "application/json"
}
},
"defaultClientSideAvailability": {
"usingEnvironmentId": true,
"usingMobileKey": true
},
"environments": [
{
"_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"
]
}
],
"includeInSnippetByDefault": true,
"key": "zentasks",
"name": "Zentasks",
"tags": [
"string"
]
}