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

# Link Locations

# 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": {
    "/alerts/{alertId}/locations/link": {
      "post": {
        "summary": "Link Locations",
        "description": "",
        "operationId": "post-alerts-id-locations-link",
        "parameters": [
          {
            "name": "alertId",
            "in": "path",
            "description": "ID of a pre-defined alert",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "Accept-Encoding",
            "in": "header",
            "schema": {
              "type": "string",
              "default": "gzip"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "locations"
                ],
                "properties": {
                  "locations": {
                    "type": "array",
                    "description": "The list of Locations by ID to be linked to this Alert.",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "204",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```