v1

latestOpenAPI 3.1.02026-07-24200331.1 KB

Update a Location

put/locations/{locationId}

Path parameters

locationIdstring required

ID of a pre-defined location

Headers

Accept-Encodingstring required

Request body

namestring

The name of the location. Name or direction parameters must be specified

directionnumber float

The location direction in degrees clockwise from due north

Response

200

Example response

{
  "data": {
    "location": {
      "id": "5e82fb82b66492001218aaf3",
      "name": "Tomorrow.io Headquarters",
      "geometry": {
        "type": "Point",
        "coordinates": [
          42.35544
        ]
      }
    }
  }
}