Create an Event

Create an Event object

Parameter

Accessible via URL https://api.channel.io/open/v4/users/{userId}/events and HTTP POST

๐Ÿ“˜

Present parameters in POST body. This method accepts application/json

ParameterExampleRequiredDescriptionParameter type
userId5ec3a01fe2b3f4d2cbc5RequiredID of UserPath

Example

POST https://api.channel.io/open/v4/users/5ec3a01fe2b3f4d2cbc5/events

Your POST request body should look like

{
  "name": "string",
  "property": {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  } 
}

Response

Returns a newly created Event object.

```json
{
  "event": {
    "userId": "string",
    "id": "string",
    "channelId": "string",
    "name": "string",
    "property": {
      "additionalProp1": {},
      "additionalProp2": {},
      "additionalProp3": {}
    },
    "createdAt": 1624414650058,
    "expireAt": 1624414650058,
    "version": 0
  }
}