Skip to main content

Update Event

Update the properties of the specified status in a channel

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

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

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.