Events
Create
Changed onYou 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
Request
- Base URLhttps://<base_url>
- AuthHTTP bearer
Headers
Acceptstring
e.g. application/json
Request body
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"
],
"category": "EVENTCATEGORY1",
"store_id": "5f3e4be0c920a5003b57bbec"
}Response
OK
Example response
[
{
"event_id": "5f3e4be0c920a5003b57bbed",
"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": [
"test1.jpg"
],
"total_users": 100,
"virtual_event_link": "https://www.google.com",
"address": "1234, 5th Avenue, New York",
"category": "EVENTCATEGORY1",
"store_id": "5f3e4be0c920a5003b57bbec"
},
{
"event_id": "5f3e4be0c920a5003b57bbdd",
"title": "EVENT 2",
"description": "<div>This is my new description 2</div>",
"start_date": "2022-05-29T08:00:00.000Z",
"end_date": "2022-05-29T13:00:00.000Z",
"event_type": "private",
"user_ids": [
"5f3e4be0c920a5003b52bbec",
"5f3e4be0c920a5002b57bced"
],
"total_users": 2,
"images": [
"test2.jpg"
],
"category": "EVENTCATEGORY2",
"store_id": "5f3e4be0c920a5003b57bbec"
}
]Changes
- breaking
removed the media type
*/*for the response with the status - info
added the media type
application/jsonfor the response with the status
- breaking
- info
the endpoint scheme security
oauth2was removed from the API
- info