workspaces

Change a member role

Change a member’s role. Owner/admin only; only an owner can grant or remove the owner role, nobody can raise their own role, and the last owner cannot be demoted (409 last_owner).

patch/v1/workspaces/{id}/members/{userId}

Request

  • Base URL: https://api.hyperresearch.ai
  • URL: https://api.hyperresearch.ai/v1/workspaces/{id}/members/{userId}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie hr_session

Path parameters

idstring required
userIdstring required

Request body

role'owner' | 'admin' | 'member' required

Response

Updated

user_idstring required
emailstring required
role'owner' | 'admin' | 'member' required
created_atstring required
updated_atstring required
is_selfboolean required

Changes

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