Skip to content

Create or update zone

POST /container/<containerId>/zone

Description

Create or update a zone. Existing properties will be overwritten.

Path parameters

Param Description
containerId Container Id.

Query parameters

none

Body

Param Type Required Description
zone int Yes Zone Id.
name string Yes Zone Name.

Return codes

Error code Reason
204 Success.
400 Unknown field or invalid query param.
401 Invalid or missing token.
403 Insufficient permissions (required: API+ASSET_MANAGEMENT).
404 Container not found.

Example

Curl request:

curl \
    -X POST 'https://api.infrasonar.com/container/123/zone' \
    -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \
    -H 'Content-Type: application/json' \
    --data-raw '{
    "zone": 1,
    "name": "other zone"
}'