Create Global Template
Create Global Template
This API allows you to create a new global template.
Endpoint
POST /v2/global/template
Base URL:
https://prodnode.unizooks.com
Headers
| Key | Value | Required | Description |
|---|---|---|---|
Content-Type | application/json | ✅ | Defines the request body format |
Authorization | Bearer <JWT_TOKEN> | ✅ | Provide a valid JWT token for authentication |
Request Body
{
"template_name": "Template Test 4",
"scope": "customer",
"icon": "bi bi-arrow3"
}
Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
template_name | string | ✅ | The display name of the template |
scope | string | ❌ | Defines the scope of the template (e.g., customer, org) |
icon | string | ❌ | Optional icon class to visually represent the template |
Response
Success (201 Created)
{
"status": true,
"message": "Template created successfully"
}
Error (400 Bad Request)
{
"success": false,
"message": "Invalid request body. 'template_name' is required"
}
Error (401 Unauthorized)
{
"success": false,
"message": "Invalid or expired token"
}
Example (cURL)
curl --location 'https://prodnode.unizooks.com/v2/global/template' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <JWT_TOKEN>' \
--data '{
"template_name":"Template Test 4",
"scope": "customer",
"icon":"bi bi-arrow3"
}'
✅ Use this API to create a new global template.