Skip to main content

Update the status of a job

PATCH 

/api/v4/jobs/:job_id/status

Update the status of a job. Valid status updates:

  • 'in_progress' -> 'pending'
  • 'in_progress' | 'pending' -> 'cancel_requested'
  • 'cancel_requested' -> 'canceled'

Add force to the body of the PATCH request to bypass the given rules, the only statuses you can go to are: pending, cancel_requested and canceled. This can have unexpected consequences and should be used with caution.

Permissions

Must have permission to manage the job's type:

  • manage_data_retention_jobdata_retention
  • manage_compliance_export_jobmessage_export
  • manage_elasticsearch_post_indexing_jobelasticsearch_post_indexing
  • manage_elasticsearch_post_aggregation_jobelasticsearch_post_aggregation
  • manage_ldap_sync_jobldap_sync
  • manage_jobsmigrations, plugins, product_notices, expiry_notify, active_users, import_process, import_delete, export_process, export_delete, cloud, extract_content
  • manage_systemaccess_control_sync

Request

Responses

Status successfully set.