post
/api/v2/zones/by-ids
Python SDK method:
client.zones.by_ids(params).run()

Start zones by IDs job

Starts a job that will return GeoJSON features with zone metadata properties for each requested zone. Supply either an array of encoded zone ID strings (Base58) via zoneIds, or an array of zone objects via zones.

Altitude Help Center — getZonesData

Request Body

Zone selection and optional filters. Provide either zoneIds (encoded Base58 strings) or zones (objects with code, type, and iso_3166_2) — exactly one is required.

application/json: object

NameTypeInput ShapeValuesDescriptionValue Required
asOfDatestring--Return zone data as of this date (YYYY-MM-DD). Omit for the most recent data.N
isMetricboolean--Override the requesting user's unit preference. Omit to use the user's stored preference.N
zoneIdsarray<string>--Encoded zone ID strings. Provide exactly one of zoneIds or zones (not both).N
zonesarray<object>code: string; iso_3166_2: string; type: string-Zone objects with code, type, and iso_3166_2. Provide exactly one of zones or zoneIds (not both).N

Examples

Clark County zone data (zone object)

Identify the zone by code, type, and ISO 3166-2 state code instead of an encoded ID.

{
  "zones": [
    {
      "code": "32003",
      "type": "County",
      "iso_3166_2": "US-NV"
    }
  ]
}

Clark County zone data (encoded ID)

The Base58 ID encodes US-NV_County_32003.

{
  "zoneIds": [
    "4YGGtN5UbfAywpxZwNLof3E42"
  ]
}

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.