Bulk Delete Template

Bulk Delete Template

This endpoint permanently deletes multiple templates for a specific user. It is intended for bulk deletion operations where one or more template IDs are provided.


HTTP Method and URL

  • Method: DELETE

  • URL: {{host}}/api/v2/templates?user_type=ENTERPRISE_API&template_ids=


Authentication Requirements

  • Requires authentication. Typically, a valid user token must be provided in the request headers. (Header: user-token)

Path and Query Parameters

  • user_type (query, required): The type of user. Example: ENTERPRISE_API

  • template_ids (query, required): Comma-separated list of template IDs to delete. Example: template1,template2,template3


Request Body

  • No request body is required for this endpoint.

Example Request

DELETE {{host}}/api/v2/templates?user_type=ENTERPRISE_API&template_ids=template1,template2,template3
Headers:
  user-token: <your-user-token>

Example Successful Response

{
  "success": true,
  "deleted_template_ids": ["template1", "template2", "template3"]
}

Error Responses

  • 400 Bad Request: Invalid or missing parameters. To be documented.

  • 401 Unauthorized: Missing or invalid authentication token. To be documented.

  • 404 Not Found: One or more template IDs do not exist. To be documented.

  • 500 Internal Server Error: Server-side error. To be documented.


Usage Notes

  • Ensure that the template_ids parameter contains valid, existing template IDs.

  • This operation is irreversible; deleted templates cannot be recovered.

  • If any template ID is invalid, the response may indicate which deletions failed. To be documented.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
string

comma separated ids of the templates to delete (eg. 1,2,3,4,5)

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!