Publish a job
POST/v1/jobs/:id/publish
Launches a draft job now or at launch_at. If your account requires job approval, the job is sent for approval first.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
Job published, scheduled, or submitted for approval
Missing or invalid bearer token.
The public API is not enabled for this account (err_feature_not_enabled), the acting user is not allowed to edit this job, or the API key lacks the jobs:write scope (err_insufficient_scope).
Job not found (err_job_not_found), or the job has no post yet (err_job_post_not_found).
The job can't be published in its current status (err_invalid_state_transition).
Validation failed. Error codes:
err_on_behalf_of_not_allowed— a personal access token passed another user's IDerr_user_not_found—on_behalf_ofis not an active user in the accounterr_on_behalf_of_forbidden— that user is not allowed to perform this action