Meta

Get a queued job

Returns the status and output of a Trybe-internal background job that was previously kicked off via a queue-issuing endpoint (e.g. queueExport, queueImportVouchers, the practitioner-occupancy queue endpoints, voucher-code bulk creation).

Poll this endpoint to watch a job progress from pendingin_progresscomplete/failed. Once status is complete, output contains the per-job result envelope (a list of created records, a signed download URL, error rows, etc., depending on the job).

Requires the view ability on the QueuedJob — typically granted to the user who originally enqueued the job.

get/shop/queued-jobs/{queuedJobId}

Response

The job was successfully queued

Example response

{
  "data": {
    "created_at": "2023-11-07T00:00:00+00:00",
    "updated_at": "2023-11-07T01:00:00+00:00"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.