Create an order action template
POST /v1/order_action_templates
A reusable action definition: its prompt, input type and whether it is mandatory or blocking.
Authentication
Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.
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 | |
owner | string | yes |
tags | array of string | yes |
attributes | object | yes |
Responses
201
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 POST 'https://orders-api.cloud.zoopit.no/v1/order_action_templates'
-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.