For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Review an approval request by approving or denying changes.
curl --request POST \
--url https://app.launchdarkly.com/api/v2/approval-requests/{id}/reviews \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "approve",
"comment": "Looks good, thanks for updating"
}
'{
"_id": "12ab3c45de678910abc12345",
"_version": 1,
"creationDate": "1654104600000",
"serviceKind": "launchdarkly",
"reviewStatus": "pending",
"allReviews": [
{
"_id": "12ab3c45de678910abc12345",
"kind": "approve",
"creationDate": "1653606981113",
"comment": "Approved!",
"memberId": "12ab3c45de678910abc12345",
"serviceTokenId": "12ab3c45de678910abc12345"
}
],
"notifyMemberIds": [
"1234a56b7c89d012345e678f"
],
"status": "pending",
"instructions": "[{\"kind\": \"turnFlagOn\"}]",
"conflicts": [
{
"instruction": {},
"reason": "<string>"
}
],
"_links": {},
"requestorId": "12ab3c45de678910abc12345",
"description": "example: request approval from someone",
"appliedDate": "1654104600000",
"appliedByMemberId": "1234a56b7c89d012345e678f",
"appliedByServiceTokenId": "1234a56b7c89d012345e678f",
"executionDate": "1654104600000",
"operatingOnId": "12ab3c45de678910abc12345",
"integrationMetadata": {
"externalId": "<string>",
"externalStatus": {
"display": "<string>",
"value": "<string>"
},
"externalUrl": "<string>",
"lastChecked": 123
},
"source": {
"key": "source-flag-key-123abc",
"version": 1
},
"customWorkflowMetadata": {
"name": "Example workflow name",
"stage": {
"index": 0,
"name": "Stage 1"
}
},
"resourceId": "<string>",
"approvalSettings": {
"required": true,
"bypassApprovalsForPendingChanges": false,
"minNumApprovals": 1,
"canReviewOwnRequest": false,
"canApplyDeclinedChanges": true,
"serviceKind": "launchdarkly",
"serviceConfig": {},
"requiredApprovalTags": [
"require-approval"
],
"autoApplyApprovedChanges": true,
"serviceKindConfigurationId": "1ef45a85-218f-4428-a8b2-a97e5f56c258"
}
}Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The approval request ID
Approval request review response
The ID of this approval request
"12ab3c45de678910abc12345"
Version of the approval request
1
Timestamp of when the approval request was created
"1654104600000"
The approval service for this request. May be LaunchDarkly or an external approval service, such as ServiceNow or JIRA.
"launchdarkly"
Current status of the review of this approval request
approved, declined, pending "pending"
An array of individual reviews of this approval request
Show child attributes
An array of member IDs. These members are notified to review the approval request.
["1234a56b7c89d012345e678f"]Current status of the approval request
pending, completed, failed, scheduled "pending"
List of instructions in semantic patch format to be applied to the feature flag
Show child attributes
"[{\"kind\": \"turnFlagOn\"}]"
Details on any conflicting approval requests
Show child attributes
The location and content type of related resources
Show child attributes
The ID of the member who requested the approval
"12ab3c45de678910abc12345"
A human-friendly name for the approval request
"example: request approval from someone"
Timestamp of when the approval request was applied
"1654104600000"
The member ID of the member who applied the approval request
"1234a56b7c89d012345e678f"
The service token ID of the service token which applied the approval request
"1234a56b7c89d012345e678f"
Timestamp for when instructions will be executed
"1654104600000"
ID of scheduled change to edit or delete
"12ab3c45de678910abc12345"
Details about the object in an external service corresponding to this approval request, such as a ServiceNow change request or a JIRA ticket, if an external approval service is being used
Show child attributes
Details about the source feature flag, if copied
Show child attributes
Details about the custom workflow, if this approval request is part of a custom workflow
Show child attributes
String representation of a resource
The settings for this approval
Show child attributes
curl --request POST \
--url https://app.launchdarkly.com/api/v2/approval-requests/{id}/reviews \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "approve",
"comment": "Looks good, thanks for updating"
}
'{
"_id": "12ab3c45de678910abc12345",
"_version": 1,
"creationDate": "1654104600000",
"serviceKind": "launchdarkly",
"reviewStatus": "pending",
"allReviews": [
{
"_id": "12ab3c45de678910abc12345",
"kind": "approve",
"creationDate": "1653606981113",
"comment": "Approved!",
"memberId": "12ab3c45de678910abc12345",
"serviceTokenId": "12ab3c45de678910abc12345"
}
],
"notifyMemberIds": [
"1234a56b7c89d012345e678f"
],
"status": "pending",
"instructions": "[{\"kind\": \"turnFlagOn\"}]",
"conflicts": [
{
"instruction": {},
"reason": "<string>"
}
],
"_links": {},
"requestorId": "12ab3c45de678910abc12345",
"description": "example: request approval from someone",
"appliedDate": "1654104600000",
"appliedByMemberId": "1234a56b7c89d012345e678f",
"appliedByServiceTokenId": "1234a56b7c89d012345e678f",
"executionDate": "1654104600000",
"operatingOnId": "12ab3c45de678910abc12345",
"integrationMetadata": {
"externalId": "<string>",
"externalStatus": {
"display": "<string>",
"value": "<string>"
},
"externalUrl": "<string>",
"lastChecked": 123
},
"source": {
"key": "source-flag-key-123abc",
"version": 1
},
"customWorkflowMetadata": {
"name": "Example workflow name",
"stage": {
"index": 0,
"name": "Stage 1"
}
},
"resourceId": "<string>",
"approvalSettings": {
"required": true,
"bypassApprovalsForPendingChanges": false,
"minNumApprovals": 1,
"canReviewOwnRequest": false,
"canApplyDeclinedChanges": true,
"serviceKind": "launchdarkly",
"serviceConfig": {},
"requiredApprovalTags": [
"require-approval"
],
"autoApplyApprovedChanges": true,
"serviceKindConfigurationId": "1ef45a85-218f-4428-a8b2-a97e5f56c258"
}
}