Update organization user
PUT
/api/v1/gen_organizations/users
Update an existing user in an organization with a specific role.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” organization_id
required
Organization Id
string
Request Body required
Section titled “Request Body required ” UserOrganizationRequest
object
username_or_email
required
Username Or Email
Username or email of the user to add/update
string
role
required
Role
Role of the user in the organization
string
Example
viewerResponses
Section titled “ Responses ”Successful Response
BooleanResponse
Simple response returning a single boolean success status.
object
success
required
Success
Success status of the operation
boolean
Bad Request
Forbidden: You cannot update your own role, or the role of the owner, or remove yourself from the organization.
Not Found: User not found, or user is not a member of this organization.
Unprocessable Content: Validation error (e.g., invalid parameters).
Internal Server Error