Skip to main content

Update an Event

This endpoint updates a specific event.

info

This operation requires authentication and that the user is the manager of the event.

HTTP Request

PUT /api/v2/event/{id}/

Parameters

NameInTypeRequiredDescription
idpathintegertrueA unique integer value identifying this event
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/{id}/',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeEvent