Create an inspection

Query Params
include
array of strings

The top-level result fields to include in the response.

If not set, all fields are included by default. If set, id, created_at, and updated_at are always included as a baseline.

include
Body Params

The request body for POST /inspections, which creates an inspection for team_id. Select inspection_type_id when the team has multiple inspection types. Supply customer_name alone, or customer_first_name and customer_last_name. Custom field values correspond to the selected inspection type's ordered fields, and required fields must have values. Address requirements depend on the inspection type. Scheduling requires both scheduled_for and scheduled_tz: the date must be in the future, and the time zone must be a valid IANA name.

string

The user to assign the inspection to, as either a user ID or an email address.

boolean

Whether the customer info was edited relative to the copied inspection.

number

The ID of the inspection this one was copied from, if applicable.

boolean

Whether the list was edited relative to the copied inspection.

custom_field_values
array of strings

The values for the custom fields defined in the inspection type. The order of the values must match the order of the custom fields defined in the inspection type. If a value is optional, you can provide null for it.

custom_field_values
string

The address where the inspection will be performed.

string

The latitude of the address where the inspection will be performed.

string

The longitude of the address where the inspection will be performed.

string
length ≤ 255

The email address of the customer completing the inspection. Required if send_methods.email is true.

string
length ≤ 255

The first name of the customer completing the inspection.

string
length ≤ 255

The last name of the customer completing the inspection.

string
length ≤ 255

The full name of the customer who will be completing the inspection. If specified, then customer_first_name and customer_last_name will not be provided.

string
length ≤ 2

The country code for the customer's phone number.

string

The mobile number of the customer completing the inspection. Required if send_methods.text is true.

boolean
Defaults to false

Whether the request includes list. It must be true when including items in list.

string | null

The free-form inspection-ready criteria text. At most 10 KB.

number

The ID of the inspection type this inspection is for.

list
object

The list items that prompt the user for specific photos, videos or questions during the inspection.

string
length ≤ 255

The message supplement (custom note) to attach to the request text or email. At most 255 characters.

date-time

When the inspection is scheduled to be sent to the customer, in UTC.

string

The IANA time zone name for the inspection's scheduled time. Used only for display purposes, as scheduled_for is in UTC.

send_methods
object

The methods used to send the inspection request to the customer completing the inspection.

number
required

The ID of the team this inspection is for.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json