---
updatedAt: 2025-06-04T20:42:25.000Z
agentTools:
  projectIndex: https://docs.tomorrow.io/llms.txt
---

# Update a Location

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "tomorrowio-api",
    "version": "4.0.1"
  },
  "servers": [
    {
      "url": "https://api.tomorrow.io/v4"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "apikey"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/locations/{locationId}": {
      "put": {
        "summary": "Update a Location",
        "description": "",
        "operationId": "put-location-id",
        "parameters": [
          {
            "name": "locationId",
            "in": "path",
            "description": "ID of a pre-defined location",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Accept-Encoding",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "gzip, deflate"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the location. Name or direction parameters must be specified"
                  },
                  "direction": {
                    "type": "number",
                    "description": "The location direction in degrees clockwise from due north",
                    "format": "float"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"location\": {\n            \"id\": \"5e82fb82b66492001218aaf3\",\n            \"name\": \"Tomorrow.io Headquarters\",\n            \"geometry\": {\n                \"type\": \"Point\",\n                \"coordinates\": [42.355440, -71.059910]\n            }\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "location": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "example": "5e82fb82b66492001218aaf3"
                            },
                            "name": {
                              "type": "string",
                              "example": "Tomorrow.io Headquarters"
                            },
                            "geometry": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "example": "Point"
                                },
                                "coordinates": {
                                  "type": "array",
                                  "items": {
                                    "type": "number",
                                    "example": 42.35544,
                                    "default": 0
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```