Update a user's role


PATCH /api/user/:userId/role

Updates the role of the specified user.

Endpoint URL

https://<space_id>.repsona.com/api/user/:userId/role

Authorization

Owner Admin

Path parameters

NameTypeDescription
userId*stringUser ID

Body parameters

NameTypeDescription
role*enum (owner, admin, member, no-login)Role

Example responses

{
  "requestedBy": 1,
  "user": {
    "createdAt": 1672498800000,
    "updatedAt": 1672498800000,
    "id": 1746,
    "name": "Seb",
    "fullName": "Seb Osborn",
    "avatarUrl": "/dummy/avatar2.png",
    "billingStatus": "inactive",
    "role": "member",
    "extra": null,
    "space": 1,
    "language": 1,
    "timeZone": 100
  }
}

Human-centered, best team!

Repsona is an ideal work management tool for your team
Get started for free