Skip to content
OpenTrain AIOpenTrain AIOpenTrain AIDocs

Ask OpenTrain

Answers from the documentation, with sources.

What would you like to do with OpenTrain?

AI answers can be mistaken. Check the linked sources. Don’t include private account information.

Open app

DEVELOPER DOCUMENTATION

Close Job

Close an open job to new proposals.

POST/api/public/v1/jobs/{id}/close

Closes a job — it leaves the public marketplace and stops accepting proposals. Existing contracts on the job are unaffected (end those separately via POST /contracts/{id}/end). Idempotent: closing an already-closed job returns 200 with alreadyClosed: true.

Requirements: jobs:write scope + the public_api_job_publishing feature. The job must be yours.

idstringpathrequired

The job ID.

No body.

okboolean

true on success.

jobIdstring

The job ID.

statusstring

ARCHIVED.

alreadyClosedboolean

true when the job was already closed (no-op).

StatuscodeMeaning
401UNAUTHORIZEDMissing or invalid token
403FORBIDDENMissing jobs:write scope or feature disabled
404NOT_FOUNDNo such job, or not yours