curl -X PUT 'https://www.wiseyield.co/api/v1/templates/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "isActive": false }'
Task Templates
Update template
Update mutable fields on a template. Only own templates can be updated; global templates owned by other users are read-only.
PUT
/
api
/
v1
/
templates
/
{id}
curl -X PUT 'https://www.wiseyield.co/api/v1/templates/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "isActive": false }'
PUT https://www.wiseyield.co/api/v1/templates/{id}
Authentication
Requires a key with thetasks:write scope.
Path parameters
string
required
Template UUID.
Request body
All fields optional.string
1–200 characters.
string
Up to 2,000 characters. Pass
null to clear.string
UUID. Pass
null to make farm-agnostic.string
One of
low, medium, high, urgent.string
One of the 10 task categories.
string
Pass
null to clear.string
Pass
null to clear.boolean
Setting
false disables the template (/apply will 404 it).Response
Returns the updated template wrapped underdata.
curl -X PUT 'https://www.wiseyield.co/api/v1/templates/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "isActive": false }'
Errors
| Status | When |
|---|---|
400 INVALID_ID | {id} is not a valid UUID |
400 VALIDATION_ERROR | Body validation failed |
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 |