Skip to main content
POST
Create jobs

Authorizations

API-Key
string
header
required

Your API key, from More → API & Integrations in the dashboard, or from ht signup / ht auth login.

Body

application/json

Job fields for create and update. Unknown fields are refused with 400. On update only the fields sent change.

id
string

Job id. Only used by PATCH /jobs (single form); ignored elsewhere.

title
string
externalId
string

Your own id. On POST /jobs an existing job of the company with the same externalId is updated instead of creating a new one.

address
string

Geocoded in the background when no location is given.

location
object
placeId
string

Link the job to a place. A job without location takes the place's location, a job without title the place's name.

assigneeId
string

Member id to assign. An empty string unassigns. Do not send together with assigneeUsername.

assigneeUsername
string

Member username to assign. An unknown username is ignored. Do not send together with assigneeId.

date
string<date> | null

YYYY-MM-DD. An empty string removes the date; null leaves it as it is.

timeWindow
object | null
onSiteDurationSeconds

Non-negative integer (or digits as a string).

Required range: x >= 0
priority

0 to 10 (or digits as a string).

Required range: 0 <= x <= 10
notes
string
contact
object | null
customFields
object

Replaces the job's whole set of custom fields: names left out are removed. Values are stored as text.

Response

Created (or updated by externalId).

data
object
required
error
null
required
meta
object
required