Skip to main content
POST
http://localhost:3000
/
role-assignments
curl -X POST 'https://api.example.com/role-assignments' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "roleId": "role_456",
    "membershipId": "mem_123"
  }'
{
  "id": "ra_789",
  "roleId": "role_456",
  "membershipId": "mem_123"
}

Request Body

roleId
string
required
The role ID to assign
membershipId
string
required
The membership ID to assign the role to

Response

Returns the created role assignment object.
curl -X POST 'https://api.example.com/role-assignments' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "roleId": "role_456",
    "membershipId": "mem_123"
  }'
{
  "id": "ra_789",
  "roleId": "role_456",
  "membershipId": "mem_123"
}