Update an order action template
PATCH /v1/order_action_templates/{order_action_template_id}
Changes the fields you send.
Authentication
Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.
Path parameters
| Name | Type | Required |
|---|---|---|
order_action_template_id | string | yes |
Request body
| Field | Type | Required |
|---|---|---|
name | string | |
description | string | |
on_activities_type | "break" | "delivery" | "end" | "pickup" | "start" | |
consumer_tracking | boolean | |
is_mandatory | boolean | |
is_blocking | boolean | |
deviation | boolean | |
prompt_request | object or null | |
modified_at | null or string | yes |
tags | array of string | |
attributes | object |
Responses
200
resource: OrderActionTemplate
| Field | Type | Required |
|---|---|---|
name | string | yes |
description | string | yes |
on_activities_type | "break" | "delivery" | "end" | "pickup" | "start" | yes |
consumer_tracking | boolean | yes |
is_mandatory | boolean | yes |
is_blocking | boolean | yes |
deviation | boolean | yes |
prompt_request | object or null | 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://orders-api.cloud.zoopit.no/v1/order_action_templates/{order_action_template_id}'
-H 'Authorization: Bearer <token>'
-H 'Content-Type: application/json'
-d '{ ... }'
Try it in the interactive Orders API reference.
Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.