v1

latestOpenAPI 3.0.02026-08-04265791.1 MB
Events

Create

You may create a new single or multiple events using this action. When creating a single event object the body contains a json object, when creating multiple events objects the body contains an array of objects.
Warning: a maximum of 1000 items can be sent in a single request.

post/public/api/events

Headers

Acceptstring

e.g. application/json

Request body

titlestring
descriptionstring
start_datestring
end_datestring
event_typestring
group_idsstring[]
imagesstring[]
event_categorystring
store_idstring

Example request

{
  "title": "EVENT 1",
  "description": "<div>This is my new description 1</div>",
  "start_date": "2022-05-29T08:00:00.000Z",
  "end_date": "2022-05-29T13:00:00.000Z",
  "event_type": "public",
  "group_ids": [
    "documentation_admin",
    "documentation_stores"
  ],
  "images": [
    "test.jpg"
  ],
  "event_category": "EVENTCATEGORY1",
  "store_id": "5f3e4be0c920a5003b57bbec"
}

Response

OK