Skip to main content
POST
Create a location

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required

The project's friendly ID (e.g. prj_aBcD1234eFgH5678).

Body

application/json
location
object
required

Response

The created location.

A location as attached to a project.

id
string

The location's friendly ID (e.g. loc_aBcD1234eFgH5678).

Example:

"loc_aBcD1234eFgH5678"

lat
string | null

Latitude in decimal degrees, as a string.

Example:

"45.5"

long
string | null

Longitude in decimal degrees, as a string.

Example:

"-122.5"

name
string

The location's name, or (lat, long) when it has none.

is_primary
boolean

Whether this is the project's primary location.

created_at
string<date-time>
updated_at
string<date-time>
address
object

Present only when the location has an address.