Events
API methods to manage Events

createEvent

post
https://cp.pushwoosh.com/json/1.3
/createEvent
/createEvent
1
{
2
"request": {
3
"auth":"yxoPUlwqm…………pIyEX4H", // API access token from Pushwoosh Control Panel
4
"application": "XXXXX-XXXXX", // Pushwoosh application code
5
"name": "BasketOpen", // 32 characters max. Event name.
6
"description": "Open basket page", // 64 characters max. Event description.
7
"eventAttributes": [ // Event attributes array
8
{
9
"type": 3, // Attribute type. Values: 1 - integer, 2 - string, 3 - list, 4 - date. 5 - boolean, 6 - price, 7 - version.
10
"name": "products" // 64 characters max. Attribute name
11
},
12
{
13
"type": 5,
14
"name": "delivery"
15
}
16
],
17
"trackRevenue": false // @see Track Event Revenue on https://www.pushwoosh.com/docs/events
18
}
19
}
Copied!
Response:
200
200
Event successfully created
200
210
Argument error. See status_message for more info
200
403
Permissions error (for example, when Events limit is exceeded)
200
404
Resource not found
400
N/A
Malformed request string
500
500
Internal error
Last modified 12d ago