Skip to main content

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​

KeyValueRequiredDescription
Content-Typeapplication/json✅Defines the request body format
AuthorizationBearer <JWT_TOKEN>✅Provide a valid JWT token for authentication

Request Body​

{
"template_name": "Template Test 4",
"scope": "customer",
"icon": "bi bi-arrow3"
}

Body Parameters​

FieldTypeRequiredDescription
template_namestring✅The display name of the template
scopestring❌Defines the scope of the template (e.g., customer, org)
iconstring❌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.