Nurama Developers
Membership

Remove role from membership record

Requires `canRemoveMembershipRole`. Removing a parent role also strips its additive child roles.

POST
/memberships/remove-role

Requires canRemoveMembershipRole. Removing a parent role also strips its additive child roles.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/memberships/remove-role" \  -H "Content-Type: application/json" \  -d '{    "membershipId": "0192b3c4-5d6e-7f80-9a1b-2c3d4e5f6a7b"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",  "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",  "resourceType": "workspace",  "roles": [    "workspaceOwner"  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "resource": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "slug": "string",    "description": "string",    "logo": "3c06f846-1ab1-40a9-8645-a19a9fdeae85",    "icon": "bc9b3dc5-578a-4929-a13c-7d1a9725e2b0",    "color": "string",    "settings": {},    "roles": [      "string"    ],    "status": "active",    "createdAt": 1678886400000,    "updatedAt": 1678886400000  },  "user": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "firstName": "string",    "lastName": "string",    "displayName": "string",    "avatar": "01d8bd6c-6014-46aa-b5b1-14d337c9c779",    "color": "string",    "awards": [      "staff"    ],    "accountType": "standard"  }}