Skip to content

Update event

PUT
/api/events/{id}

Update an event by id. Content-Type has to be multipart/form-data to support image upload.

Authorizations

bearerAuth

Bearer token using a JWT

Type
HTTP (Bearer)

Parameters

Path Parameters

id*

Id of the event to update.

Type
integer
Required
Example1

Request Body

application/json
JSON
{
  
"title": "Event title",
  
"description": "Event description",
  
"place_name": "Place name",
  
"place_address": "Place address",
  
"place_latitude": "Place latitude",
  
"place_longitude": "Place longitude",
  
"online_locations": [
  
  
[
  
  
  
"https://event.online",
  
  
  
"https://eventalt.online"
  
  
]
  
],
  
"start_datetime": 1784109600,
  
"multidate": true,
  
"tags": [
  
  
"string"
  
],
  
"recurrent": {
  
  
"frequency": "1w",
  
  
"type": "ordinal"
  
},
  
"recurrent.frequency": "1w",
  
"recurrent.days": [
  
  
[
  
  
  
1,
  
  
  
3
  
  
]
  
],
  
"image": "",
  
"image_url": "string"
}

Responses

Updated event.

application/json
JSON
{
  
"id": 1,
  
"slug": "event-slug",
  
"status": "EventScheduled",
  
"title": "Event title",
  
"media": [
  
  
{
  
  
  
"name": "Image name",
  
  
  
"url": "6e599b27-5ed8-44c9-b954-53e9c6fa3c80.jpg",
  
  
  
"height": 400,
  
  
  
"width": 200,
  
  
  
"size": 50000,
  
  
  
"focalpoint": [
  
  
  
  
[
  
  
  
  
  
0,
  
  
  
  
  
0
  
  
  
  
]
  
  
  
]
  
  
}
  
],
  
"start_datetime": 1784109600,
  
"end_datetime": 1784131200,
  
"place": {
  
  
"type": "string",
  
  
"properties": "string"
  
}
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI