Approvals
Create approval request to copy flag configurations across environments
Create an approval request to copy a feature flag's configuration across environments.
post/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/approval-requests-flag-copy
Path parameters
projectKeystring string required
The project key
The project key
featureFlagKeystring string required
The feature flag key
The feature flag key
environmentKeystring string required
The environment key for the target environment
The environment key for the target environment
Request body
Example request
{
"comment": "optional comment",
"description": "copy flag settings to another environment",
"notifyMemberIds": [
"1234a56b7c89d012345e678f"
],
"notifyTeamKeys": [
"example-reviewer-team"
],
"source": {
"key": "environment-key-123abc",
"version": 1
},
"includedActions": [
"updateOn"
],
"excludedActions": [
"updateOn"
]
}Response
Approval request response
Example response
{
"_id": "12ab3c45de678910abc12345",
"_version": 1,
"requestorId": "12ab3c45de678910abc12345",
"description": "example: request approval from someone",
"reviewStatus": "pending",
"allReviews": [
{
"_id": "12ab3c45de678910abc12345",
"kind": "approve",
"comment": "Approved!",
"memberId": "12ab3c45de678910abc12345",
"serviceTokenId": "12ab3c45de678910abc12345"
}
],
"notifyMemberIds": [
"1234a56b7c89d012345e678f"
],
"appliedByMemberId": "1234a56b7c89d012345e678f",
"appliedByServiceTokenId": "1234a56b7c89d012345e678f",
"status": "pending",
"operatingOnId": "12ab3c45de678910abc12345",
"source": {
"key": "source-flag-key-123abc",
"version": 1
},
"customWorkflowMetadata": {
"name": "Example workflow name",
"stage": {
"name": "Stage 1"
}
}
}