GraphQL: Jobs
Read jobs with their customer, property, schedule, assignees, estimates and invoices, and create, update, schedule, assign or delete jobs.
| Operation | Type | Description |
|---|---|---|
job(id) | Query | Get one job |
jobs(first, after, filter, sort) | Query | List jobs |
createJob(input) | Mutation | Create a job |
updateJob(id, input) | Mutation | Update a job's details |
updateJobStatus(id, input) | Mutation | Change a job's status |
updateJobSchedule(id, input) | Mutation | Reschedule a job |
updateJobAssignment(id, assigned_to) | Mutation | Assign users or teams to a job |
deleteJob(id) | Mutation | Delete a job |
Job fields
Details
| Field | Type | Description |
|---|---|---|
id | ID! | Job UID |
work_order_number | Int | Work order number |
work_order_string | String | Work order number, as text |
job_title | String! | |
job_description | String | |
job_priority | JobPriority | LOW, MEDIUM, HIGH or URGENT |
job_type | String | |
job_tags | [String] | |
category | JobCategory | { id category_name category_color } |
job_total | Float | |
custom_fields | [CustomField!]! | |
external_ids | [ExternalId!]! | { key value } |
Status
| Field | Type | Description |
|---|---|---|
current_status | JobStatus | { status_uid status_name status_type status_color } |
status_history | [JobStatusEntry!]! | Every status change: { status_uid status_name status_type remarks created_at done_by { ... } } |
status_type is one of: NEW, SCHEDULED, ON_MY_WAY, STARTED, ON_HOLD, COMPLETED, CANNOT_COMPLETE, CLOSED, CANCELED, FAILED, PAID, FOLLOW_UP, FOLLOW_UP_SAME_JOB, OTHER, REQUEST_INITIATED, REQUEST_APPROVED, REQUEST_REJECTED, INVOICE, LEAD, ESTIMATING, SOLD, LOST, PRODUCTION, INVOICING
Schedule and assignment
| Field | Type | Description |
|---|---|---|
scheduled_start_time | DateTime | |
scheduled_end_time | DateTime | |
scheduled_duration | Int | In minutes |
due_date | DateTime | |
actual_start_time | DateTime | |
actual_end_time | DateTime | |
actual_duration | Int | In minutes |
is_scheduled | Boolean | |
is_assigned | Boolean | |
assigned_to | [Assignment!]! | Assigned users and their teams. See below |
Assignment fields:
| Field | Type | Description |
|---|---|---|
user | User | The assigned user |
team | Team | The user's team |
is_primary | Boolean | true for the primary assignee |
acceptance_status | String | ACCEPTED, AWAIT_RESPONSE or REJECTED |
assigned_at | DateTime |
Related records
| Field | Type | Description |
|---|---|---|
customer | Customer | |
organization | Organization | |
property | Property | |
estimates | EstimateConnection! | Paginated, with first (default 10), after, filter: EstimateFilter and sort: EstimateSort |
invoices | InvoiceConnection! | Paginated, with first (default 10), after, filter: InvoiceFilter and sort: InvoiceSort |
customer_address | Address | Service address for this job |
customer_billing_address | Address | Billing address for this job |
products | [LineItem!]! | Products on the job |
Audit
| Field | Type | Description |
|---|---|---|
created_by | User | |
created_at | DateTime | |
updated_at | DateTime |
Get a job
job(id: ID!) returns one job, or null if the UID doesn't exist in your account.
query JobDetails($id: ID!) {
job(id: $id) {
id
work_order_number
job_title
job_description
job_priority
category { category_name }
current_status { status_name status_type }
status_history { status_name created_at done_by { first_name last_name } }
scheduled_start_time
scheduled_end_time
assigned_to {
is_primary
acceptance_status
user { first_name last_name email }
team { team_name }
}
customer {
id
customer_full_name
customer_email
customer_contact_no { mobile }
customer_organization { organization_name }
}
property { id property_name }
customer_address { street city state zip_code geo_coordinates }
products { product_uid name quantity unit_price total }
job_total
estimates { nodes { id estimate_no_string estimate_status total } }
invoices { nodes { id invoice_no_string invoice_status amount_due } }
custom_fields { label value }
created_at
updated_at
}
}{ "id": "<job_uid>" }Response (shortened):
{
"data": {
"job": {
"id": "<job_uid>",
"work_order_number": 10234,
"job_title": "Quarterly AC maintenance",
"job_priority": "MEDIUM",
"current_status": { "status_name": "Scheduled", "status_type": "SCHEDULED" },
"customer": {
"id": "<customer_uid>",
"customer_full_name": "Jane Cooper",
"customer_email": "[email protected]",
"customer_contact_no": { "mobile": "+15555550123" },
"customer_organization": null
},
"estimates": { "nodes": [] },
"invoices": { "nodes": [] }
}
}
}List jobs
jobs(first, after, filter, sort) returns a paginated list. See Core Concepts for pagination.
JobFilter
| Field | Type | Matches |
|---|---|---|
status_type_in | [String!] | Jobs whose current status type is one of these |
status_uid | String | Jobs in this exact status |
category_uid | ID | Job category |
priority_in | [JobPriority!] | LOW, MEDIUM, HIGH, URGENT |
customer_uid | ID | Jobs whose primary customer is this customer |
organization_uid | ID | Linked organization |
property_uid | ID | Linked property |
assigned_user_uid | ID | Jobs assigned to this user |
scheduled_from / scheduled_to | DateTime | Range on scheduled_start_time |
created_after / created_before | DateTime | Range on created_at |
updated_after | DateTime | Jobs changed at or after this time |
custom_field | [CustomFieldFilter!] | { label, value } exact matches |
JobSortField: CREATED_AT, UPDATED_AT, SCHEDULED_START_TIME, WORK_ORDER_NUMBER
Example: a technician's high and urgent jobs for a week, earliest first
query TechnicianWeek($user: ID!, $from: DateTime!, $to: DateTime!, $after: String) {
jobs(
first: 50
after: $after
filter: {
assigned_user_uid: $user
priority_in: [HIGH, URGENT]
scheduled_from: $from
scheduled_to: $to
}
sort: { field: SCHEDULED_START_TIME, direction: ASC }
) {
nodes {
id
work_order_number
job_title
job_priority
scheduled_start_time
scheduled_end_time
current_status { status_name }
customer { customer_full_name customer_contact_no { mobile } }
customer_address { street city }
}
page_info { has_next_page end_cursor }
}
}{
"user": "<user_uid>",
"from": "2026-11-16T00:00:00Z",
"to": "2026-11-22T23:59:59Z",
"after": null
}Response:
{
"data": {
"jobs": {
"nodes": [
{
"id": "<job_uid>",
"work_order_number": 10234,
"job_title": "AC servicing",
"job_priority": "HIGH",
"scheduled_start_time": "2026-11-17T04:30:00.000Z",
"scheduled_end_time": "2026-11-17T06:30:00.000Z",
"current_status": { "status_name": "Scheduled" },
"customer": { "customer_full_name": "Jane Cooper", "customer_contact_no": { "mobile": "+15555550123" } },
"customer_address": { "street": "1200 Market St", "city": "San Francisco" }
}
],
"page_info": { "has_next_page": true, "end_cursor": "eyJkIjoiMjAyNi0xMS0xN1QwNDozMDowMC4wMDBaIiwiaWQiOiIuLi4ifQ" }
}
}
}To get the next page, send the same query with after set to end_cursor.
Example: open jobs of a category with a custom field value
query OpenContractJobs($statuses: [String!], $category: ID, $cf: [CustomFieldFilter!], $after: String) {
jobs(
first: 25
after: $after
filter: { status_type_in: $statuses, category_uid: $category, custom_field: $cf }
) {
nodes { id work_order_number job_title category { category_name } current_status { status_name } }
page_info { has_next_page end_cursor }
}
}{
"statuses": ["NEW", "SCHEDULED", "ON_MY_WAY", "STARTED", "ON_HOLD"],
"category": "<job_category_uid>",
"cf": [{ "label": "Contract Type", "value": "AMC" }],
"after": null
}Example: jobs for a customer and property, by work order number
query JobsForRecord($customer: ID, $property: ID, $organization: ID) {
jobs(
first: 25
filter: { customer_uid: $customer, property_uid: $property, organization_uid: $organization }
sort: { field: WORK_ORDER_NUMBER, direction: DESC }
) {
nodes { id work_order_number job_title current_status { status_name } created_at }
page_info { has_next_page end_cursor }
}
}{ "customer": "<customer_uid>", "property": "<property_uid>", "organization": null }Example: jobs created in a date range
query JobsCreatedInRange($from: DateTime!, $to: DateTime!) {
jobs(first: 50, filter: { created_after: $from, created_before: $to }) {
nodes { id work_order_number job_title created_by { first_name last_name } created_at }
page_info { has_next_page end_cursor }
}
}{ "from": "2026-10-01T00:00:00Z", "to": "2026-10-31T23:59:59Z" }Create a job
createJob(input: JobCreateInput!)
JobCreateInput
| Field | Type | Required | Description |
|---|---|---|---|
job_title | String | Yes | |
category_uid | ID | Yes | Job category |
customer_uid | ID | See note | The job's customer |
organization_uid | ID | See note | The job's organization |
property_uid | ID | No | |
job_description | String | No | |
job_priority | JobPriority | No | LOW, MEDIUM, HIGH or URGENT |
job_tags | [String!] | No | |
scheduled_start_time | DateTime | No | Send with scheduled_end_time |
scheduled_end_time | DateTime | See note | |
due_date | DateTime | See note | |
assigned_to | [AssignmentInput!] | No | { user_uid team_uid is_primary }. Each entry needs both user_uid and team_uid, and only one entry can be primary |
customer_address | AddressInput | No | Service address. Defaults to the customer's address |
customer_billing_address | AddressInput | No | Defaults to the customer's billing address |
custom_fields | [CustomFieldInput!] | No | { label value } |
Note: Send either
customer_uidororganization_uid. If your account requires due dates for jobs, also sendscheduled_end_timeordue_date. Categories that aren't dispatchable always needdue_date.
mutation CreateJob($input: JobCreateInput!) {
createJob(input: $input) {
job {
id
work_order_number
job_title
category { category_name }
current_status { status_name }
customer { customer_full_name }
scheduled_start_time
scheduled_end_time
assigned_to { is_primary user { first_name } team { team_name } }
}
user_errors { field message code }
}
}{
"input": {
"job_title": "Quarterly AC maintenance",
"category_uid": "<job_category_uid>",
"customer_uid": "<customer_uid>",
"job_description": "Filter clean, gas check, coil wash",
"job_priority": "MEDIUM",
"job_tags": ["amc"],
"scheduled_start_time": "2026-11-20T16:30:00Z",
"scheduled_end_time": "2026-11-20T18:30:00Z",
"assigned_to": [
{ "user_uid": "<user_uid>", "team_uid": "<team_uid>", "is_primary": true }
],
"custom_fields": [{ "label": "Contract Type", "value": "AMC" }]
}
}If the job can't be created, job is null and user_errors explains why:
{
"data": {
"createJob": {
"job": null,
"user_errors": [
{ "field": null, "message": "No Category is found for given Category UID", "code": "HTTP_400" }
]
}
}
}Update a job
updateJob(id: ID!, input: JobUpdateInput!) changes only the fields you send. To change the status, schedule or assignees, use the mutations below.
JobUpdateInput: job_title, job_description, job_priority, job_tags, customer_address, customer_billing_address, due_date, custom_fields
mutation UpdateJob($id: ID!, $input: JobUpdateInput!) {
updateJob(id: $id, input: $input) {
job { id job_title job_priority job_tags due_date custom_fields { label value } }
user_errors { field message code }
}
}{
"id": "<job_uid>",
"input": {
"job_priority": "URGENT",
"job_tags": ["amc", "escalated"],
"due_date": "2026-11-21T12:00:00Z",
"custom_fields": [{ "label": "PO Number", "value": "PO-88213" }]
}
}If the job doesn't exist in your account:
{
"data": {
"updateJob": {
"job": null,
"user_errors": [{ "field": ["id"], "message": "Job <job_uid> not found", "code": "NOT_FOUND" }]
}
}
}Change a job's status
updateJobStatus(id: ID!, input: JobStatusInput!)
| Field | Type | Required | Description |
|---|---|---|---|
status_uid | String | Yes | A status from the job's category |
remarks | String | No |
Note: Statuses that require a customer signature or face authentication can't be set through the API.
mutation UpdateJobStatus($id: ID!, $input: JobStatusInput!) {
updateJobStatus(id: $id, input: $input) {
job {
id
current_status { status_name status_type }
status_history { status_name remarks created_at done_by { first_name } }
}
user_errors { field message code }
}
}{
"id": "<job_uid>",
"input": { "status_uid": "<status_uid>", "remarks": "Technician on the way" }
}Possible user_errors messages include Status UID Sent is Invalid and Job status update is not allowed since it is awaiting approval.
Reschedule a job
updateJobSchedule(id: ID!, input: JobScheduleInput!)
Both scheduled_start_time and scheduled_end_time are required, and the start can't be after the end.
mutation UpdateJobSchedule($id: ID!, $input: JobScheduleInput!) {
updateJobSchedule(id: $id, input: $input) {
job { id scheduled_start_time scheduled_end_time scheduled_duration }
user_errors { field message code }
}
}{
"id": "<job_uid>",
"input": {
"scheduled_start_time": "2026-11-21T17:00:00Z",
"scheduled_end_time": "2026-11-21T19:00:00Z"
}
}Assign a job
updateJobAssignment(id: ID!, assigned_to: [AssignmentInput!]!)
- An entry with
user_uidassigns that user. It also needs theteam_uidof a team the user belongs to. - An entry with only
team_uidassigns the whole team. - Only one entry can have
is_primary: true.
Note: The users and teams you send are added to the job's existing assignees. Existing assignees are not removed.
mutation UpdateJobAssignment($id: ID!, $assignees: [AssignmentInput!]!) {
updateJobAssignment(id: $id, assigned_to: $assignees) {
job { id assigned_to { is_primary acceptance_status user { first_name last_name } team { team_name } } }
user_errors { field message code }
}
}{
"id": "<job_uid>",
"assignees": [
{ "user_uid": "<user_uid>", "team_uid": "<team_uid>", "is_primary": true },
{ "user_uid": "<second_user_uid>", "team_uid": "<team_uid>", "is_primary": false }
]
}Delete a job
deleteJob(id: ID!)
Only Admin and Team Leader users can delete jobs.
mutation DeleteJob($id: ID!) {
deleteJob(id: $id) {
deleted_id
user_errors { field message code }
}
}{ "id": "<job_uid>" }{ "data": { "deleteJob": { "deleted_id": "<job_uid>", "user_errors": [] } } }Updated about 21 hours ago
