Help Doc Access Vani

ZONE VERSION API

Manage resources and operations related to Zone version.

GET Version

GET https://api.app.vanihq.com/vani/api/v1/editions/{edition_id}/spaces/{space_id}/zones/{zone_id}/version

Retrieves all the available versions of the specified Zone in a Space.

Parameters

Name Type In Required Description
fields string query Optional Specifies the fields (comma-separated) to retrieve.
Allowed values: version_time, modified_by, description, version_id.
edition_id string path Required The unique ID of the edition.
space_id string path Required The unique ID of the Space.
zone_id string path Required The unique ID of the Zone.

Responses

200 success with allowed version
200 sucess with restricted version
200 using fields
200 from & limit
200 fromDate
404 zone not found
401 unauthorized
success with allowed version - Response
{ "data": { "zone_versions": { "restricted_versions": [], "allowed_versions": [ { "version_time": "Sun, 16 Feb 2025, 03:09:13", "modified_by": "96384499", "description": "", "version_id": "1505000000099005" }, { "version_time": "Sun, 16 Feb 2025, 03:08:50", "modified_by": "96384499", "description": "activated", "version_id": "1505000000097249" } ] } }, "message": "Zone versions fetched successfully", "request_uri": "/vani/api/v1/editions/97375109/spaces/1505000000022005/zones/DBB83581-F98F-4120-9431-FDC16515FE00/version", "status": "success" }

Code Examples

cURL Command line HTTP client
cURL
curl -X GET "https://api.app.vanihq.com/vani/api/v1/editions/{edition_id}/spaces/{space_id}/zones/{zone_id}/version" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Content-Type: application/json"