LianaCMS REST API
string · pattern:
The status of a background job started by a batch request.
Get the status of a batch job
GET
https://example.lianacms.com/api/v3
/job_queue/{job-queue-id}
Returns the state of a job started by a batch request (POST or PATCH on /batch/...).
- A job that has completed successfully gives 303 See Other, with a
Locationheader andresults.hrefpointing to the batch result (/batch/{users|products|contacts|news|events}/{job-queue-id}). - A job that failed as a whole gives 200 with state
failedand the reason inmessage. Per-element errors are only in the batch result. - A job with a status but not yet completed gives 200 with state
processing. Batch jobs write their status only when they finish, so a running batch job is not found yet (404). - An id that is not 1 to 64 letters, digits,
_or-returns 400; an unknown job, or one whose status is older than 24 hours, returns 404. - Any authenticated user can read the status of any job whose id they know. No module or permission check is made.
path Parameters
job-queue-id^[A-Za-z0-9_-]{1,64}… · requiredId of the job, as given in the href of the batch response: 1 to 64 letters, digits, _ or -. Any other id returns 400. Jobs whose status is older than 24 hours are no longer found (404).
Get the status of a batch job › Responses
OK