Skip to main content
POST
/
auth
/
organization
/
update-member-role
Update Organization Member Role
curl --request POST \
  --url https://cloud.kaneo.app/api/auth/organization/update-member-role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role": "<string>",
  "memberId": "<string>",
  "organizationId": "<string>"
}
'
{
  "member": {
    "id": "<string>",
    "userId": "<string>",
    "organizationId": "<string>",
    "role": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
role
string
required

The new role to be applied. This can be a string or array of strings representing the roles. Eg: ["admin", "sale"]

memberId
string
required

The member id to apply the role update to. Eg: "member-id"

organizationId
string | null

An optional organization ID which the member is a part of to apply the role update. If not provided, you must provide session headers to get the active organization. Eg: "organization-id"

Response

Success

member
object
required