Create a new job.
POST/api/v4/jobs
Create a new job. Minimum server version: 4.1
Permissions
Must have permission to create the requested job type. Required permission depends on type:
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_ruleson the channel given in jobdata, ormanage_team_access_ruleson the team in jobdata(see server logic for scoped sync jobs)access_control_team_sync—manage_system, ormanage_team_access_ruleson the team whose ID is the job'spolicy_idmanage_system—health_check
Other job types can't be created through the API.
Creating a health_check job runs the Health Dashboard check now. If a run is already pending or in progress, that run is returned instead.
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 501
Job creation successful
Invalid or missing parameters in URL or request body
No access token provided
Do not have appropriate permissions
Request conflicts with current state of the resource
Feature is disabled