# updateOrganizationAreasOfOperation

Replace the organization's markets: `{version: 1, regions, polygons, updatedAt}`, a region `{kind: "county"|"city"|"zip", fips|cityId|zip, label}` (searchCounties/searchCities). Send back all you keep of getOrganizationAreasOfOperation, polygons too. An added market can buy phone numbers once the number plan buys: confirm first. Admins only.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "updateOrganizationAreasOfOperation", "variables": {...} }`
- Scope: `ADMIN`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `areasOfOperation`: `JSON!` (required)

## Response (data, an example)

```json
{
  "organizationMutation": {
    "updateOrganizationAreasOfOperation": {
      "id": "<ID>",
      "areasOfOperation": "…"
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "updateOrganizationAreasOfOperation",
    "variables": {
      "areasOfOperation": "<JSON>"
    }
  }'
```
