Create booking activity
POST/v1/bookings/:bookId/activities
Add notes/activities to a booking that can be visible to different roles (operator, driver, passenger)
Supported roles
- Partner
- Fleet manager
Request
Path Parameters
bookId stringrequired
ID of booking
- application/json
Body
required
content stringrequired
The activity content/note
permission object
Visibility permissions for the activity. If not provided, defaults to all true.
operator boolean
Default value: true
Visible to operators
driver boolean
Default value: true
Visible to drivers
passenger boolean
Default value: true
Visible to passengers
Responses
- 200
- 400
- 401
- 404
Activity created successfully
- application/json
- Schema
- Example (from schema)
Schema
success boolean
activity object
id string
Activity ID
bookId string
Booking ID
content string
Activity content
createdDate date-time
Activity creation date
permission object
operator boolean
Visible to operators
driver boolean
Visible to drivers
passenger boolean
Visible to passengers
{
"success": true,
"activity": {
"id": "507f1f77bcf86cd799439011",
"bookId": "12345",
"content": "Driver called passenger to confirm pickup location",
"createdDate": "2025-10-15T10:30:00.000Z",
"permission": {
"operator": true,
"driver": true,
"passenger": true
}
}
}
Validation error
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "string"
}
Booking not found
- application/json
- Schema
- Example (from schema)
Schema
message string
{
"message": "string"
}
Loading...