---
updatedAt: 2026-02-25T13:19:52.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/governance/llms.txt
---

# Update Lifecycle

Adds, removes, and reorders the stages of a project lifecycle.
Note: Global stages, such as PR, COMMIT, and PROD, cannot be modified and should not be included in the request.
Since: 7.125.4


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JFrog REST APIs - Stages & Lifecycles",
    "description": "This section includes the following stage and lifecycle APIs: Create Lifecycle Stage, Update Stage, Get Lifecycle Stages, Get Lifecycle Stage Details, Delete Lifecycle Stage, Get Lifecycle, Update Lifecycle.\n",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://{jfrog_url}/access/api/v2"
    }
  ],
  "tags": [
    {
      "name": "Lifecycle"
    }
  ],
  "paths": {
    "/lifecycle": {
      "patch": {
        "tags": [
          "Lifecycle"
        ],
        "summary": "Update Lifecycle",
        "description": "Adds, removes, and reorders the stages of a project lifecycle.\nNote: Global stages, such as PR, COMMIT, and PROD, cannot be modified and should not be included in the request.\nSince: 7.125.4\n",
        "operationId": "updateLifecycle",
        "parameters": [
          {
            "name": "project_key",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Filters the list for a specific project."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLifecycleRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LifecycleCategory"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Bad Credentials",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "Permission Denied",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "UpdateLifecycleRequest": {
        "type": "object",
        "required": [
          "promote_stages"
        ],
        "properties": {
          "promote_stages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The new, ordered list of stage names that comprise the lifecycle."
          }
        }
      },
      "LifecycleCategory": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "CODE",
              "PROMOTE"
            ],
            "description": "The category name (CODE or PROMOTE)."
          },
          "stages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LifecycleStageRef"
            },
            "description": "An ordered list of stages within a particular category."
          }
        }
      },
      "LifecycleStageRef": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The stage name (for example, DEV or QA)."
          },
          "scope": {
            "type": "string",
            "enum": [
              "global",
              "project"
            ],
            "description": "The level at which the stage exists (global or project)."
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```