Skip to main content

Patch Event

This endpoint patches a specific event.

info

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

note

You can use this endpoint to edit a single field passing only the id and the needed field (without mandatory fields).

For example to change only privacy or image_original fields.

HTTP Request

PATCH /api/v2/event/{id}/

Parameters

NameInTypeRequiredDescription
idpathintegertrueA unique integer value identifying this event
bodybodyEventtrueThe request body (event params)

Example Body Parameters

{
"image_original": "string"
}

Example Request

const inputBody = '{
"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: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeEvent