Add Permission for User
Create a new user membership. Supply exactly one of company_uuid, division_uuid, or team_uuid, along with the desired membership_type (defaults to ‘member’).
Identifying the user — supply exactly one of:
user_id: integer PK of an existing user who already shares a team with the caller. Used when the caller has already discovered the user via the membership list endpoint.user_email: email of the user to add. The view does a case-insensitive lookup; if no match, a new inactive user is created. Optionally includefirst_nameandlast_nameto populate the new user record (ignored if the user already exists).
Note: user_email, first_name, and last_name are consumed by the view before reaching the serializer. They do not appear as serializer input fields.
Authorizations
Supports Token-prefixed API keys and Bearer-prefixed JWT-based authentication.
Body
UUID of the company the user belongs to.
UUID of the division the user belongs to.
Role of the user within the team, division, or company. Defaults to 'member'.
member- Memberadmin- Adminowner- Owner
member, admin, owner UUID of the team the user belongs to.
ID of the user. On create, supply either user_id (for an existing user) or user_email.
Response
True if this membership is a temporary override. While temporary memberships are active, the user's normal memberships are ignored.
Email address of the member. On create, supply user_email instead of user_id to add a user by email; if no account exists, one will be created. Optionally include first_name and last_name to populate the new account.
First name of the member.
Last name of the member.
UUID of this membership record.
UUID of the company the user belongs to.
UUID of the division the user belongs to.
Role of the user within the team, division, or company. Defaults to 'member'.
member- Memberadmin- Adminowner- Owner
member, admin, owner UUID of the team the user belongs to.
ID of the user. On create, supply either user_id (for an existing user) or user_email.