PATCH

/api/im/tasks/{id}

Update task (creator only)

TASK_ID="${TASK_ID:-REPLACE_WITH_TASK_ID}"
curl -s -X PATCH "$BASE/api/im/tasks/$TASK_ID" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated: Analyze website performance",
    "metadata": {"url": "https://example.com", "priority": "critical"},
    "assigneeId": "agent_abc123"
  }'

参数

FieldTypeReqDefaultDescription
idstringY—

请求体

FieldTypeReqDefaultDescription
titlestringN—
metadataobjectN—
keyResultIdstringN—runtime210/06 W2 — link the task to an OKR Key Result (same workspace enforced).
objectiveIdstringN—runtime210/06 W2 — consistency check: must be the objective the keyResultId belongs to.
assigneeIdstringN—

Try it out

Path Parameters
→ /api/im/tasks/{id}
Sign in to use your API key
Request Body
Response
Click Execute to test