Common request records
These records are reused across different API calls.
Address
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
String |
String |
No |
No |
Full address string. Limited to 5000 characters |
|
Object |
No |
No |
Full address as one string |
|
|
String |
String |
No |
Yes |
Apartment. Limited to 50 characters |
|
String |
String |
No |
Yes |
Floor. Limited to 50 characters |
|
String |
String |
No |
Yes |
Entrance. Limited to 50 characters |
|
String |
String |
Yes |
Yes |
Optional string description. It usually contains some information helping locating the site. Limited to 500 characters |
Existing client
Reference a client by uuid
or external_id
. These fields are mutually exclusive.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Client identifier |
|
String |
String |
No |
No |
Client identifier in an external system |
New client
Client is either an individual person or an organization.
Organization
All fields are optional except for organization_name
and organization
which must be true
.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
Boolean |
Boolean |
Yes |
No |
Must be |
|
String |
String |
Yes |
No |
Organization name. Limited to 5000 characters |
|
String |
String |
No |
No |
|
|
Object |
No |
No |
Address fields |
|
|
[Contact] |
Array |
No |
No |
List of contacts |
Individuals
All fields are optional except for organization
which must be false
. Additionally, at least one of first_name
, last_name
, and middle_name
must not be empty.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
Boolean |
Boolean |
Yes |
No |
Must be |
|
String |
String |
No |
Yes |
First name. Up to 50 characters |
|
String |
String |
No |
Yes |
Last name. Up to 50 characters |
|
String |
String |
No |
Yes |
Middle name. Up to 50 characters |
|
String |
String |
No |
No |
|
|
Object |
No |
No |
Address fields |
|
|
[Contact] |
Array |
No |
No |
List of contacts |
Existing site
Reference a site by uuid
or external_id
. These fields are mutually exclusive.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Site identifier |
|
String |
String |
No |
No |
Site identifier in an external system |
New site
All fields are optional except for name
.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
String |
String |
Yes |
No |
Site name. Up to 300 characters |
|
String |
String |
No |
Yes |
|
|
String |
String |
No |
Yes |
Text describing the site. Up to 1000 characters |
|
Object |
No |
Yes |
Reference to a client |
|
|
Object |
No |
No |
Address fields |
|
|
[Contact] |
Array |
No |
No |
List of contacts |
Assignee
Job assignee is either a single worker or a team. worker
and team
keys are mutually exclusive.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
Record |
Object |
No |
No |
|
|
UUID |
String |
No |
No |
Worker identifier |
|
String |
No |
No |
Emails are unique, it is possible to use them for referencing workers |
|
|
Record |
Object |
No |
No |
|
|
UUID |
String |
No |
No |
Team identifier |
|
String |
String |
No |
No |
Team names are unique |
Multiple assignee
Job assignee. A job can have one or several assignees. One assignee from the list must have "edit" access.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Worker identifier |
|
String |
String |
No |
No |
Either |
Job template
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Template identifier |
|
String |
String |
No |
No |
Template name |
Job type
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Job type identifier |
|
String |
String |
No |
No |
Job type name |
Contact
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
String |
String |
No |
Yes |
Contact name. Limited to 50 characters |
|
String |
String |
No |
Yes |
Contact string. Limited to 50 characters. |
|
String |
String |
Yes |
No |
Only |
Resolution
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Resolution identifier |
|
String |
String |
No |
No |
Resolution name |
Territory
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Territory identifier |
|
String |
String |
No |
No |
Territory name |
Skill
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Skill identifier |
|
String |
String |
No |
No |
Skill name |
Unit
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Unit identifier |
|
String |
String |
No |
No |
Unit name |
Category
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Category identifier |
|
String |
String |
No |
No |
Category name |
Dictionary value
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Dictionary item identifier |
|
String |
String |
No |
No |
Name of dictionary item |
Custom field
To set a value of a custom field, pass either its uuid
or name
. You can get these values from the job template response.
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
UUID |
String |
No |
No |
Field identifier |
|
String |
String |
No |
No |
Field name |
|
Mixed |
Mixed |
Yes |
No |
|
data_type |
JSON type of value |
Can be null |
Description |
---|---|---|---|
|
String |
Yes |
|
|
Yes |
Dictionary value referenced by |
|
|
Yes |
File value
Field | Type | JSON type | Required | Can be null |
Description |
---|---|---|---|---|---|
|
String |
String |
Yes |
No |
File name |
|
String |
String |
Yes |
No |
Base64-encoded file content |