PUT
/
organizations
/
{id}
/
members
/
{memberId}
/
roles
/
{roleId}
Add Member Role
curl --request PUT \
  --url https://{deploymentHost}/organizations/{id}/members/{memberId}/roles/{roleId}
{
  "status": 200,
  "message": "",
  "data": {
    "role_assigned": true,
    "member_id": "membership_123456789",
    "role": {
      "id": "role_manager",
      "name": "Manager",
      "permissions": [
        "organization:manage",
        "organization:read"
      ]
    },
    "assigned_at": "2024-01-15T19:30:00Z"
  },
  "session": {
    "signin_attempts": [],
    "signins": [
      {
        "id": "signin_987654321",
        "user_id": "user_456789123",
        "created_at": "2024-01-01T12:00:00Z"
      }
    ],
    "signup_attempts": [],
    "active_signin": {
      "id": "signin_987654321",
      "user_id": "user_456789123",
      "created_at": "2024-01-01T12:00:00Z"
    }
  },
  "errors": []
}

Authorizations

__session
string
cookie
required

Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.

Path Parameters

id
string
required

Organization ID

memberId
string
required

Member ID

roleId
string
required

Role ID to assign

Response

200
application/json

Role assigned successfully

The response is of type object.