st.archiveJob

Move a job in the account’s job tracker to the archived stage. The job stays in the tracker and keeps its applied stamp.

Constraints

⏺️ Root Start: allowed.

⬆️ Parent Actions: N/A.

⬇️ Child Actions: N/A.

Parameters

{
  "actionType": "st.archiveJob",
  "label": "archiveJob1",
  "jobUrl": "https://www.linkedin.com/jobs/view/4450053454/",
  "currentStage": "saved"
}

In AI assistants, the MCP tool is archive_job. The n8n action is Archive job; the Make module is Archive a job.

ParameterDescription
labelOptional label included in workflow completion.
jobUrlRequired. LinkedIn URL of the job, in the linkedin.com/jobs/view/<id> form.
currentStageOptional. 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.

Archiving behaviour

  • Safe to repeat. A job already archived succeeds without changing anything.
  • Only a tracked job. A job that is not in the tracker returns jobNotTracked: save it first with st.saveJob.
  • Nothing is lost. The job keeps its markedAppliedDate, and st.unarchiveJob takes it out of archived again.
  • Archived jobs are read separately. Pass stage: "archived" to st.retrieveTrackedJobs.

Result options

json
{
  "actionType": "st.archiveJob",
  "label": "archiveJob1",
  "success": true
}

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

Error result

json
{
  "actionType": "st.archiveJob",
  "label": "archiveJob1",
  "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.
  • trackerTooLarge — The job tracker holds too many jobs in this stage to locate this job.
  • unexpectedError — The change could not be completed.