Releases (beta)
Create a new release for flag
Creates a release by adding a flag to a release pipeline
put/api/v2/projects/{projectKey}/flags/{flagKey}/release
Path parameters
projectKeystring string required
The project key
The project key
flagKeystring string required
The flag key
The flag key
Request body
Response
Release response
Example response
{
"name": "Example release pipeline",
"releasePipelineKey": "example-release-pipeline",
"releasePipelineDescription": "Our release pipeline for typical testing and deployment",
"phases": [
{
"_id": "1234a56b7c89d012345e678f",
"_name": "Phase 1 - Testing",
"complete": true,
"_completedBy": {
"member": {
"_links": {
"self": {
"href": "/api/v2/members/569f183514f4432160000007",
"type": "application/json"
}
},
"_id": "569f183514f4432160000007",
"firstName": "Ariel",
"lastName": "Flores",
"role": "admin",
"email": "ariel@acme.com"
},
"token": {
"name": "DevOps token",
"ending": "2345"
}
},
"_audiences": [
{
"_id": "1234a56b7c89d012345e678g",
"environment": {
"_links": {
"self": {
"href": "/api/v2/projects/my-project/environments/my-environment",
"type": "application/json"
}
},
"key": "environment-key-123abc",
"name": "My Environment",
"color": "F5A623"
},
"name": "Phase 1 - Testing",
"configuration": {
"requireApproval": true,
"notifyMemberIds": [
"1234a56b7c89d012345e678f"
],
"notifyTeamKeys": [
"example-reviewer-team"
],
"releaseGuardianConfiguration": {
"monitoringWindowMilliseconds": 60000,
"rolloutWeight": 50,
"rollbackOnRegression": true,
"randomizationUnit": "user"
}
},
"segmentKeys": [
"segment-key-123abc"
]
}
]
}
],
"_version": 1
}