Actions227
- Jobs Actions
- Search jobs or stages with complex filters
- Get job by ID or job number
- Cancel a job
- Create a new job
- Create a new job from template
- Set job finance marks
- Update job status
- Update a job
- Dispatch a job
- List job stages
- Get job stage
- List stage items
- Create stage items
- Get stage item
- Update stage item
- Delete stage item
- Items Actions
- Pending Items Actions
- Stages Pending Items Actions
- Stages Actions
- Stages Resources Actions
- Stages Appointments Actions
- Settings Reference Data Actions
- Settings Templates Actions
- Settings Items Actions
- Settings Custom Fields Actions
- Attachments Actions
- Jobs Activities Actions
- List activities (Jobs)
- List email or SMS templates for this record (Jobs)
- List merge fields for this record's templates (Jobs)
- Get activity by ID (Jobs)
- Delete activity (Jobs)
- Create note activity (Jobs)
- Create email activity (Jobs)
- Create SMS activity (Jobs)
- Preview an email activity (Jobs)
- Preview an SMS activity (Jobs)
- Create phone activity (Jobs)
- Create integration activity (Jobs)
- Create thread activity (Jobs)
- Stages Activities Actions
- List activities (Stages)
- List email or SMS templates for this record (Stages)
- List merge fields for this record's templates (Stages)
- Get activity by ID (Stages)
- Delete activity (Stages)
- Create note activity (Stages)
- Create email activity (Stages)
- Create SMS activity (Stages)
- Preview an email activity (Stages)
- Preview an SMS activity (Stages)
- Create phone activity (Stages)
- Create integration activity (Stages)
- Create thread activity (Stages)
- Jobs Files Actions
- Stages Files Actions
- Jobs Tasks Actions
- Stages Tasks Actions
- Jobs Contacts Actions
- Crm Customers Actions
- Crm Employees Actions
- Crm Contractors Actions
- Crm Suppliers Actions
- Crm Companies Actions
- Crm External Users Actions
- Crm Contacts Actions
- Crm Invites Actions
- Crm Sites Actions
- Webhooks V2 Actions
- List webhook-supported entity types and their available events
- List the webhook events available for a given entity type
- List the filter fields available when subscribing to a given entity type
- List webhook subscriptions
- Create a webhook subscription
- Get a webhook subscription by ID
- Update a webhook subscription
- Delete a webhook subscription
- Regenerate the signing secret for a webhook subscription
- Send a test event to a webhook subscription
- List recent delivery attempts for a webhook subscription
- Data Export Actions
- Agents Actions
- Flags Actions
- Service Plans Actions
- Service Plans Lines Actions
- Service Plans Lines Tasks Actions
- Service Plans Lines Tasks Subtasks Actions
- Sales Leads Actions
- Sales Opportunities Actions
- Mcp Actions
Service Plans → Create a Service Plan
AI-generatedSummary
Creates a new Service Plan contract header by sending a POST request with required fields such as integrationId, name, customerId, siteId, and dateStart. Optional fields include description, dateEnd, workingDays, blackoutRanges, and jobDefaults. Lines and Tasks are managed through their respective nested endpoints.
Inputs
- integrationId (required) — integration ID
- name (required) — Display name
- customerId (required) — Customer ID — use /crm/customers to look up
- siteId (required) — Site ID — use /crm/sites to look up
- dateStart (required) —
- description — Detailed description
- dateEnd —
- workingDays — Array of working days (Mon, Tue, Wed, Thu, Fri, Sat, Sun)
- blackoutRanges —
- jobDefaults —
- requestOptions — Configuration for batching, SSL, proxy, and timeout
Output shape
a single record (the created service plan)
The API response is returned directly as the item output.
Examples
Example 1: Create a new 30-day service plan for a customer on a specific site, active from January 1st to January 30th, with Monday through Friday as working days.
Name: 'Monthly Subscription', customerId: '12345', siteId: '67890', dateStart: '2024-01-01', dateEnd: '2024-01-30', workingDays: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri']
Example 2: Create a short-term service plan with a custom batch size to avoid hitting API rate limits.
Name: 'Urgent Fix', customerId: '55555', siteId: '99999', dateStart: '2024-12-25', workingDays: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], requestOptions: { batching: { batchSize: 5, batchInterval: 2000 } }