HiringMay change state

# Save Pipeline Definition

`save_pipeline_definition`

Workspace owner only: configure labels and allowed transitions for the six stable stages. Does not move applications or disclose updates. Invalidates pending stage reviews. Use the observed version.

Source-catalog reference. Discover the live server’s tools before calling. An annotation does not replace authorization or exact review requirements.

## Parameters

| Name | Contract |
| --- | --- |
| `job_id` Required | string |
| `expected_version` Required | integer |
| `stages` Required | array |

## Exact input schema

Expand JSON Schema

```
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "job_id": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,100}$"
    },
    "expected_version": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "stages": {
      "minItems": 6,
      "maxItems": 6,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "enum": [
              "received",
              "reviewing",
              "interview",
              "offer",
              "declined",
              "hired"
            ]
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          },
          "allowed_next": {
            "maxItems": 6,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "received",
                "reviewing",
                "interview",
                "offer",
                "declined",
                "hired"
              ]
            }
          }
        },
        "required": [
          "id",
          "label",
          "allowed_next"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "job_id",
    "expected_version",
    "stages"
  ],
  "additionalProperties": false
}
```

## Output schema

Expand output contract

```
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string",
          "pattern": "^[a-zA-Z0-9_-]{1,100}$"
        },
        "stages": {
          "minItems": 6,
          "maxItems": 6,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "enum": [
                  "received",
                  "reviewing",
                  "interview",
                  "offer",
                  "declined",
                  "hired"
                ]
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              "allowed_next": {
                "maxItems": 6,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "received",
                    "reviewing",
                    "interview",
                    "offer",
                    "declined",
                    "hired"
                  ]
                }
              }
            },
            "required": [
              "id",
              "label",
              "allowed_next"
            ],
            "additionalProperties": false
          }
        },
        "version": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "can_configure": {
          "type": "boolean"
        },
        "compatibility": {
          "type": "string"
        }
      },
      "required": [
        "job_id",
        "stages",
        "version",
        "can_configure",
        "compatibility"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}
```

## Tool annotations

```
{
  "readOnlyHint": false,
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": false
}
```

[← All hiring tools](/docs/tools?role=recruiter) · [Review and receipts](/docs/review)
