Online Docs

Delete task

Remove a task object from the current channel

1
2
3
4
DELETE odata/tasks({task-id})
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]

URL Endpoint

api/batch/task.

Method

POST.

Parameters

Do not supply OData Filter syntax.

Request

Header

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

Body

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[
{
"bucket": [],
"assignedTo": [
{
"_id": "5bce7df753b66e19aaa3e862",
"sourceId": "e5d147a2-3780-4187-b97f-5b9a1bbfe243",
"displayName": "Nina Lowery",
"source": "Microsoft.Graph.User",
"username": "ninalowery@anadea.com",
"jobTitle": "",
"abrName": "CV",
"avatar": "https://teams.appvity.com/api/users/photo/Microsoft.Graph.User/e5d147a2-3780-4187-b97f-5b9a1bbfe243",
"color": "#cbd335"
}
],
"attachments": [],
"_id": "5f6428754d596392f557ff37",
"source": "Appvity.eTask",
"name": "Update Api document",
"owner": "Cora Rowland",
"priority": "High",
"status": "Not Started",
"body": "",
"startDate": "2020-09-01T17:00:00.000Z",
"dueDate": "2020-09-24T17:00:00.000Z",
"effort": "",
"projectId": {
"enableBug": true,
"_id": "5f5ed93a9669798c318eb6c7",
"displayName": "eSource"
},
"tenantId": "df7abg9c-c05a-4fc9-b958-64faered911d",
"createdAt": "2020-09-18T03:24:37.565Z",
"createdBy": {
"name": "Oliver Neal",
"username": "oliver@anadea.com",
"sourceId": "5083cb81-35f4-4abd-ba2d-e7b9965c1f89"
},
"updatedAt": "2020-09-18T03:24:37.584Z",
"teamId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2",
"channelId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2",
"groupId": "f87faa71-57a8-4c14-91f0-517f54645106",
"entityId": "eTask.30c4d651-af40-4739-f9a1-5da75d4fbb4b",
"sourceId": "5f6428754d596392f557ff37",
"statusId": {
"_id": "5f5ed9639669798c318eb767",
"category": "New"
},
"internalId": "000018",
"phaseName": "",
"bucketName": "",
"_duetimer": 1600966800000,
"estimation": 1987200000,
"overdue": false,
"title": "Appvity eTask",
"checked": false,
"complete": 0,
"completedDate": null
}
]

Response

Success

If successful, this method returns a 200 OK response code and collection of status update of each in the response body.

1
2
3
4
5
6
[
{
"_id": "5f6428a14d596392f557ff75",
"status": "success"
}
]

Error

Code: 401 UNAUTHORIZED, 500 ERROR EXCEPTION.

Content: {error: “error message”}

Example

Request

1
2
3
4
5
curl 'https://teams.appvity.com/api/bulk/task' \  
-H 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
-H 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
-H 'x-appvity-entityId: eTask.30c4d651-af40-4739-f9a1-5da75d4fbb4b' \
-H 'Cookie: graphNodeCookie=s%3AlaIrRjrQdBULLxHHgBM0ofupyqfGBmRf.4vy0SDHjNaJ9%2Fa3MeJbeIOQchnkP1NNAQTv9AViLawk' \

Response

No Content.

Comment

Was this article helpful?
Thanks For Your Feedback