Create approval request
Create an approval request.
This endpoint requires a list of instructions, in semantic patch format, that will be applied when the approval request is approved and applied.
Flags
If you are creating an approval request for a flag, you can use the following instructions:
addVariationremoveVariationupdateVariationupdateDefaultVariation
For details on using these instructions, read Update feature flag.
To create an approval for a flag specific to an environment, use Create approval request for a flag.
AgentControl
If you are creating an approval request for an AgentControl config, you can use the semantic patch instructions listed under Update config targeting.
Segments
If you are creating an approval request for a segment, you can use the semantic patch instructions listed under Patch segment.
Body
List of instructions in semantic patch format to be applied to the feature flag. Review the Update feature flag documentation for details on available instructions.
"[{\"kind\": \"addUserTargets\", \"values\": [ \"user-key-123abc\"], \"variationId\": \"ce67d625-a8b9-4fb5-a344-ab909d9d4f4d\" }]"
Additional approval request fields for third-party integration approval systems. If you are using a third-party integration to manage approval requests, these additional fields will be described in the manifest.json for that integration, at https://github.com/launchdarkly/integration-framework.
Response
Approval request response