Skip to main content
POST
/
bookings
/
edit-booking
Edit Booking
curl --request POST \
  --url http://localhost:3000/api/bookings/edit-booking \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "dateTimestamp": 123,
  "startTime": 123,
  "endTime": 123,
  "location": {
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "latitude": 123,
    "longitude": 123
  },
  "sessionType": "CONSULTATION",
  "sessionNumber": 123,
  "sessionPrice": "<string>",
  "sessionDepositFee": "<string>"
}
'
{
  "success": true
}
This is for editing a session within a booking.

Body

application/json
id
string
required

ID of the booking to edit

dateTimestamp
number
required

Timestamp for the session date

startTime
number
required

Session start time timestamp

endTime
number
required

Session end time timestamp

location
object
required

Location details for the session

sessionType
enum<string>
required

Type of session

Available options:
CONSULTATION,
TATTOO
sessionNumber
number
required

Number of the session being edited

sessionPrice
string

Price for the session

sessionDepositFee
string

Deposit fee for the session

Response

200 - application/json

Booking edited successfully

success
boolean
required

Whether the operation was successful