# Manage projects stages

`projects.update_stage_configuration`

Save the complete ordered project stage list using projects.get_stage_configuration’s revision and stage IDs. New stages use active or closed category_key. At least one active stage must remain. A stage with a deletion_blocker must remain. This does not move records or change application statuses. Only perform the administrator's requested changes.

[Projects guide](https://docs.levr.ai/mcp/resources/projects.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: write. Required OAuth scopes: mcp.

## Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "configuration": {
      "additionalProperties": false,
      "example": {
        "expected_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "stages": [
          {
            "category_key": "active",
            "id": "pstg_a1b2c3d4e5f6g7h8",
            "name": "New enquiry"
          },
          {
            "category_key": "closed",
            "id": "pstg_b2c3d4e5f6g7h8i9",
            "name": "Closed"
          }
        ]
      },
      "properties": {
        "expected_revision": {
          "maxLength": 64,
          "minLength": 64,
          "type": "string"
        },
        "stages": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "category_key": {
                "maxLength": 100,
                "type": "string"
              },
              "id": {
                "pattern": "^pstg_[a-z0-9]+$",
                "type": "string"
              },
              "name": {
                "maxLength": 127,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name",
              "category_key"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "expected_revision",
        "stages"
      ],
      "type": "object"
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "pattern": "^[a-zA-Z0-9_-]{1,64}$",
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "configuration"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "example": {
        "categories": [
          {
            "description": "Work continues, including monitoring funded facilities.",
            "key": "active",
            "label": "Active work"
          },
          {
            "description": "No current Project work remains. Applications stay unchanged.",
            "key": "closed",
            "label": "Closed"
          }
        ],
        "revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "stages": [
          {
            "category_key": "active",
            "category_label": "Active work",
            "deletion_blocker": "Move the records in this stage before removing it.",
            "id": "pstg_a1b2c3d4e5f6g7h8",
            "name": "Open",
            "object": "project_stage",
            "record_count": 3
          },
          {
            "category_key": "closed",
            "category_label": "Closed",
            "deletion_blocker": "Move the records in this stage before removing it.",
            "id": "pstg_b2c3d4e5f6g7h8i9",
            "name": "Closed",
            "object": "project_stage",
            "record_count": 1
          }
        ]
      },
      "properties": {
        "categories": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "description": {
                "type": "string"
              },
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "key",
              "label",
              "description"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "revision": {
          "type": "string"
        },
        "stages": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "category_key": {
                "maxLength": 100,
                "type": "string"
              },
              "category_label": {
                "type": "string"
              },
              "deletion_blocker": {
                "description": "Why this stage must remain in the workflow, or null when it can be removed.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "id": {
                "pattern": "^pstg_[a-z0-9]+$",
                "type": "string"
              },
              "name": {
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "object": {
                "const": "project_stage",
                "type": "string"
              },
              "record_count": {
                "description": "Records referencing this stage, including records excluded from API collections. Used for stage removal checks; not a collection total.",
                "type": "integer"
              }
            },
            "required": [
              "id",
              "object",
              "name",
              "category_key",
              "category_label",
              "record_count",
              "deletion_blocker"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "revision",
        "categories",
        "stages"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```

Check the result, then read the affected record to confirm your change.
