Skip to content

Events

Use the /events routes to list, create, update and delete events.

GET /events/
// GET /events/
{
"123456": {
"id": 123456,
"caption": "v1 Approved",
"date": "2016-07-15T14:08:41",
"origin": "User",
"details": null,
"products": [
"300400"
]
},
"123457": {
"id": 123457,
"caption": "v2 Approved",
"date": "2016-09-15T14:07:28",
"origin": "User",
"details": "V2 approved on this day. Info: [https://mysite.com/relevant/link]",
"products": [
"300400"
]
}
}
POST /events/
Argument Type Description
caption String The event’s caption.
date Date (yyyy-mm-dd) The event’s date.
details String Notes about the event.
products List An array of product IDs, or an array with the string all to apply the event to every product.

To tag specific products, pass their IDs instead of all (ex. [23433, 34343]).

// POST /events/
{
"caption":"Ad Campaign",
"date":"2016-12-21",
"products":[
"all"
]
}
// POST /events/
{
"id": 28961,
"caption": "Ad Campaign",
"date": "2016-12-21T00:00:00",
"origin": "API",
"details": "Better on Paper",
"products": [
"all"
]
}
PUT /events/{event_id}
Argument Type Description
caption String The event’s caption.
date Date (yyyy-mm-dd) The event’s date.
details String Notes about the event.
products List An array of product IDs, or an array with the string all to apply the event to every product.
// PUT /events/5438
{
"id": 543812,
"account_id": 32109,
"caption": "Changed Category",
"date": "2017-04-12T00:00:00",
"origin": "User",
"products": [
"300400"
]
}
DELETE /events/{event_id}
Argument Type Description
eventId String The ID of the event to delete.
// DELETE /events/5438
// HTTP 204