curl -X POST 'https://www.wiseyield.co/api/v1/templates' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Weekly drip-line check",
"category": "irrigation",
"priority": "medium",
"estimatedDuration": "30m"
}'
Task Templates
Create template
Create a task template (own or global).
POST
/
api
/
v1
/
templates
curl -X POST 'https://www.wiseyield.co/api/v1/templates' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Weekly drip-line check",
"category": "irrigation",
"priority": "medium",
"estimatedDuration": "30m"
}'
POST https://www.wiseyield.co/api/v1/templates
Authentication
Requires a key with thetasks:write scope.
Request body
string
required
1–200 characters.
string
required
One of
planting, irrigation, fertilization, pest_control, harvesting, soil_management, maintenance, planning, inspection, other.string
Up to 2,000 characters.
string
Bind to a specific farm.
null (or omitted) = farm-agnostic.string
default:"medium"
One of
low, medium, high, urgent.string
Free text (e.g.
"2h").string
Default assignee for tasks created from this template.
boolean
default:"false"
When
true, the template is visible to all users.Response
Returns the created template wrapped underdata.
curl -X POST 'https://www.wiseyield.co/api/v1/templates' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Weekly drip-line check",
"category": "irrigation",
"priority": "medium",
"estimatedDuration": "30m"
}'
Errors
| Status | When |
|---|---|
400 VALIDATION_ERROR | Body validation failed |
401 | Missing, malformed, expired, or revoked API key |
403 INSUFFICIENT_SCOPE | Key lacks tasks:write scope |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |