Organizations

Update user roles in organization

Update the roles assigned to a user in a specific organization. Requires ORGANIZATION_SETTINGS_ASSIGN_ROLE_TO_USER permission.

put/api/v1/organizations/{organizationId}/users

Request

  • Base URL: https://api-sandbox.koywe.com
  • URL: https://api-sandbox.koywe.com/api/v1/organizations/{organizationId}/users
  • Auth: HTTP bearer

Path parameters

organizationIdstring required
Example:org_abc123

Organization identifier

Request body

userIdstring required

User ID

rolesIdsstring[] required

Array of role IDs to assign to the user in the organization

Example request

{
  "userId": "k3u_abc123",
  "rolesIds": [
    "k3r_admin"
  ]
}

Response

User organization roles updated successfully

successboolean required

Whether the operation was successful

messagestring

Optional message providing more details about the operation

Example response

{
  "success": true,
  "message": "User organization roles updated successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.