curl -X DELETE 'https://www.wiseyield.co/api/v1/templates/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
Task Templates
Delete template
Soft-delete a template. Only own templates can be deleted.
DELETE
/
api
/
v1
/
templates
/
{id}
curl -X DELETE 'https://www.wiseyield.co/api/v1/templates/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
DELETE https://www.wiseyield.co/api/v1/templates/{id}
Authentication
Requires a key with thetasks:write scope.
Path parameters
string
required
Template UUID.
Response
Returns204 No Content on success.
Recurring task schedules and previously-applied tasks reference the template by UUID via foreign key. Soft-deleting the template doesn’t affect those — but new attempts to apply or create recurring schedules against it will return
404 NOT_FOUND.curl -X DELETE 'https://www.wiseyield.co/api/v1/templates/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY"
Errors
| Status | When |
|---|---|
400 INVALID_ID | {id} is not a valid UUID |
401 | Missing, malformed, expired, or revoked API key |
403 INSUFFICIENT_SCOPE | Key lacks tasks:write scope |
404 NOT_FOUND | Template doesn’t exist or wasn’t created by you |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |