200Successful Response
Schema: SuccessEnvelope_UpdateUserRoleInBusinessResponse_
successbooleanmessagestringcodestringdataUpdateUserRoleInBusinessResponse
/api/v1/businesses/users/{user_id}Change a user's access level and/or sidebar section visibility in this business.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
user_idstringrequiredSchema: BusinessUserRoleUpdateRequest
roleRolerequiredRoleRole: owner, admin, member, or viewer
visible_sectionsarray · stringSidebar section keys visible to this user for this business. null = all sections visible (default). Empty list = none visible. Opaque strings owned by the frontend; UI-level visibility only (not a data authorization control). Omit this field entirely to leave visibility unchanged.
Schema: SuccessEnvelope_UpdateUserRoleInBusinessResponse_
successbooleanmessagestringcodestringdataUpdateUserRoleInBusinessResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject