Create a job from a template
Changed onCreates a new job by cloning an existing job template. All template entities (tasks, materials, checklists, quotes, custom fields) are cloned to the new job.
Field Overrides
Only the following fields can be overridden when creating a job from a template:
- job_description - Job description
- company_uuid - UUID of the company/client
- company_name - Name of the company/client (will lookup existing or create new)
- job_address - Street address for the job
Note: You cannot specify both company_uuid and company_name. If company_name is provided, the system will first search for an existing company with that name. If found, it will use that company's UUID. If not found, a new company will be created.
Any other fields in the request body will be ignored.
OAuth Scope
This endpoint requires the following OAuth scope create_jobs.
Request
- Base URLhttps://api.servicem8.com/api_1.0
- URLhttps://api.servicem8.com/api_1.0/jobtemplate/{uuid}/job.json
- Auth
- API key in header X-Api-Key
- or OAuth 2Authorization code: https://api.servicem8.com/oauth/authorizeToken URL: https://api.servicem8.com/oauth/access_token scopes: create_jobs
Path parameters
UUID of the job template to clone from
Request body
Response
Job created successfully
Changes
- breaking
request body became required
- breaking
- info
the security scope
create_jobswas added to the endpoint's security schemeoauth2 - info
the security scope
manage_jobswas removed from the endpoint's security schemeoauth2
- info