Create Location

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"
    }
  }
}
Language
Authorization
Header
URL
Click Try It! to start a request and see the response here!