Creates a new state for the eSource in a specific channel.
Note: Planner, Azure DevOps, and Jira source cannot be used to the newly generated status until it is mapped to the corresponding state from the source.1
2
3
4
5POST odata/status
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
--data-raw: {StatusObject}
odata/status
POST.
Do not supply OData Filter syntax.
Header
1 | --x-appvity-channelId: [ChannelID] |
Body
In the request body, supply a JSON representation of Status object.
If successful, this method returns 201 Created response code and status object in the response body.
Code: 400 Bad Request.
1 | { |
Request
Here is an example of the request.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
31curl --location --request POST 'https://teams.appvity.com/odata/status' \
--header 'x-appvity-channelId:
19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2'
\
--header 'Cookie:
graphNodeCookie=s%3AMpKXEvYTIRehispfYing8S-UZDmeZUac.eiaEBf3drVuQEY3UqTZv7nQ8Qmz4egC2HRzPxbwwmuc'
\
--data-raw '{
"name": "B",
"color": "#f3ff7f",
"category": "Active",
"description": "thuy",
"primary": false,
"order": 5,
"value": 5,
"type": "Task"
}'
Response
Here is an example of the response.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{
"@odata.context":
"https://schema.appvity.com/odata/$metadata#status/$entity",
"@odata.editLink":
"https://schema.appvity.com/odata/status('5f6d53734d596392f5910bfb')",
"@odata.id":
"https://schema.appvity.com/odata/status('5f6d53734d596392f5910bfb')",
"name": "B",
"color": "#f3ff7f",
"category": "Active",
"description": "thuy",
"primary": false,
"order": 5,
"value": 5,
"type": "Task",
"createdAt": "2020-09-25T02:18:27.642Z",
"updatedAt": "2020-09-25T02:18:27.642Z",
"_id": "5f6d53734d596392f5910bfb"
}
Comment