Update Booking
Update a booking's information.
Endpoint
INFO
PUT /api/v1/dashboard/bookings/{booking}
Headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
booking | integer | Booking ID |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
end_date | string | No | New end datetime |
notes | string | No | Internal notes |
status | string | No | Update status |
Example Request
bash
curl -X PUT https://api.daakey.com/api/v1/dashboard/bookings/1 \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}" \
-d '{
"end_date": "2024-01-15T20:00:00Z",
"notes": "Extended by customer request"
}'Response
Success (200)
json
{
"success": true,
"message": "Booking updated",
"data": {
"id": 1,
"reference": "BK-2024-00001",
"end_date": "2024-01-15T20:00:00Z",
"notes": "Extended by customer request",
"pricing": {
"hours": 10,
"subtotal": 150.00,
"tax": 15.00,
"total": 365.00
},
"updated_at": "2024-01-15T12:00:00Z"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}Notes
- Extending a booking recalculates pricing
- Additional charges are applied if extending