patch
/api/v2/zones/custom
Python SDK method:
client.custom_zones.batch_update(params).run()

Batch update custom zones

Batch updates multiple custom zones in one request. Each zone is updated using JSON Merge Patch — only the fields you include are changed. Poll the job status endpoint to confirm completion. Keys can be either a zone ID (properties.id) or a raw zone code.

Altitude Help Center — updateCustomZones

Request Body

An object where each key is a zone ID or zone code and each value contains the fields to update.

application/merge-patch+json: object

Examples

Batch update custom zones

Keys can be either a zone ID (properties.id from a custom zone response) or a raw zone code.

{
  "4PBF7WD59Rj7gaNiy95bbC3ajnwrfjXWMjEg": {
    "comments": "Updated example notes",
    "name": "Updated Zone by ID"
  },
  "z-00001": {
    "name": "Updated Zone By Code"
  }
}

Success Responses

202 response: object

Job accepted and queued for processing. Poll the location header URL to check status.

NameTypeDescription
errorobjectDetails about why the job failed (RFC 7807 format), or null if it succeeded.
idstringUnique job identifier.
linksobjectNavigation URLs for polling and result retrieval.
statusstringCurrent job lifecycle state: PENDING, QUEUED, RUNNING, DONE, FAILED, CANCELED, or NOT_FOUND.

Response Errors

HTTP Status CodeReason
400The request body or parameters are invalid.
401Authentication is required or the provided credentials are invalid.
403The authenticated user lacks permission to perform this operation.
409The operation conflicts with the current state of the resource.
422The request is syntactically valid but semantically cannot be processed.
429The request rate limit has been exceeded.
500An unexpected server error occurred.