{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
Zones
Update a zone
Renames the zone or replaces its definition. Replacing the definition re-resolves membership; programs and groups that reference the zone follow the new area. After a new definition, device_count is null until membership has been resolved again; a rename leaves it unchanged.
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}
Authorizations
Authorization
string
header
required
Authenticate with the bearer_token obtained from the authentication endpoint.
Path Parameters
zone_id
string
required
Flatpeak Zone ID.
Body
application/json
Zone update payload.
Zone update payload. Send only the fields to change.
name
string
Zone name, for your own reference.
Example:
"NGED Bristol constraint zone"
definition
object
Replaces the zone area: a country, narrowed by at most one of states, postal_codes or multipolygon. With none of the three, the zone is the whole country. Membership is re-resolved, and zone.membership.update fires when that completes and for devices that join or leave.
Zone response. device_count is null while membership is being resolved again.
An area in one country: the whole country, or part of it defined by states, postal codes or a GeoJSON MultiPolygon. Flatpeak resolves membership from enrollment addresses; you receive counts and device IDs, never addresses. zone.membership.update fires on changes.
id
string
required
Flatpeak Zone ID.
Example:
"zon_9b3c5d7e1f2a4b6c8d0e2f4a"
object
enum<string>
required
Object type, zone.
Available options:
zone
Example:
"zone"
live_mode
boolean
required
true for live data, false for test data.
Example:
true
name
string
required
Zone name, for your own reference.
Example:
"NGED Bristol constraint zone"
definition
object
required
The zone area: a country, narrowed by at most one of states, postal_codes or multipolygon. With none of the three, the zone is the whole country.
Devices resolved into the zone. null while Flatpeak is still resolving membership, which happens after the zone is created and after its definition changes.
Example:
214
time_created
string<date-time>
required
Time when the object was created, in UTC.
Example:
"2026-08-12T09:30:00Z"
account_id
string
required
Flatpeak Account ID of the operator that owns the zone.
Example:
"acc_649d465ede6a785d2fa5f905"
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Flatpeak","colors":{"primary":"#0D9373","light":"#55D799","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/flatpeak-d495c19e/2B6nWUU4-c2pSD3E/images/shared/flatpeak-logo-new-dark.png?fit=max\u0026auto=format\u0026n=2B6nWUU4-c2pSD3E\u0026q=85\u0026s=b3eb2629b2f6d7ac5813f2fc130d3b98","dark":"https://mintcdn.com/flatpeak-d495c19e/2B6nWUU4-c2pSD3E/images/shared/flatpeak-logo-new-light.png?fit=max\u0026auto=format\u0026n=2B6nWUU4-c2pSD3E\u0026q=85\u0026s=79bc7b47f8f54f7b623a2aa0522d5dce","href":"/"},"favicon":"https://mintcdn.com/flatpeak-d495c19e/2B6nWUU4-c2pSD3E/favicon.png?fit=max\u0026auto=format\u0026n=2B6nWUU4-c2pSD3E\u0026q=85\u0026s=f21ca4406e76bd3d6900999d5c9f1510","navbar":{"links":[{"href":"/support","label":"Support"}],"primary":{"type":"button","label":"Console","href":"https://console.flatpeak.com"}},"footer":{"socials":{"github":"https://github.com/flat-peak","linkedin":"https://www.linkedin.com/company/flatpeak"}},"fonts":{"heading":{"family":"NB International Pro","source":"https://flatpeak-static.s3.amazonaws.com/misc/fonts/nbinternationalpro-bold-webfont.woff2","format":"woff2"},"body":{"family":"NB International Pro","source":"https://flatpeak-static.s3.amazonaws.com/misc/fonts/nbinternationalpro-regular-webfont.woff2","format":"woff2"}},"styling":{"eyebrows":"section","codeblocks":"system","latex":false},"integrations":{"ga4":{"measurementId":"G-2ZGZW08N65"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"flatpeak-d495c19e","hasAudioNarration":false,"actualSubdomain":"flatpeak-d495c19e","customDomains":[],"gitSource":{"type":"github","owner":"flat-peak","repo":"busbar-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6af588a42092b9c7b91cf695"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af783c51bcf9df148926cf0","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"default","tag":"API Reference","count":155},{"language":"default","tag":"Energy API","count":116},{"language":"default","tag":"Fleet API","count":88},{"language":"default","tag":"Platform","count":51},{"language":"default","tag":"Guides","count":49},{"language":"default","tag":"Tariffs","count":45},{"language":"default","tag":"VPP","count":45},{"language":"default","tag":"Enroll customers","count":26},{"language":"default","tag":"Connect","count":23},{"language":"default","tag":"VPP events","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":not(pre)>code{white-space:nowrap}html[data-current-path=\"/\"] #navbar div:has(>.nav-tabs),html[data-current-path=\"/\"] #navbar [data-component-part=\"products-selector-trigger\"]{display:none}"}],"page":{"pagePath":"fleet-api/reference/zones/update","slug":"/fleet-api/reference/zones/update","pageMetadata":{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json PATCH /zones/{zone_id}","sidebarTitle":"Update zone","title":"Update a zone","description":"Renames the zone or replaces its `definition`. Replacing the definition re-resolves membership; programs and groups that reference the zone follow the new area. After a new `definition`, `device_count` is `null` until membership has been resolved again; a rename leaves it unchanged.","href":"/fleet-api/reference/zones/update"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Renames the zone or replaces its \", _jsx(_components.code, {\n children: \"definition\"\n }), \". Replacing the definition re-resolves membership; programs and groups that reference the zone follow the new area. After a new \", _jsx(_components.code, {\n children: \"definition\"\n }), \", \", _jsx(_components.code, {\n children: \"device_count\"\n }), \" is \", _jsx(_components.code, {\n children: \"null\"\n }), \" until membership has been resolved again; a rename leaves it unchanged.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json PATCH /zones/{zone_id}","sidebarTitle":"Update zone","title":"Update a zone","description":"Renames the zone or replaces its `definition`. Replacing the definition re-resolves membership; programs and groups that reference the zone follow the new area. After a new `definition`, `device_count` is `null` until membership has been resolved again; a rename leaves it unchanged.","href":"/fleet-api/reference/zones/update"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Update a zone","operationId":"update-a-zone","tags":["Zones"],"description":"Renames the zone or replaces its `definition`. Replacing the definition re-resolves membership; programs and groups that reference the zone follow the new area. After a new `definition`, `device_count` is `null` until membership has been resolved again; a rename leaves it unchanged.","requestBody":"d78921ac-47ff-47a7-9a0a-9edd1c758e9b","responses":{"200":"127003ea-e9da-44cf-8901-93351236f03b","400":"5ab54482-6ea6-4be3-a47a-237655b78f8e","401":"9bd04c82-dded-446f-9dbc-fb911ec56f5f","403":"7f5138d2-aaaf-4a5b-ab47-c48e00d8d03d","404":"cd021140-b8a5-47a6-b527-e7a0fe70f768","422":"0642173c-dfb2-4f4c-88a1-5d4e675afaa7","429":"2a080cea-f629-4db7-937b-70262c754814","500":"9cdbae0f-87b0-427b-bb5b-15dccd67b3ff","503":"04c8ff78-2d32-4ec5-8711-c04d09b2cdb6"},"parameters":[],"method":"patch","type":"path","servers":["87faf99e-2829-4685-abf3-331e5f734dd9"],"security":["9037eda5-3530-43aa-a5b8-53c9c7f967fc"],"path":"/zones/{zone_id}","baseUrlOptions":["https://fleet-api.flatpeak.com"],"title":"Update a zone","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"80f8a26c-151c-493e-879d-882216346bce":{"schema":{"type":"string","isRequired":true,"description":"Flatpeak Zone ID.","uniqueKey":"","typeLabel":"string"},"name":"zone_id","in":"path","required":true,"description":"Flatpeak Zone ID."}},"requestBody":{"description":"Zone update payload.","required":true,"content":{"application/json":{"schema":{"title":"ZoneUpdate","type":"object","description":"Zone update payload. Send only the fields to change.","properties":{"name":{"type":"string","example":"NGED Bristol constraint zone","description":"Zone name, for your own reference.","uniqueKey":"name","typeLabel":"string"},"definition":{"type":"object","properties":{"country_code":{"type":"string","pattern":"^[A-Z]{2}$","description":"Country the zone is in, as a two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code. Required: a postal code or a state has no meaning without it.","example":"GB","isRequired":true,"uniqueKey":"definition.country_code","typeLabel":"string"},"states":{"type":"array","items":{"type":"string","pattern":"^[A-Z0-9]{1,3}$","uniqueKey":"definition.states.items.[INDEX]","typeLabel":"string"},"description":"States or provinces in `country_code`, as the code after the hyphen in ISO 3166-2: `CA` for California, `NSW` for New South Wales. Matched against the `state` of the device's address, which carries these codes for Australia, Canada and the US.","example":["CA"],"uniqueKey":"definition.states","typeLabel":"string[]"},"postal_codes":{"type":"array","items":{"type":"string","uniqueKey":"definition.postal_codes.items.[INDEX]","typeLabel":"string"},"description":"Postal codes or prefixes in `country_code`: `BS1` matches every postcode under it. Where codes are coarse, prefer `multipolygon`.","example":["BS1","BS2","BS3"],"uniqueKey":"definition.postal_codes","typeLabel":"string[]"},"multipolygon":{"type":"object","description":"GeoJSON MultiPolygon. A single area is a MultiPolygon with one polygon; disjoint areas, for example a constraint zone with two pockets, are one zone rather than several.","example":{"type":"MultiPolygon","coordinates":[[[[-2.627418,51.438902],[-2.589734,51.431256],[-2.553127,51.440671],[-2.541905,51.458394],[-2.556283,51.474816],[-2.592046,51.481237],[-2.624861,51.470529],[-2.636152,51.453318],[-2.627418,51.438902]]]]},"uniqueKey":"definition.multipolygon","typeLabel":"object"}},"description":"Replaces the zone area: a country, narrowed by at most one of `states`, `postal_codes` or `multipolygon`. With none of the three, the zone is the whole country. Membership is re-resolved, and `zone.membership.update` fires when that completes and for devices that join or leave.","required":["country_code"],"example":{"country_code":"GB","multipolygon":{"type":"MultiPolygon","coordinates":[[[[-2.627418,51.438902],[-2.589734,51.431256],[-2.553127,51.440671],[-2.541905,51.458394],[-2.556283,51.474816],[-2.592046,51.481237],[-2.624861,51.470529],[-2.636152,51.453318],[-2.627418,51.438902]]]]}},"uniqueKey":"definition","typeLabel":"object"}},"uniqueKey":"","typeLabel":"ZoneUpdate · object"},"examples":{"Example":{"title":"Example","value":{"name":"NGED Bristol constraint zone","definition":{"country_code":"GB","multipolygon":{"type":"MultiPolygon","coordinates":[[[[-2.627418,51.438902],[-2.589734,51.431256],[-2.553127,51.440671],[-2.541905,51.458394],[-2.556283,51.474816],[-2.592046,51.481237],[-2.624861,51.470529],[-2.636152,51.453318],[-2.627418,51.438902]]]]}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"127003ea-e9da-44cf-8901-93351236f03b":{"description":"Zone response. `device_count` is `null` while membership is being resolved again.","content":{"application/json":{"schema":{"title":"Zone","type":"object","description":"An area in one country: the whole country, or part of it defined by states, postal codes or a GeoJSON MultiPolygon. Flatpeak resolves membership from enrollment addresses; you receive counts and device IDs, never addresses. `zone.membership.update` fires on changes.","properties":{"id":{"type":"string","description":"Flatpeak Zone ID.","example":"zon_9b3c5d7e1f2a4b6c8d0e2f4a","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","example":"zone","description":"Object type, `zone`.","enum":["zone"],"isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"live_mode":{"type":"boolean","description":"`true` for live data, `false` for test data.","example":true,"isRequired":true,"uniqueKey":"live_mode","typeLabel":"boolean"},"name":{"type":"string","example":"NGED Bristol constraint zone","description":"Zone name, for your own reference.","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"definition":{"type":"object","description":"The zone area: a country, narrowed by at most one of `states`, `postal_codes` or `multipolygon`. With none of the three, the zone is the whole country.","properties":{"country_code":{"type":"string","pattern":"^[A-Z]{2}$","description":"Country the zone is in, as a two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code. Required: a postal code or a state has no meaning without it.","example":"GB","isRequired":true,"uniqueKey":"definition.country_code","typeLabel":"string"},"states":{"type":"array","items":{"type":"string","pattern":"^[A-Z0-9]{1,3}$","uniqueKey":"definition.states.items.[INDEX]","typeLabel":"string"},"description":"States or provinces in `country_code`, as the code after the hyphen in ISO 3166-2: `CA` for California, `NSW` for New South Wales. Matched against the `state` of the device's address, which carries these codes for Australia, Canada and the US.","example":["CA"],"uniqueKey":"definition.states","typeLabel":"string[]"},"postal_codes":{"type":"array","items":{"type":"string","uniqueKey":"definition.postal_codes.items.[INDEX]","typeLabel":"string"},"description":"Postal codes or prefixes in `country_code`: `BS1` matches every postcode under it. Where codes are coarse, prefer `multipolygon`.","example":["BS1","BS2","BS3"],"uniqueKey":"definition.postal_codes","typeLabel":"string[]"},"multipolygon":{"type":"object","description":"GeoJSON MultiPolygon. A single area is a MultiPolygon with one polygon; disjoint areas, for example a constraint zone with two pockets, are one zone rather than several.","example":{"type":"MultiPolygon","coordinates":[[[[-2.627418,51.438902],[-2.589734,51.431256],[-2.553127,51.440671],[-2.541905,51.458394],[-2.556283,51.474816],[-2.592046,51.481237],[-2.624861,51.470529],[-2.636152,51.453318],[-2.627418,51.438902]]]]},"uniqueKey":"definition.multipolygon","typeLabel":"object"}},"required":["country_code"],"example":{"country_code":"GB","postal_codes":["BS1","BS2","BS3"]},"isRequired":true,"uniqueKey":"definition","typeLabel":"object"},"device_count":{"oneOf":[{"type":"integer","readOnly":true,"description":"Devices resolved into the zone. `null` while Flatpeak is still resolving membership, which happens after the zone is created and after its `definition` changes.","example":214,"isRequired":true,"uniqueKey":"device_count.oneOf.0","typeLabel":"integer"},{"type":"null","readOnly":true,"description":"Devices resolved into the zone. `null` while Flatpeak is still resolving membership, which happens after the zone is created and after its `definition` changes.","example":214,"isRequired":true,"uniqueKey":"device_count.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"device_count","typeLabel":"integer | null"},"time_created":{"type":"string","format":"date-time","description":"Time when the object was created, in UTC.","example":"2026-08-12T09:30:00Z","isRequired":true,"uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"},"account_id":{"type":"string","description":"Flatpeak Account ID of the operator that owns the zone.","example":"acc_649d465ede6a785d2fa5f905","isRequired":true,"uniqueKey":"account_id","typeLabel":"string"}},"required":["id","object","live_mode","name","definition","device_count","time_created","account_id"],"uniqueKey":"","typeLabel":"Zone · object"},"example":{"id":"zon_9b3c5d7e1f2a4b6c8d0e2f4a","object":"zone","live_mode":true,"name":"NGED Bristol constraint zone","definition":{"country_code":"GB","multipolygon":{"type":"MultiPolygon","coordinates":[[[[-2.627418,51.438902],[-2.589734,51.431256],[-2.553127,51.440671],[-2.541905,51.458394],[-2.556283,51.474816],[-2.592046,51.481237],[-2.624861,51.470529],[-2.636152,51.453318],[-2.627418,51.438902]]]]}},"device_count":null,"time_created":"2026-08-12T09:30:00Z","account_id":"acc_649d465ede6a785d2fa5f905"},"examples":{"Example":{"title":"Example","value":{"id":"zon_9b3c5d7e1f2a4b6c8d0e2f4a","object":"zone","live_mode":true,"name":"NGED Bristol constraint zone","definition":{"country_code":"GB","multipolygon":{"type":"MultiPolygon","coordinates":[[[[-2.627418,51.438902],[-2.589734,51.431256],[-2.553127,51.440671],[-2.541905,51.458394],[-2.556283,51.474816],[-2.592046,51.481237],[-2.624861,51.470529],[-2.636152,51.453318],[-2.627418,51.438902]]]]}},"device_count":null,"time_created":"2026-08-12T09:30:00Z","account_id":"acc_649d465ede6a785d2fa5f905"}}},"exampleType":"examples"}},"exampleType":"examples"},"5ab54482-6ea6-4be3-a47a-237655b78f8e":{"description":"400 Bad Request: the request was malformed or a required field is missing or invalid.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned by every non-2xx response.","required":["object","type","code","message"],"properties":{"object":{"type":"string","enum":["error"],"default":"error","description":"Object type.","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"High-level error category.","example":"invalid_request","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, safe to branch on.","example":"access_denied","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of the error.","example":"The requested resource could not be found.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"context":{"type":"string","description":"Optional originating context, for example `api.price_get`.","example":"api.price_get","uniqueKey":"context","typeLabel":"string"},"live_mode":{"type":"boolean","description":"Whether the error occurred against live or test data.","uniqueKey":"live_mode","typeLabel":"boolean"},"time_created":{"type":"string","format":"date-time","description":"Time the error was generated (RFC 3339).","example":"2026-01-01T00:00:00Z","uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"error","type":"invalid_request","code":"access_denied","message":"The requested resource could not be found.","context":"api.price_get","live_mode":true,"time_created":"2026-01-01T00:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"9bd04c82-dded-446f-9dbc-fb911ec56f5f":{"description":"401 Unauthorized: authentication credentials are missing or invalid.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned by every non-2xx response.","required":["object","type","code","message"],"properties":{"object":{"type":"string","enum":["error"],"default":"error","description":"Object type.","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"High-level error category.","example":"invalid_request","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, safe to branch on.","example":"access_denied","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of the error.","example":"The requested resource could not be found.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"context":{"type":"string","description":"Optional originating context, for example `api.price_get`.","example":"api.price_get","uniqueKey":"context","typeLabel":"string"},"live_mode":{"type":"boolean","description":"Whether the error occurred against live or test data.","uniqueKey":"live_mode","typeLabel":"boolean"},"time_created":{"type":"string","format":"date-time","description":"Time the error was generated (RFC 3339).","example":"2026-01-01T00:00:00Z","uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"error","type":"invalid_request","code":"access_denied","message":"The requested resource could not be found.","context":"api.price_get","live_mode":true,"time_created":"2026-01-01T00:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"7f5138d2-aaaf-4a5b-ab47-c48e00d8d03d":{"description":"403 Forbidden: you do not have permission to access this resource.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned by every non-2xx response.","required":["object","type","code","message"],"properties":{"object":{"type":"string","enum":["error"],"default":"error","description":"Object type.","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"High-level error category.","example":"invalid_request","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, safe to branch on.","example":"access_denied","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of the error.","example":"The requested resource could not be found.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"context":{"type":"string","description":"Optional originating context, for example `api.price_get`.","example":"api.price_get","uniqueKey":"context","typeLabel":"string"},"live_mode":{"type":"boolean","description":"Whether the error occurred against live or test data.","uniqueKey":"live_mode","typeLabel":"boolean"},"time_created":{"type":"string","format":"date-time","description":"Time the error was generated (RFC 3339).","example":"2026-01-01T00:00:00Z","uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"error","type":"invalid_request","code":"access_denied","message":"The requested resource could not be found.","context":"api.price_get","live_mode":true,"time_created":"2026-01-01T00:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"cd021140-b8a5-47a6-b527-e7a0fe70f768":{"description":"404 Not Found: the requested resource does not exist.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned by every non-2xx response.","required":["object","type","code","message"],"properties":{"object":{"type":"string","enum":["error"],"default":"error","description":"Object type.","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"High-level error category.","example":"invalid_request","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, safe to branch on.","example":"access_denied","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of the error.","example":"The requested resource could not be found.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"context":{"type":"string","description":"Optional originating context, for example `api.price_get`.","example":"api.price_get","uniqueKey":"context","typeLabel":"string"},"live_mode":{"type":"boolean","description":"Whether the error occurred against live or test data.","uniqueKey":"live_mode","typeLabel":"boolean"},"time_created":{"type":"string","format":"date-time","description":"Time the error was generated (RFC 3339).","example":"2026-01-01T00:00:00Z","uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"error","type":"invalid_request","code":"access_denied","message":"The requested resource could not be found.","context":"api.price_get","live_mode":true,"time_created":"2026-01-01T00:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"0642173c-dfb2-4f4c-88a1-5d4e675afaa7":{"description":"422 Unprocessable Entity: the request is well-formed but cannot be processed, for example missing required data.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned by every non-2xx response.","required":["object","type","code","message"],"properties":{"object":{"type":"string","enum":["error"],"default":"error","description":"Object type.","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"High-level error category.","example":"invalid_request","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, safe to branch on.","example":"access_denied","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of the error.","example":"The requested resource could not be found.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"context":{"type":"string","description":"Optional originating context, for example `api.price_get`.","example":"api.price_get","uniqueKey":"context","typeLabel":"string"},"live_mode":{"type":"boolean","description":"Whether the error occurred against live or test data.","uniqueKey":"live_mode","typeLabel":"boolean"},"time_created":{"type":"string","format":"date-time","description":"Time the error was generated (RFC 3339).","example":"2026-01-01T00:00:00Z","uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"error","type":"invalid_request","code":"access_denied","message":"The requested resource could not be found.","context":"api.price_get","live_mode":true,"time_created":"2026-01-01T00:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"2a080cea-f629-4db7-937b-70262c754814":{"description":"429 Too Many Requests: the rate limit has been exceeded.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned by every non-2xx response.","required":["object","type","code","message"],"properties":{"object":{"type":"string","enum":["error"],"default":"error","description":"Object type.","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"High-level error category.","example":"invalid_request","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, safe to branch on.","example":"access_denied","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of the error.","example":"The requested resource could not be found.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"context":{"type":"string","description":"Optional originating context, for example `api.price_get`.","example":"api.price_get","uniqueKey":"context","typeLabel":"string"},"live_mode":{"type":"boolean","description":"Whether the error occurred against live or test data.","uniqueKey":"live_mode","typeLabel":"boolean"},"time_created":{"type":"string","format":"date-time","description":"Time the error was generated (RFC 3339).","example":"2026-01-01T00:00:00Z","uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"error","type":"invalid_request","code":"access_denied","message":"The requested resource could not be found.","context":"api.price_get","live_mode":true,"time_created":"2026-01-01T00:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"9cdbae0f-87b0-427b-bb5b-15dccd67b3ff":{"description":"500 Internal Server Error: an unexpected error occurred. Safe to retry with backoff.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned by every non-2xx response.","required":["object","type","code","message"],"properties":{"object":{"type":"string","enum":["error"],"default":"error","description":"Object type.","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"High-level error category.","example":"invalid_request","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, safe to branch on.","example":"access_denied","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of the error.","example":"The requested resource could not be found.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"context":{"type":"string","description":"Optional originating context, for example `api.price_get`.","example":"api.price_get","uniqueKey":"context","typeLabel":"string"},"live_mode":{"type":"boolean","description":"Whether the error occurred against live or test data.","uniqueKey":"live_mode","typeLabel":"boolean"},"time_created":{"type":"string","format":"date-time","description":"Time the error was generated (RFC 3339).","example":"2026-01-01T00:00:00Z","uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"error","type":"invalid_request","code":"access_denied","message":"The requested resource could not be found.","context":"api.price_get","live_mode":true,"time_created":"2026-01-01T00:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"04c8ff78-2d32-4ec5-8711-c04d09b2cdb6":{"description":"503 Service Unavailable: the service is temporarily down for maintenance. Retry after the indicated delay.","content":{"application/json":{"schema":{"type":"object","description":"Standard error envelope returned by every non-2xx response.","required":["object","type","code","message"],"properties":{"object":{"type":"string","enum":["error"],"default":"error","description":"Object type.","isRequired":true,"uniqueKey":"object","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"High-level error category.","example":"invalid_request","isRequired":true,"uniqueKey":"type","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code, safe to branch on.","example":"access_denied","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Human-readable description of the error.","example":"The requested resource could not be found.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"context":{"type":"string","description":"Optional originating context, for example `api.price_get`.","example":"api.price_get","uniqueKey":"context","typeLabel":"string"},"live_mode":{"type":"boolean","description":"Whether the error occurred against live or test data.","uniqueKey":"live_mode","typeLabel":"boolean"},"time_created":{"type":"string","format":"date-time","description":"Time the error was generated (RFC 3339).","example":"2026-01-01T00:00:00Z","uniqueKey":"time_created","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"object":"error","type":"invalid_request","code":"access_denied","message":"The requested resource could not be found.","context":"api.price_get","live_mode":true,"time_created":"2026-01-01T00:00:00Z"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"9037eda5-3530-43aa-a5b8-53c9c7f967fc":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authenticate with the `bearer_token` obtained from the [authentication](/fleet-api/reference/authentication) endpoint.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"87faf99e-2829-4685-abf3-331e5f734dd9":{"url":"https://fleet-api.flatpeak.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Authenticate with the `bearer_token` obtained from the [authentication](/fleet-api/reference/authentication) endpoint.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Authenticate with the `bearer_token` obtained from the [authentication](/fleet-api/reference/authentication) endpoint.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"fleet-api/reference/flatpeak-api-spec-fleet.json"},"subdomain":"flatpeak-d495c19e","siteName":"Flatpeak","title":"Update a zone - Flatpeak","relatedPagesConfig":{"enabled":false,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-13T21:41:02.047Z","originalFileLocation":"fleet-api/reference/zones/update.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Renames the zone or replaces its definition. Replacing the definition re-resolves membership; programs and groups that reference the zone follow the new area. After a new definition, device_count is null until membership has been resolved again; a rename leaves it unchanged.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Flatpeak\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex, nofollow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update a zone - Flatpeak\">\u003cmeta data-mint-head property=\"og:description\" content=\"Renames the zone or replaces its definition. Replacing the definition re-resolves membership; programs and groups that reference the zone follow the new area. After a new definition, device_count is null until membership has been resolved again; a rename leaves it unchanged.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flatpeak\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://flatpeak-d495c19e.mintlify.dev/docs/fleet-api/reference/zones/update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://flatpeak-d495c19e.mintlify.site/docs/_mintlify/api/og/v2?division=Zones\u0026amp;title=Update+a+zone\u0026amp;description=Renames+the+zone+or+replaces+its+%60definition%60.+Replacing+the+definition+re-resolves+membership%3B+programs+and+groups+that+reference+the+zone+follow+the+new+area.\u0026amp;theme=c5a97c60590f79f8ff853eab\u0026amp;signature=e3d9f4309c0b6a25b0805ebc67f2371d082ce2cce8f1cc700a973d8fae957261\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update a zone - Flatpeak\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Renames the zone or replaces its definition. Replacing the definition re-resolves membership; programs and groups that reference the zone follow the new area. After a new definition, device_count is null until membership has been resolved again; a rename leaves it unchanged.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://flatpeak-d495c19e.mintlify.site/docs/_mintlify/api/og/v2?division=Zones\u0026amp;title=Update+a+zone\u0026amp;description=Renames+the+zone+or+replaces+its+%60definition%60.+Replacing+the+definition+re-resolves+membership%3B+programs+and+groups+that+reference+the+zone+follow+the+new+area.\u0026amp;theme=c5a97c60590f79f8ff853eab\u0026amp;signature=e3d9f4309c0b6a25b0805ebc67f2371d082ce2cce8f1cc700a973d8fae957261\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/flatpeak-d495c19e/z8DTelcRm9a6-O99/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flatpeak\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://flatpeak-d495c19e.mintlify.dev/docs/fleet-api/reference/zones/update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/fleet-api/reference/zones/update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Flatpeak\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Flatpeak\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/fleet-api/reference/zones/update.md","siteName":"Flatpeak","nav":{"global":null,"products":[{"product":"Energy API","icon":"bolt-auto","description":"For manufacturers (OEMs)","pages":[{"title":"Energy API","href":"/energy-api/guides"}]},{"product":"Fleet API","icon":"transformer-bolt","description":"For energy suppliers and VPP operators","tabs":[{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":"/fleet-api/guides"}]},{"tab":"API Reference","icon":"square-terminal","groups":[{"group":"Platform","icon":"server","pages":[{"title":"Fleet API reference","sidebarTitle":"Introduction","icon":"memo-circle-info","href":"/fleet-api/reference"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /auth/tokens","sidebarTitle":"Authentication","title":"Create a bearer token","href":"/fleet-api/reference/authentication"},{"group":"Events","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /events","sidebarTitle":"List events","title":"List all events","href":"/fleet-api/reference/events/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /events/{event_id}","sidebarTitle":"Retrieve event","title":"Retrieve an event","href":"/fleet-api/reference/events/retrieve"}]},{"group":"OEMs","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /oems","sidebarTitle":"List OEMs","title":"List all OEMs","href":"/fleet-api/reference/oems/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /oems/{oem_id}","sidebarTitle":"Retrieve OEM","title":"Retrieve an OEM","href":"/fleet-api/reference/oems/retrieve"}]},{"group":"Devices","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /devices","sidebarTitle":"List devices","title":"List all devices","href":"/fleet-api/reference/devices/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /devices/{device_id}","sidebarTitle":"Retrieve device","title":"Retrieve a device","href":"/fleet-api/reference/devices/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /devices/{device_id}/settings","sidebarTitle":"Retrieve settings","title":"Retrieve device settings","href":"/fleet-api/reference/devices/retrieve-settings"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json PATCH /devices/{device_id}/settings","sidebarTitle":"Update settings","title":"Update device settings","href":"/fleet-api/reference/devices/update-settings"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /devices/{device_id}/consent-history","sidebarTitle":"Consent history","title":"Retrieve consent history","href":"/fleet-api/reference/devices/consent-history"}]},{"group":"Locations","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /locations/{location_id}","sidebarTitle":"Retrieve location","title":"Retrieve a location","href":"/fleet-api/reference/locations/retrieve"}]},{"group":"Tariffs","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /tariffs","sidebarTitle":"List tariffs","title":"List all tariffs","href":"/fleet-api/reference/tariffs/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /tariffs","sidebarTitle":"Create tariff","title":"Create a tariff","href":"/fleet-api/reference/tariffs/create"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /tariffs/{tariff_id}","sidebarTitle":"Retrieve tariff","title":"Retrieve a tariff","href":"/fleet-api/reference/tariffs/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json DELETE /tariffs/{tariff_id}","sidebarTitle":"Delete tariff","title":"Delete a tariff","href":"/fleet-api/reference/tariffs/delete"}]}]},{"group":"Enroll customers","icon":"bullhorn","pages":[{"group":"Connect devices","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /connect-sessions","sidebarTitle":"Create session","title":"Create a Connect session","href":"/fleet-api/reference/connect-sessions/create"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /connect-sessions/{session_id}","sidebarTitle":"Retrieve session","title":"Retrieve a Connect session","href":"/fleet-api/reference/connect-sessions/retrieve"}]},{"group":"Programs","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /vpp-programs","sidebarTitle":"Create program","title":"Create a VPP program","href":"/fleet-api/reference/vpp-programs/create"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /vpp-programs","sidebarTitle":"List programs","title":"List all VPP programs","href":"/fleet-api/reference/vpp-programs/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /vpp-programs/{program_id}","sidebarTitle":"Retrieve program","title":"Retrieve a VPP program","href":"/fleet-api/reference/vpp-programs/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json PATCH /vpp-programs/{program_id}","sidebarTitle":"Update program","title":"Update a VPP program","href":"/fleet-api/reference/vpp-programs/update"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /vpp-programs/{program_id}/summary","sidebarTitle":"Retrieve summary","title":"Retrieve a VPP program summary","href":"/fleet-api/reference/vpp-programs/retrieve-summary"}]},{"group":"Enrollments","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /vpp-enrollments","sidebarTitle":"List enrollments","title":"List all VPP enrollments","href":"/fleet-api/reference/vpp-enrollments/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /vpp-enrollments/{enrollment_id}","sidebarTitle":"Retrieve enrollment","title":"Retrieve a VPP enrollment","href":"/fleet-api/reference/vpp-enrollments/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /vpp-enrollments/{enrollment_id}/approve","sidebarTitle":"Approve request","title":"Approve an enrollment request","href":"/fleet-api/reference/vpp-enrollments/approve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /vpp-enrollments/{enrollment_id}/unenroll","sidebarTitle":"Unenroll device","title":"Unenroll a device","href":"/fleet-api/reference/vpp-enrollments/unenroll"}]}]},{"group":"Dispatch devices","icon":"calendar-day","pages":[{"group":"VPP events","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /vpp-events","sidebarTitle":"Create event","title":"Create a VPP event","href":"/fleet-api/reference/vpp-events/create"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /vpp-events","sidebarTitle":"List events","title":"List all VPP events","href":"/fleet-api/reference/vpp-events/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /vpp-events/{vpp_event_id}","sidebarTitle":"Retrieve event","title":"Retrieve a VPP event","href":"/fleet-api/reference/vpp-events/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /vpp-events/{vpp_event_id}/cancel","sidebarTitle":"Cancel event","title":"Cancel a VPP event","href":"/fleet-api/reference/vpp-events/cancel"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /vpp-events/{vpp_event_id}/devices","sidebarTitle":"List event devices","title":"List all VPP event devices","href":"/fleet-api/reference/vpp-events/list-devices"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /devices/{device_id}/deliveries","sidebarTitle":"Deliveries by device","title":"List device deliveries","href":"/fleet-api/reference/vpp-events/list-device-deliveries"}]},{"group":"Plans","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /devices/{device_id}/plans","sidebarTitle":"Submit plan","title":"Submit a dispatch plan","href":"/fleet-api/reference/plans/submit"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /plans/{plan_id}","sidebarTitle":"Retrieve plan","title":"Retrieve a dispatch plan","href":"/fleet-api/reference/plans/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /devices/{device_id}/timeline","sidebarTitle":"Retrieve timeline","title":"Retrieve a dispatch timeline","href":"/fleet-api/reference/plans/retrieve-timeline"}]},{"group":"Device telemetry","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /devices/{device_id}/state","sidebarTitle":"Retrieve state","title":"Retrieve a device state","href":"/fleet-api/reference/device-state/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /devices/{device_id}/meter-records","sidebarTitle":"List meter records","title":"List device meter records","href":"/fleet-api/reference/meter-records/list-device"}]},{"group":"Location telemetry","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /locations/{location_id}/meter-records","sidebarTitle":"List meter records","title":"List location meter records","href":"/fleet-api/reference/meter-records/list-location"}]}]},{"group":"Organize the fleet","icon":"layer-group","pages":[{"group":"Groups","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /groups","sidebarTitle":"Create group","title":"Create a group","href":"/fleet-api/reference/groups/create"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /groups","sidebarTitle":"List groups","title":"List all groups","href":"/fleet-api/reference/groups/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /groups/{group_id}","sidebarTitle":"Retrieve group","title":"Retrieve a group","href":"/fleet-api/reference/groups/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json PATCH /groups/{group_id}","sidebarTitle":"Update group","title":"Update a group","href":"/fleet-api/reference/groups/update"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json DELETE /groups/{group_id}","sidebarTitle":"Delete group","title":"Delete a group","href":"/fleet-api/reference/groups/delete"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /groups/{group_id}/devices","sidebarTitle":"List group devices","title":"List all group devices","href":"/fleet-api/reference/groups/list-devices"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /groups/{group_id}/capacity","sidebarTitle":"Retrieve capacity","title":"Retrieve a capacity forecast","href":"/fleet-api/reference/groups/retrieve-capacity"}]},{"group":"Zones","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /zones","sidebarTitle":"Create zone","title":"Create a zone","href":"/fleet-api/reference/zones/create"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /zones","sidebarTitle":"List zones","title":"List all zones","href":"/fleet-api/reference/zones/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /zones/{zone_id}","sidebarTitle":"Retrieve zone","title":"Retrieve a zone","description":"Retrieves a zone with its current device count.","href":"/fleet-api/reference/zones/retrieve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json PATCH /zones/{zone_id}","sidebarTitle":"Update zone","title":"Update a zone","href":"/fleet-api/reference/zones/update"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json DELETE /zones/{zone_id}","sidebarTitle":"Delete zone","title":"Delete a zone","description":"Deletes the zone. Groups filtering on it become empty.","href":"/fleet-api/reference/zones/delete"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /zones/{zone_id}/devices","sidebarTitle":"List zone devices","title":"List all zone devices","href":"/fleet-api/reference/zones/list-devices"}]}]},{"group":"Settle and reward","icon":"coins","pages":[{"group":"Exports","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /exports","sidebarTitle":"Create export","title":"Create an export","href":"/fleet-api/reference/exports/create"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /exports","sidebarTitle":"List exports","title":"List all exports","href":"/fleet-api/reference/exports/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /exports/{export_id}","sidebarTitle":"Retrieve export","title":"Retrieve an export","href":"/fleet-api/reference/exports/retrieve"}]},{"group":"Rewards","pages":[{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json GET /rewards","sidebarTitle":"List rewards","title":"List all rewards","href":"/fleet-api/reference/rewards/list"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /rewards/approve","title":"Approve rewards","href":"/fleet-api/reference/rewards/approve"},{"openapi":"fleet-api/reference/flatpeak-api-spec-fleet.json POST /rewards/mark-paid","title":"Mark rewards paid","href":"/fleet-api/reference/rewards/mark-paid"}]}]}]}]}]},"basePath":"","title":"Update a zone - Flatpeak","buildId":"dpl_Eok1jboeiLTUE4ccnKdogAktkDhH","deploymentId":"dpl_Eok1jboeiLTUE4ccnKdogAktkDhH","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BO6jLjHP.js","utils-DzK3kjtW.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B_o_sRtB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-w5sf6cTL.js","snippetPresets-C-LqQvlw.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-B86q0r56.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CK4fhXtK.js","shallow-2nSrO3Y1.js","getApiPlaygroundDisplay-iMY8AQYp.js","CodeSnippet-CYrmmkRs.js","CodeSnippets-CpTHX08n.js","Page-B6e_603r.js","getPastedJson-ErXUu_z-.js","icon-DjAwzjTp.js","MethodPill-DWCnd71y.js","DuplicateIcon-CzD5BRfY.js","createIcon-D_pVdVTU.js","DynamicMarkdown-BeNxZ5px.js","SectionHeading-CovuDw0Y.js","axios-vUo_bRtp.js","Markdown-BZjeoXbi.js","clsx-BaM3PNnJ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BfGZDUfd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-wFXGQKnc.js"]}