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
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
{
"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/{id}/',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X PUT /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 |