Skip to main content
PATCH
Toggle the corporate flag on a booking

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Booking ID

Body

application/json

Corporate request containing the flag

is_corporate
boolean
required
dismiss_hint
boolean | null

Send true with is_corporate: false to dismiss the "Looks corporate" hint: the booking stays as it is and "not corporate" is recorded against the hint. Sending it with is_corporate: true is refused.

signals
enum<string>[]

The hint codes that were on screen when the hint was dismissed.

Available options:
company_on_file,
corporate_enquiry
source
enum<string> | null

What prompted the change. Leaving it out means manual.

Available options:
manual,
suggestion_accepted

Response

Successfully updated the corporate flag

data
object

The payload. Left out when there is none.

message
string

Text that is safe to show a user. Left out when there is none.

status
enum<string>

success or error. A 410 for a session that has ended says ended instead.

Available options:
success,
error,
ended