Skip to main content
POST
Create Location
The location, address, city, zip, and timezone_id fields are required. All other fields are optional.
Use the default_areas field to associate areas with the location at creation time. Area IDs can be retrieved from the Get Areas endpoint.

Authorizations

X-API-KEY
string
header
required

Body

application/json

Location details

location
string
required

Location name

Required string length: 1 - 150
address
string
required

Street address

Required string length: 1 - 150
city
string
required

City

Required string length: 1 - 75
zip
string
required

ZIP/postal code

Required string length: 1 - 10
timezone_id
integer
required

Timezone identifier

Required range: x <= 999
color
string

Hex color code

Maximum string length: 7
location_comments
string

Additional comments

Maximum string length: 65535
default_clients_id
string

Default client hashed ID

Maximum string length: 5
default_areas
string[]

Default area IDs

Response

Created

id
string

Location identifier

location
string

Location name

addy_street_number
string

Street address

addy_city
string

City

addy_zip
string

ZIP/postal code

location_comments
string | null

Additional comments

default
integer | null

Whether this is the default location (0 or 1)

Required range: 0 <= x <= 1
saved
integer | null

Whether the location is saved (0 or 1)

Required range: 0 <= x <= 1
color
string | null

Hex color code

Example:

"#DC136C"

timezone
object

Location timezone

companies_payroll_rulesets_id
string | null

Associated payroll ruleset ID

payroll_rule_display
string | null

Payroll rule display name

latitude
string | null

GPS latitude coordinate

longitude
string | null

GPS longitude coordinate

default_clients_id
string | null

Default client hashed ID

default_areas
string[]

Default area IDs