Skip to main content

Create an Event

This endpoint creates an event

info

This operation requires authentication.

HTTP Request

POST /api/v2/event/

Parameters

NameInTypeRequiredDescription
bodybodyEventtrueThe request body (event params)

Example Body Parameters

{
"name": "string",
"privacy": "string",
"start_date": "string",
"recurring": "string",
"location": "string",
"invite_users": [integer],
"image_original": "string"
}

Example Request

const inputBody = '{
"name": "string",
"privacy": "string",
"start_date": "string",
"recurring": "string",
"location": "string",
"invite_users": [integer],
"image_original": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/event/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
201CreatedResponse status codeEvent