---
title: "Update a zone smart data"
method: POST
path: "/v2/zones/smart/data"
tags: ["Zones"]
---

# Update a zone smart data

`POST /v2/zones/smart/data`

## Request

- Base URL: `https://developers.brandtrack.ai/api.brandtrack.fm`
- URL: `https://developers.brandtrack.ai/api.brandtrack.fm/v2/zones/smart/data`
- Auth: API key in header `x-customer-api-key`
- TypeScript: <https://skmtc.dev/brandtrack/apis/brandtrack-api-documentation/docs/v2/zones/smart/data/post.ts> (a function with typed inputs; its response is checked against the schema)

It will update the zones provided in the request. It might involve 1 up to 100 zones at a time.
<aside class="notice">Be aware that if the zones are not accessible to the authenticated user or if any of the zone IDs are not valid
it will return an error.</aside>

## Headers

- `x-customer-api-key` string

## Request body

- object
  - `provider_key` string, required: The key of the integration you're using.
  - `date` string, required: The datetime whenever this information is valid from. It must follow the ISO8601
  - `data` object, required
    - `zones` object[]: Zones to update.
      - `id` integer, required: The Brandtrack Zone ID to update.
      - `current_occupation` integer: A number with the occupation from 0 to 100. It is required if capacity and occupation are not provided.
      - `current_capacity` integer: It is required with the current_occupied, if provided. It represents the capacity of tables, persons, or whatever the integration measures.
      - `current_occupied` integer: It is required with the current_capacity, if provided. It represents the occupation of tables, persons, or whatever the integration measures.

## Response `204`

OK

## Other responses

- `404`
- `422`: Non-valid payload request

---

[API](https://skmtc.dev/brandtrack/apis/brandtrack-api-documentation.md) - [All operations](https://skmtc.dev/brandtrack/apis/brandtrack-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/brandtrack/apis/brandtrack-api-documentation/revisions/a2c747489f3a?raw)
