Set last-selected business

PUT/api/v1/users/me/last-business

Persist the authenticated user's last-selected business and optional firm ID.

Operation ID: set_last_business_api_v1_users_me_last_business_put·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

business_idstringrequired

Business UUID to persist as last-selected.

firm_idstring

Firm UUID to persist alongside.

Responses

200Successful Response

successboolean
messagestring
codestring
dataLastBusinessResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject