curl -X PUT 'https://www.wiseyield.co/api/v1/tasks/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "in_progress", "actualDuration": "45m" }'
Tasks
Update task
Update mutable fields on a task. Only provided fields are touched.
PUT
/
api
/
v1
/
tasks
/
{id}
curl -X PUT 'https://www.wiseyield.co/api/v1/tasks/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "in_progress", "actualDuration": "45m" }'
PUT https://www.wiseyield.co/api/v1/tasks/{id}
Authentication
Requires a key with thetasks:write scope.
Path parameters
string
required
Task UUID.
Request body
All fields optional. Only provided fields are updated. Settingstatus to completed auto-populates completedDate if not already set.
string
UUID. Must be owned by the user. Reparents the task.
string
1–200 characters.
string
Pass
null to clear.string
One of
pending, in_progress, completed, overdue, cancelled.string
One of
low, medium, high, urgent.string
One of the 10 task categories.
string
Calendar date as
YYYY-MM-DD. A full ISO 8601 datetime is accepted too, but only its date part is kept. Pass null to clear.string
Calendar date as
YYYY-MM-DD. A full ISO 8601 datetime is accepted too, but only its date part is kept. Pass null to clear.string
Calendar date as
YYYY-MM-DD. A full ISO 8601 datetime is accepted too, but only its date part is kept. Pass null to clear. Also resets status if desired.string
Free text. Pass
null to clear.string
Pass
null to clear.string
Pass
null to clear.string
Pass
null to clear.string
Pass
null to clear.string
UUID. Pass
null to clear.string
UUID. Pass
null to clear.string
UUID. Pass
null to clear.Response
Returns the updated task wrapped underdata.
curl -X PUT 'https://www.wiseyield.co/api/v1/tasks/aaaaaaaa...' \
-H "Authorization: Bearer $WISEYIELD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "status": "in_progress", "actualDuration": "45m" }'
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 | Task or new farmId doesn’t exist or belongs to another user |
429 RATE_LIMIT_EXCEEDED | Per-user rate limit reached |
5xx | Server error |