Update Task
CUSTOM-ENDPOINT
PUT https://api.speakap.io/networks/:eid/tasks/:eid/
CUSTOM-REQUEST
- URI: /networks/{networkEID}/tasks/{taskEID}/
- Method: PUT
- Content-Type: application/json
- Authentication: OAuth 2.0
Alternative Method
This endpoint also supports POST method for backwards compatibility.
POST https://api.speakap.io/networks/:eid/tasks/:eid/
Parameters
| Name | Type | Description |
|---|---|---|
| networkEID | EID | Network EID |
| taskEID | EID | Task EID |
Request Body
Supply a task resource in the request body.
| Name | Type | Description |
|---|---|---|
| title | string | Title of the task. Required field. |
| messageType | string | Must be task. Required field. |
| taskType | string | Type of the task. One of: associated, individual, shared, split. Required field. |
| recipients | array | List of recipient objects. Required field. |
| recipients[i].EID | EID | EID of the recipient (user, group, or network) |
| recipients[i].type | string | user, group, or network |
| dueDate | datetime | The due date for the task. Optional field. |
| attachments | array | List of attachment objects. Optional field. |
Example (task)
{
"title": "Updated task title",
"messageType": "task",
"taskType": "individual",
"recipients": [
{
"EID": "{{UserEID}}",
"type": "user"
}
],
"dueDate": "2025-01-20T17:00:00.000+00:00",
"attachments": []
}Response
| Status | Data |
|---|---|
| 202 | Task update accepted: returns a Feedback object |
| 400 | Invalid task data: returns an Error object |
| 401 | Unauthorized: returns an Error object |
| 403 | Permission denied: returns an Error object |
| 404 | Task not found: returns an Error object |