Update user role
PUT
/api/v1/businesses/users/{user_id}
Change a user's access level in this business.
Authentication
Bearer token authentication. Pass your DayZero API token in the
Authorization header and the
target business UUID in
x-business-id.
Parameters
Path
-
user_idstring required
Request body
Schema: BusinessUserRoleUpdateRequest
-
roleRole requiredRole -
Role: owner, admin, member, or viewer
Responses
400 Bad Request - Invalid input
401 Unauthorized - Authentication required
403 Forbidden - Insufficient permissions
404 Not Found - Resource does not exist
422 Validation Error
Schema: HTTPValidationError
-
detailarray · ValidationError ValidationError -
5 fields
-
locarray · string | integer required -
msgstring required -
typestring required -
inputobject -
ctxobject
-