curl --location --request POST 'https://app.launchdarkly.com/api/v2/projects//flags//environments//approval-requests//apply' \
--header 'Content-Type: application/json' \
--data-raw '{
"comment": "Applying approved changes"
}'
{
"_links": {
"next": {
"href": "/api/v2/endpoint",
"type": "application/json"
},
"self": {
"href": "/api/v2/endpoint",
"type": "application/json"
}
},
"items": [
{
"_id": "5a580a01b4ff89217bdf9dc1",
"_version": 0,
"allReviews": [
{
"_id": "5a580a01b4ff89217bdf9dc1",
"creationDate": 0,
"kind": "pending",
"memberId": "5a580a01b4ff89217bdf9dc1"
}
],
"appliedByMemberID": "string",
"appliedDate": 0,
"creationDate": 0,
"executionDate": 0,
"instructions": [
{
"kind": "removeUserTargets"
}
],
"notifyMemberIds": [
"memberId",
"memberId2"
],
"operatingOnId": "string",
"requestorId": "string",
"reviewStatus": "pending",
"status": "pending"
}
]
}