Skip to main content
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 }'

Documentation Index

Fetch the complete documentation index at: https://docs.wiseyield.co/llms.txt

Use this file to discover all available pages before exploring further.

PUT https://www.wiseyield.co/api/v1/templates/{id}

Authentication

Requires a key with the tasks:write scope.

Path parameters

id
string
required
Template UUID.

Request body

All fields optional.
name
string
1–200 characters.
description
string
Up to 2,000 characters. Pass null to clear.
farmId
string
UUID. Pass null to make farm-agnostic.
priority
string
One of low, medium, high, urgent.
category
string
One of the 10 task categories.
estimatedDuration
string
Pass null to clear.
defaultAssignee
string
Pass null to clear.
isActive
boolean
Setting false disables the template (/apply will 404 it).

Response

Returns the updated template wrapped under data.
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

StatusWhen
400 INVALID_ID{id} is not a valid UUID
400 VALIDATION_ERRORBody validation failed
401Missing, malformed, expired, or revoked API key
403 INSUFFICIENT_SCOPEKey lacks tasks:write scope
404 NOT_FOUNDTemplate doesn’t exist or wasn’t created by you
429 RATE_LIMIT_EXCEEDEDPer-user rate limit reached
5xxServer error