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

Body

application/json
id
string
required

ID of the unavailable event to edit

title
string
required

Title for the unavailable event

date
number
required

Date timestamp

startTime
number
required

Start time timestamp

endTime
number
required

End time timestamp (must be after start time)

Response

Unavailable event updated successfully

success
boolean
required

Whether the operation was successful

message
string
required

Success message