curl -X POST 'https://www.wiseyield.co/api/v1/recurring-tasks' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"farmId": "11111111-2222-3333-4444-555555555555",
"templateId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"pattern": "weekly",
"interval": 1,
"daysOfWeek": [1, 4],
"startDate": "2026-06-01"
}'
Recurring Tasks
Create recurring task
Create a recurring task schedule linked to a task template.
POST
/
api
/
v1
/
recurring-tasks
curl -X POST 'https://www.wiseyield.co/api/v1/recurring-tasks' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"farmId": "11111111-2222-3333-4444-555555555555",
"templateId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"pattern": "weekly",
"interval": 1,
"daysOfWeek": [1, 4],
"startDate": "2026-06-01"
}'
POST https://www.wiseyield.co/api/v1/recurring-tasks
Authentication
Requires a key with thetasks:write scope.
Request body
string
required
UUID of the parent farm. Must be owned by the user.
string
required
UUID of an existing task template. Must be either user-owned or global.
string
required
One of
daily, weekly, monthly, yearly, custom.string
required
Calendar date as
YYYY-MM-DD. A full ISO 8601 datetime is accepted too, but only its date part is kept. The first occurrence.integer
Pattern interval (default
1). Range 1–365.array
For
weekly: array of 0–6 (0 = Sunday).integer
For
monthly: 1–31.integer
For
yearly: 1–12.string
Calendar date as
YYYY-MM-DD. A full ISO 8601 datetime is accepted too, but only its date part is kept. The schedule stops generating after this date.integer
0–90. Generate the task this many days before its
nextOccurrence.string
Default assignee for generated tasks.
string
Free-text field reference (denormalized).
Response
Returns the created schedule wrapped underdata. nextOccurrence is initialized to startDate.
curl -X POST 'https://www.wiseyield.co/api/v1/recurring-tasks' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"farmId": "11111111-2222-3333-4444-555555555555",
"templateId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"pattern": "weekly",
"interval": 1,
"daysOfWeek": [1, 4],
"startDate": "2026-06-01"
}'
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 |
404 NOT_FOUND | Farm or template doesn’t exist or isn’t accessible |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |