Change information of existing a task in the current channel. The fields can be updated: assignedTo
, status
, priority
, startDate
, dueDate
.
/api/bulk/task.
POST.
This method does not supply OData Filter syntax.
Header1
2
3--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
Body
In the request body, need to include the following information should:
ids
is the list of ids of all tasks that need to be changed. Must have at least 1 item in the list.assignedTo
is a list of users needed to change assignee. If you don’t want to change assignee so this field is [].status
must be an existing status in the eTask and mapped. If the value is null, status
will not be changed.priority
is priority of eTask. If the value is null, status
will not be changed.startDate
and dueDate
are datetime of the tasks. If the value is null, startDate
and dueDate
will not be changed.completedDate
will autofill when the status
is changed to Done category.1 | { |
Success
If successful, this method returns a 200 OK
response code and the updated tasks and updated status in the response body.
Error
Code: 400 Bad Request, 401 Unauthorized, 500 Error Exception.
Content: { error : “error message” }
Request
1 | curl --location --request POST 'https://teams.appvity.com/api/bulk/task' \ |
Response1
2
3
4
5
6
7
8
9
10
11
12
13[
{
"_id": "5f62c8ef4d596392f54d1fc3",
"name": "B-Task",
"status": "success"
},
{
"_id": "5f602e564d596392f53d45b6",
"name": " A-Task",
"status": "error",
"error": "ETASK_MAPPING_NOTFOUND"
}
]
Comment