Skip to main content

Delete Template

Delete Template​

This API allows you to delete a global template by its template_id.


Endpoint​

DELETE /v2/global/template/{template_id}

Base URL:
https://prodnode.unizooks.com


Headers​

KeyValueRequiredDescription
AuthorizationBearer <JWT_TOKEN>✅Provide a valid JWT token for authentication

Path Parameters​

ParameterTypeRequiredDescription
template_idstring✅Unique identifier (UUID) of template

Response​

Success (200 OK)​

{
"status": true,
"message": "Template deleted successfully"
}

Error (400 Bad Request)​

{
"success": false,
"message": "Invalid template_id"
}

Error (401 Unauthorized)​

{
"success": false,
"message": "Invalid or expired token"
}

Example (cURL)​

curl --location --request DELETE 'http://127.0.0.1:4022/v2/global/template/505c631b-826c-11f0-b592-bc2411f4d589' \
--header 'Authorization: Bearer <JWT_TOKEN>'

✅ Use this API to permanently remove a global template from the system.