curl --location --request POST 'https://app.launchdarkly.com/api/v2/integrations/' \
--header 'Content-Type: application/json' \
--data-raw '{
"config": {
"apiKey": "582**************************116",
"hostURL": "https://api.datadoghq.com"
},
"name": "Example Datadog Integration",
"on": true,
"statements": [
{
"actions": [
"updateOn"
],
"effect": "allow",
"notActions": [
"updateOn"
],
"notResources": [
"proj/*:env/*:flag/my-flag"
],
"resources": [
"proj/*:env/*:flag/my-flag"
]
}
],
"tags": []
}'
{
"_id": "5a580a01b4ff89217bdf9dc1",
"_links": {
"parent": {
"href": "/api/v2/endpoint",
"type": "application/json"
},
"self": {
"href": "/api/v2/endpoint",
"type": "application/json"
}
},
"_status": {
"errorCount": 2,
"lastSuccess": 1443652232590,
"successCount": 6
},
"config": {
"apiKey": "582**************************116",
"hostURL": "https://api.datadoghq.com"
},
"kind": "datadog",
"name": "V2",
"on": true,
"statements": [
{
"actions": [
"updateOn"
],
"effect": "allow",
"notActions": [
"updateOn"
],
"notResources": [
"proj/*:env/*:flag/my-flag"
],
"resources": [
"proj/*:env/*:flag/my-flag"
]
}
],
"tags": [
"string"
]
}