---
title: "Update a release pipeline"
method: PUT
path: "/api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}"
tags: ["Release pipelines (beta)"]
---

# Update a release pipeline

`PUT /api/v2/projects/{projectKey}/release-pipelines/{pipelineKey}`

Updates a release pipeline.

## Path parameters

- `projectKey` string, string, required — The project key
- `pipelineKey` string, string, required — The release pipeline key

## Request body

- UpdateReleasePipelineInput
  - `description` string — The release pipeline description
  - `name` string, required — The name of the release pipeline
  - `phases` CreatePhaseInput[], required — A logical grouping of one or more environments that share attributes for rolling out changes
    - `audiences` AudiencePost[], required — An ordered list of the audiences for this release phase. Each audience corresponds to a LaunchDarkly environment.
      - `environmentKey` string, required — A project-unique key for the environment.
      - `name` string, required — The audience name
      - `segmentKeys` string[] — Segments targeted by this audience.
      - `configuration` AudienceConfiguration
        - `releaseStrategy` string, required
        - `requireApproval` boolean, required — Whether or not the audience requires approval
        - `notifyMemberIds` string[] — An array of member IDs. These members are notified to review the approval request.
        - `notifyTeamKeys` string[] — An array of team keys. The members of these teams are notified to review the approval request.
        - `releaseGuardianConfiguration` ReleaseGuardianConfiguration
          - `monitoringWindowMilliseconds` integer, required — The monitoring window in milliseconds
          - `rolloutWeight` integer, required — The rollout weight percentage
          - `rollbackOnRegression` boolean, required — Whether or not to roll back on regression
          - `randomizationUnit` string — The randomization unit for the measured rollout
    - `name` string, required — The release phase name
    - `configuration` PhaseConfiguration
  - `tags` string[] — A list of tags for this release pipeline

## Response `200`

Release pipeline response

- ReleasePipeline
  - `createdAt` string, date-time, required — Timestamp of when the release pipeline was created
  - `description` string — The release pipeline description
  - `key` string, required — The release pipeline key
  - `name` string, required — The release pipeline name
  - `phases` Phase[], required — An ordered list of the release pipeline phases. Each phase is a logical grouping of one or more environments that share attributes for rolling out changes.
    - `id` string, required — The phase ID
    - `audiences` Audience[], required
      - `environment` EnvironmentSummary
        - `_links` object, required — The location and content type of related resources
        - `key` string, required — A project-unique key for the environment
        - `name` string, required — A human-friendly name for the environment
        - `color` string, required — The color used to indicate this environment in the UI
      - `name` string, required — The release phase name
      - `configuration` AudienceConfiguration
        - `releaseStrategy` string, required
        - `requireApproval` boolean, required — Whether or not the audience requires approval
        - `notifyMemberIds` string[] — An array of member IDs. These members are notified to review the approval request.
        - `notifyTeamKeys` string[] — An array of team keys. The members of these teams are notified to review the approval request.
        - `releaseGuardianConfiguration` ReleaseGuardianConfiguration
          - `monitoringWindowMilliseconds` integer, required — The monitoring window in milliseconds
          - `rolloutWeight` integer, required — The rollout weight percentage
          - `rollbackOnRegression` boolean, required — Whether or not to roll back on regression
          - `randomizationUnit` string — The randomization unit for the measured rollout
      - `segmentKeys` string[] — A list of segment keys
    - `name` string, required — The release phase name
    - `configuration` PhaseConfiguration
  - `tags` string[] — A list of the release pipeline's tags
  - `_version` integer — The release pipeline version
  - `_access` Access
    - `denied` AccessDenied[], required
      - `action` string, required
      - `reason` AccessDeniedReason, required
        - `resources` string[] — Resource specifier strings
        - `notResources` string[] — Targeted resources are the resources NOT in this list. The <code>resources</code> and <code>notActions</code> fields must be empty to use this field.
        - `actions` ActionSpecifier[] — Actions to perform on a resource
        - `notActions` ActionSpecifier[] — Targeted actions are the actions NOT in this list. The <code>actions</code> and <code>notResources</code> fields must be empty to use this field.
        - `effect` 'allow' | 'deny', required — Whether this statement should allow or deny actions on the resources.
        - `role_name` string
    - `allowed` AccessAllowedRep[], required
      - `action` string, required
      - `reason` AccessAllowedReason, required
        - `resources` string[] — Resource specifier strings
        - `notResources` string[] — Targeted resources are the resources NOT in this list. The <code>resources</code> and <code>notActions</code> fields must be empty to use this field.
        - `actions` ActionSpecifier[] — Actions to perform on a resource
        - `notActions` ActionSpecifier[] — Targeted actions are the actions NOT in this list. The <code>actions</code> and <code>notResources</code> fields must be empty to use this field.
        - `effect` 'allow' | 'deny', required — Whether this statement should allow or deny actions on the resources.
        - `role_name` string
  - `isProjectDefault` boolean — Whether this release pipeline is the default pipeline for the project
  - `_isLegacy` boolean — Whether this release pipeline is a legacy pipeline

## Other responses

- `400` — Invalid request
- `403` — Forbidden
- `404` — Invalid resource identifier

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
