Online Docs

Update Event

Update the properties of the specified status in a channel

1
2
3
4
5
PATCH odata/eventDefinitions({id})
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
--data-raw: {Event-Object} |

URL Endpoint

odata/eventDefinitions({id})

Method

PATCH.

Parameters

Do not supply OData Filter syntax.

Request

Header

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

Body

In the request body, supply a JSON representation of event object. See Request Body in Create Event section.

Response

If successful, this method returns a 204 No Content response code.

Example

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
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
curl --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"

}

}'

Response

204 No Content.

Comment

Was this article helpful?
Thanks For Your Feedback