Online Docs

Update task

Change information of existing properties with new information. A task’s fields and information in the current channel will be updated.

1
2
3
4
5
6
7
8
PATCH odata/tasks({task-id})
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
--data-raw:
{
[Task Properties]
}

URL Endpoint

odata/tasks({task-id}).

Method

PATCH.

Parameters

This method is not support OData Filter syntax.

Request

Header

1
2
3
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]

Body

In the requested body, only include all fields that need to update. Other fields that not included will keep it old value.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"name": "B-Task 1",
"owner": "Cora Rowland",
"priority": "Normal",
"status": "In Progress",
"dueDate": "2020-09-29T17:00:00Z",
"assignedTo": [
{
"_id": "5bce7df753b66e19aaa3e825",
"sourceId": "a68cf37b-c7fe-4f7d-ae5c-cf432d7ecf8f",
"displayName": "z Kate Cloud",
"email": "clouduser7@anadea.onmicrosoft.com",
"source": "Microsoft.Graph.User",
"username": "clouduser7@anadea.onmicrosoft.com"
}
],
}

Response

Success

If successful, this method returns a 204 No Content response code and no content in the response body.

Error

This method can return any of the HTTP status codes. The most common errors that apps should handle for this method are the 400, 403, 404, 409, and 412 responses.

Example

Request

1
2
3
4
5
6
7
8
curl --location --request PATCH 'https://teams.appvity.com/odata/tasks(5f6176d04d596392f54717f8)' \
--H 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--H 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--H 'Cookie: graphNodeCookie=s%3AlaIrRjrQdBULLxHHgBM0ofupyqfGBmRf.4vy0SDHjNaJ9%2Fa3MeJbeIOQchnkP1NNAQTv9AViLawk' \
--data-binary '
{
[Task Properties]
}'

Response

No Content.

Comment

Was this article helpful?
Thanks For Your Feedback