Skip to main content

Cancel a job.

POST 

/api/v4/jobs/:job_id/cancel

Cancel a job. Minimum server version: 4.1

Permissions

Same as creating that job type (cancel uses the create permission check):

  • create_data_retention_jobdata_retention
  • create_compliance_export_jobmessage_export
  • create_elasticsearch_post_indexing_jobelasticsearch_post_indexing
  • create_elasticsearch_post_aggregation_jobelasticsearch_post_aggregation
  • create_ldap_sync_jobldap_sync
  • manage_jobsmigrations, plugins, product_notices, expiry_notify, active_users, import_process, import_delete, export_process, export_delete, cloud, extract_content
  • access_control_syncmanage_system, or manage_channel_access_rules / manage_team_access_rules for scoped jobs as when creating

Request

Responses

Job canceled successfully