Update the properties of the specified status in a channel1
2
3
4
5PATCH odata/eventDefinitions({id})
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
--data-raw: {Event-Object} |
odata/eventDefinitions({id})
PATCH.
Do not supply OData Filter syntax.
Header
1 | --x-appvity-channelId: [ChannelID] |
Body
In the request body, supply a JSON representation of event object. See Request Body in Create Event section.
If successful, this method returns a 204 No Content response code.
Request1
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
61curl --location --request PATCH 'https://teams.appvity.com/odata/eventDefinitions(5f6075704d596392f5422d3e)' \
--header 'x-appvity-channelId: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'x-appvity-teamid: 19:15c258785b4040699180e7a8ad6c6014@thread.tacv2' \
--header 'Cookie: graphNodeCookie=s%3AY_JF9CZQ9zNzJBFtczaMPEDH0z6q-GIu.gVlQqDR9nhJHdn%2BU083X4PuboTi6JCnSnz6vCGcs9qU' \
--data-raw '{
"tenantId": "df7abg9c-c05a-4fc9-b958-64faered911d",
"teamId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2",
"channelId": "19:15c258785b4040699180e7a8ad6c6014@thread.tacv2",
"entityType": "task",
"eventName": "Create a new task",
"enable": true,
"triggerType": "ITEM_CREATED",
"conditionsOps": "and",
"conditions": [
{
"ops": "and",
"conditions": [
{
"field": "name",
"ops": "Is",
"value": "A"
}
]
}
],
"actionType": "HTTP",
"action": {
"url": "http://appvity.com",
"method": "POST",
"headers": [],
"body": "No body conditions"
}
}'
204 No Content.
Comment