Add user to business
POST
/api/v1/businesses/users
Grant a user access to this business with a specified role.
Authentication
Bearer token authentication. Pass your DayZero API token in the
Authorization header and the
target business UUID in
x-business-id.
Request body
Schema: BusinessUserAddRequest
-
idstring required -
UUID of the user to add.
-
roleRole -
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
409 Conflict - Resource already exists
422 Validation Error
Schema: HTTPValidationError
-
detailarray · ValidationError ValidationError -
5 fields
-
locarray · string | integer required -
msgstring required -
typestring required -
inputobject -
ctxobject
-