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_job—data_retentioncreate_compliance_export_job—message_exportcreate_elasticsearch_post_indexing_job—elasticsearch_post_indexingcreate_elasticsearch_post_aggregation_job—elasticsearch_post_aggregationcreate_ldap_sync_job—ldap_syncmanage_jobs—migrations,plugins,product_notices,expiry_notify,active_users,import_process,import_delete,export_process,export_delete,cloud,extract_contentaccess_control_sync—manage_system, ormanage_channel_access_rules/manage_team_access_rulesfor scoped jobs as when creating
Request
Responses
- 200
- 400
- 401
- 403
- 404
Job canceled successfully
Invalid or missing parameters in URL or request body
No access token provided
Do not have appropriate permissions
Resource not found