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
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | integer | true | A unique integer value identifying this event |
body | body | Event | true | The request body (event params) |
Example Body Parameters
- JSON
{
"image_original": "string"
}
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X PATCH /api/v2/event/{id}/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json'
-H 'Authorization: Bearer {access_token}'
--DATA '{body}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Event |