Create an Event
This endpoint creates an event
info
This operation requires authentication.
HTTP Request
POST /api/v2/event/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | Event | true | The request body (event params) |
Example Body Parameters
- JSON
{
"name": "string",
"privacy": "string",
"start_date": "string",
"recurring": "string",
"location": "string",
"invite_users": [integer],
"image_original": "string"
}
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X POST /api/v2/event/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json'
-H 'Authorization: Bearer {access_token}'
--DATA '{body}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
201 | Created | Response status code | Event |