Get release for flag
Get currently active release for a flag
Authorization
ApiKey read, writeIn: header
Scope: read, write
Path Parameters
The project key
stringThe flag key
stringResponse Body
application/json
application/json
curl -X GET "https://example.com/api/v2/flags/string/string/release"{ "_links": { "property1": { "href": "string", "type": "string" }, "property2": { "href": "string", "type": "string" } }, "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, "_creationDate": "1684262711507", "_completionDate": "1684262711509", "_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": { "_links": { "property1": { "href": "string", "type": "string" }, "property2": { "href": "string", "type": "string" } }, "_id": "string", "name": "DevOps token", "ending": "2345", "serviceToken": false } }, "_audiences": [ { "_id": "1234a56b7c89d012345e678g", "_links": { "property1": { "href": "string", "type": "string" }, "property2": { "href": "string", "type": "string" } }, "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": { "releaseStrategy": "monitoredRelease", "requireApproval": true, "notifyMemberIds": [ "1234a56b7c89d012345e678f" ], "notifyTeamKeys": [ "example-reviewer-team" ], "releaseGuardianConfiguration": { "monitoringWindowMilliseconds": 60000, "rolloutWeight": 50, "rollbackOnRegression": true, "randomizationUnit": "user" } }, "segmentKeys": [ "segment-key-123abc" ], "status": "active", "_ruleIds": [ "string" ] } ], "status": "Started", "started": true, "_startedDate": 0, "configuration": {} } ], "_version": 1, "_releaseVariationId": "string", "_canceledAt": "1684262711507"}Delete flag trigger DELETE
Delete a flag trigger by ID.
Patch release for flag PATCH
This endpoint is only available for releases that are part of a legacy release pipeline. Releases for new release pipelines should use the [Update phase status for release](https://launchdarkly.com/docs/api/releases-beta/update-phase-status) endpoint. Update currently active release for a flag. Updating releases requires the [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) format. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates). You can only use this endpoint to mark a release phase complete or incomplete. To indicate which phase to update, use the array index in the `path`. For example, to mark the first phase of a release as complete, use the following request body: ``` [ { "op": "replace", "path": "/phase/0/complete", "value": true } ] ```