post https://{subdomain}.pinpointhq.com/api/v1/locations
Request format
In order to create an location you must send a JSON:API spec JSON object representing a location.
Required attributes
As a bare minimum, name
, country_code
must be supplied. Country code should be one of the ISO 33166 Alpha 2 values .
Optional attributes
Other attributes that can be set are street_address
, city
, province
, and postal_code
.
Examples
{
"data": {
"type": "locations",
"attributes": {
"name": "Jersey Office",
"country_code": "JE",
}
}
}
{
"data": {
"type": "locations",
"attributes": {
"name": "Jersey Office",
"city": "St Helier",
"country_code": "JE",
"province": "Jersey",
"street_address": "Union Street",
"postal_code": "JE1 2PP"
}
}
}