Update a service zone
PATCH /v1/service_zones/{id}
Changes the fields you send.
Authentication
Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.
Path parameters
| Name | Type | Required |
|---|---|---|
id | string | yes |
Request body
| Field | Type | Required |
|---|---|---|
code | null or string | |
disabled | boolean | |
name | string | |
calendar | array of object | |
priority | number | |
depot_id | null or string | |
group_id | string | |
geometry | object | |
modified_at | null or string | |
tags | array of string | |
attributes | object |
Responses
200
resource: ServiceZone
| Field | Type | Required |
|---|---|---|
group_id | string | yes |
name | string | yes |
code | null or string | yes |
geometry | object | yes |
min_lon | number | yes |
min_lat | number | yes |
max_lon | number | yes |
max_lat | number | yes |
priority | number | yes |
disabled | boolean | yes |
depot_id | null or string | yes |
calendar | array of object | yes |
id | string | yes |
created_at | string | yes |
modified_at | null or string | yes |
deleted_at | null or string | yes |
created_by | string | yes |
modified_by | null or string | yes |
deleted_by | null or string | yes |
owners | array of string | yes |
tags | array of string | yes |
attributes | object | yes |
Example
curl -X PATCH 'https://routes-api.cloud.zoopit.no/v1/service_zones/{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.