Sync jobs

Run sync job next

Changed on

Admin only. Moves the given jobs to the front of the queue: prio is set above the current maximum and last_run is cleared, so the runner picks them next. Jobs that are currently running are rejected with imapsync_job_running (one message per job), the others are moved. The jobs are locked while they are moved, so a job the runner claims at the same time is reported as running instead of being counted.

post/api/v1/edit/syncjob/run_next

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Request body

itemsstring[]

list of sync job ids

attrobject

unused, send an empty object

Example request

{
  "items": [
    "1"
  ],
  "attr": {}
}

Response

OK

type'success' | 'danger' | 'error'

Changes