Templates

Delete a template

DELETE
/preset/templates/{template_id}

Also soft-deletes the presets that depend on it: presets owned by the caller whose only visible template is this one. Presets that also belong to another template are kept (they still have a home), as are presets owned by other users (e.g. a teammate's preset in a shared template) — same permission rules as deleting each preset individually.

Authorization

token_auth
headerAuthorizationBearer <token>

Token-based authentication using access tokens.

Path Parameters

template_id*string

Response Body

Successful Response

application/json
  1. response
success*Success
message*Message
deleted_presets?Deleted Presets

Number of presets deleted along with the template (DELETE only): presets owned by the caller whose only visible template was this one.

Default0
curl -X DELETE "https://example.com/preset/templates/string"
{  "success": true,  "message": "string",  "deleted_presets": 0}