Skip to main content
POST
/
unavailable-events
/
create-unavailable-event
Create Unavailable Event
curl --request POST \
  --url http://localhost:3000/api/unavailable-events/create-unavailable-event \
  --header 'Content-Type: application/json' \
  --data '
{
  "date": 123,
  "startTime": 123,
  "endTime": 123,
  "artistId": "<string>",
  "title": "<string>"
}
'
{
  "success": true,
  "eventId": "<string>"
}

Body

application/json
date
number
required

Date timestamp

startTime
number
required

Start time timestamp

endTime
number
required

End time timestamp

artistId
string
required

ID of the artist

title
string

Optional title for the unavailable event

Response

Unavailable event created successfully

success
boolean
eventId
string