POST /accounts/{accountId}/users/{userId}
Add a user to an account
Adds a user to a specific account. The request must be made by an account admin of the specified account or a Super Admin.
Authentication Required
Authorization: Bearer {token}
header string This header is required to access this endpoint
Required Parameters
accountId
path string Unique identifier of the account
userId
path string ID of the user to add to the account
Request Body
{}{ "usersPrimaryAccount": false, "accountAdmin": false}Try it out
Loading...
Output:
Responses
Description
User successfully added to account
{ "message": "string"}Description
Bad Request - User already has a primary account
Description
Unauthorized - User not authenticated
Description
Forbidden - You are not an account admin or do not manage this user
Description
User not found
Description
Internal Server Error
Route Source Code
Check out the source code for this route entrypoint here: /accounts/[accountId]/users/[userId]/route.ts
Or the swagger.yaml spec this documentation was generated from:
/accounts/swagger.yaml