Locations

Create a Location

post/v1/locations/

Request

Headers

Authorizationstring

User access token

Content-Type'application/json'

Request body

namestring required

Name of the location

Example request

{
  "location": {
    "type": "Feature",
    "geometry": {
      "type": "Polygon",
      "coordinates": [
        [
          [
            -96.7980123,
            32.7760432
          ],
          [
            -96.7960123,
            32.7760432
          ],
          [
            -96.7960123,
            32.7750432
          ],
          [
            -96.7980123,
            32.7750432
          ],
          [
            -96.7980123,
            32.7760432
          ]
        ]
      ]
    }
  },
  "name": "Home"
}

Response

Returns the created location

namestring required

Name of the location

idstring required

Unique identifier of the location

Example response

{
  "location": {
    "type": "Feature",
    "geometry": {
      "type": "Polygon",
      "coordinates": [
        [
          [
            -96.7980123,
            32.7760432
          ],
          [
            -96.7960123,
            32.7760432
          ],
          [
            -96.7960123,
            32.7750432
          ],
          [
            -96.7980123,
            32.7750432
          ],
          [
            -96.7980123,
            32.7760432
          ]
        ]
      ]
    }
  },
  "name": "Home",
  "id": "65f8a2b4c9d7e1234567890e"
}

Changes

No recorded changes to this operation across all 1 revision of this API.