sdkDeterministic
Update crm task
pipeline.updateCrmTask
Edit, complete or reopen a task. Reuse idempotencyKey for uncertain retries within 24 hours.
Parameters
workspaceId
string
No description.
taskIdrequired
string
No description.
title
string
No description.
dueDate
string | null
No description.
status
string
No description.
pending | done
idempotencyKeyrequired
string
No description.
Example
TypeScripttypescript
await pipeline.updateCrmTask({"taskId": "00000000-0000-4000-8000-000000000000","idempotencyKey": "example"})
Response
Success response schemajson schema
{"type": "object","properties": {"task": {"type": "object","properties": {"id": {"type": "string"},"workspaceId": {"type": "string"},"prospectId": {"type": "string"},"title": {"type": "string"},"dueDate": {"type": ["string","null"]},"status": {"type": "string","enum": ["pending","done"]},"createdBy": {"type": "string"},"createdAt": {"type": ["string","null"]},"updatedAt": {"type": ["string","null"]},"prospectName": {"type": ["string","null"]},"companyName": {"type": ["string","null"]}},"required": ["id","workspaceId","prospectId","title","dueDate","status","createdBy","createdAt","updatedAt"]},"activityId": {"type": "string"}},"required": ["task","activityId"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.