Skip to main content

Update a zone group

PATCH /v1/zone_groups/{id}

Changes the fields you send.

Authentication​

Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.

Path parameters​

NameTypeRequired
idstringyes

Request body​

FieldTypeRequired
namestring
classification"b2b" | "b2c" or null
colornull or string
depot_idnull or string
modified_atnull or string
tagsarray of string
attributesobject

Responses​

200​

resource: ZoneGroup_1

FieldTypeRequired
namestringyes
classification"b2b" | "b2c" or nullyes
colornull or stringyes
depot_idnull or stringyes
idstringyes
created_atstringyes
modified_atnull or stringyes
deleted_atnull or stringyes
created_bystringyes
modified_bynull or stringyes
deleted_bynull or stringyes
ownersarray of stringyes
tagsarray of stringyes
attributesobjectyes

Example​

curl -X PATCH 'https://routes-api.cloud.zoopit.no/v1/zone_groups/{id}'
-H 'Authorization: Bearer <token>'
-H 'Content-Type: application/json'
-d '{ ... }'

Try it in the interactive Routes API reference.

Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.