PATCH /accounts/{accountId}/users/{userId}
Update user account data
Updates a user's relationship with 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 whose account data to update
Request Body
{}{ "usersPrimaryAccount": false, "accountAdmin": false}Try it out
Loading...
Output:
Responses
Description
User account data successfully updated
{ "message": "string"}Description
Bad Request - User already has a different primary account
Description
Unauthorized - User not authenticated
Description
Forbidden - You are not an account admin or do not manage this user
Description
User/account combination 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