# st.setJobStage

Move a job in the account’s LinkedIn job tracker to another stage.

> The API Reference is also the SDK and CLI reference. Consecutive code fences marked `tab=HTTP`, `tab=Node`, `tab=Python` and `tab=CLI` are the same call on each surface (a fence marked `tab=HTTP,CLI` is the same text for both), and a block between `:::surface <names>` and `:::` applies only to the surfaces it names. Identifiers in the text are written as in Node and in HTTP JSON (camelCase); the Python SDK spells methods, parameters and result attributes in snake_case (`sendMessage` → `send_message`, `reconnectionLink` → `reconnection_link`), while names inside HTTP JSON stay camelCase.

Move a job already in the account’s [job tracker](/docs/tracking-jobs) to another stage.

:::surface node,python
In the SDK this is the `setJobStage` method. It takes the parameters below except `label`, which exists only in workflow JSON. It returns no `data`: a failed action comes back in `errors`, with one of the error types below.
:::

:::surface cli
The command is `linkedin jobs stage`. Its argument and flags are listed below.
:::

## Constraints

> ⏺️ **Root Start:** allowed.

> ⬆️ **Parent Actions:** N/A.

> ⬇️ **Child Actions:** N/A.

## Parameters

```json tab=HTTP
{
  "actionType": "st.setJobStage",
  "label": "setJobStage1",
  "jobUrl": "https://www.linkedin.com/jobs/view/4450053454/",
  "stage": "applied",
  "currentStage": "saved"
}
```

```typescript tab=Node
const workflow = await linkedapi.setJobStage.execute({
  jobUrl: "https://www.linkedin.com/jobs/view/4450053454/",
  stage: "applied",
  currentStage: "saved"
});

const { errors } = await linkedapi.setJobStage.result(workflow.workflowId);
```

```python tab=Python
from linkedapi import SetJobStageParams

workflow = linkedapi.set_job_stage.execute(
    SetJobStageParams(job_url="https://www.linkedin.com/jobs/view/4450053454/", stage="applied", current_stage="saved")
)

result = linkedapi.set_job_stage.result(workflow.workflow_id)
```

```bash tab=CLI
linkedin jobs stage https://www.linkedin.com/jobs/view/4450053454/ --stage applied --current-stage saved --json
```

In AI assistants, the MCP tool is `set_job_stage`. The n8n action is **Set job stage**; the Make module is **Set a job stage**.

| Parameter | Description |
| --- | --- |
| `label` | Optional label included in workflow completion. |
| `jobUrl` | Required. LinkedIn URL of the job, in the `linkedin.com/jobs/view/<id>` form. |
| `stage` | Required. The stage to move the job to: `saved`, `inProgress`, `applied` or `interview`. |
| `currentStage` | Optional. The stage the job is in now: `saved`, `draft`, `clickedApply`, `applied`, `interview`, `archived`. That stage is searched first, so a correct value finds the job without searching the others, which is faster and avoids `trackerTooLarge` from a large stage the job is not in. Omit it and the stages are searched in turn until the job is found. |

:::surface cli
| Arg | Required | Description |
| --- | --- | --- |
| `url` | yes | LinkedIn job URL |

| Flag | Description |
| --- | --- |
| `--stage` | Required. `saved`, `inProgress`, `applied` or `interview`. |
| `--current-stage` | Optional. The stage the job is in now. |
:::

## Stages

A job sits in exactly one stage. `stage` accepts the four LinkedIn offers as a destination:

| `stage` | Meaning |
| --- | --- |
| `saved` | Saved, not started. |
| `inProgress` | Started but not submitted. A job moved here is read back as `clickedApply`; a job already in `draft` or `clickedApply` counts as being here. |
| `applied` | Applied. |
| `interview` | In interview. |

`archived` is not a destination here: use [`st.archiveJob`](/docs/action-st-archive-job) and [`st.unarchiveJob`](/docs/action-st-unarchive-job).

- **Safe to repeat.** A job already in the requested stage succeeds without changing anything.
- **A stage change is not an application.** Setting `applied` records a stage in the account’s own tracker and submits nothing to the employer. LinkedIn stamps `markedAppliedDate` when the job reaches that part of the funnel, however it got there.
- **Only a tracked job.** A job that is not in the tracker returns `jobNotTracked`: save it first with [`st.saveJob`](/docs/action-st-save-job).
- **An archived job** returns `jobArchived`: unarchive it first with [`st.unarchiveJob`](/docs/action-st-unarchive-job), then set the stage. To move an archived job to an earlier stage, unarchive it to `applied` and move it from there with this action.
- **LinkedIn decides which stages it offers for each job.** The three `stage*` errors below are the three ways that shows up. After `stageNotAvailable`, read the job's current stage with [`st.retrieveTrackedJobs`](/docs/action-st-retrieve-tracked-jobs) and ask for one LinkedIn offers. After `stageManagedByLinkedIn`, the stage can still be read with [`st.retrieveTrackedJobs`](/docs/action-st-retrieve-tracked-jobs).
- **After `stageNotHonoured`, the job has moved.** Do not retry: read it back with [`st.retrieveTrackedJobs`](/docs/action-st-retrieve-tracked-jobs) to see which stage it is in now.

## Result options

```json
{
  "actionType": "st.setJobStage",
  "label": "setJobStage1",
  "success": true
}
```

A successful call has no `data`. `label` is included only if specified in the action parameters.

## Error result

```json
{
  "actionType": "st.setJobStage",
  "label": "setJobStage1",
  "success": false,
  "error": {
    "type": "jobNotTracked",
    "message": "..."
  }
}
```

Possible `error.type` values:

- `jobNotTracked` — The job is not in the job tracker.
- `jobNotFound` — The job could not be opened or no longer exists.
- `jobArchived` — The stage cannot be set while the job is archived.
- `stageNotAvailable` — This stage is not available for this job.
- `stageManagedByLinkedIn` — This job's stage cannot be changed.
- `stageNotHonoured` — The job was moved, but to a stage other than the one requested.
- `trackerTooLarge` — The job tracker holds too many jobs in this stage to locate this job.
- `unexpectedError` — The change could not be completed.
