Policy GroupsRemove a user from a group

Remove a user from a group

Deletes a membership (membershipId from GET /users/:userId/policy-groups or GET /policy-groups/:id). The user loses the group's policies immediately; keep default-deny in mind: without allow policies, actions will be forbidden.

curl -X DELETE "https://policy-engine-rest.ezig.workers.dev/api/v1/policy-groups/example_string/members/example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "deleted": true
}
DELETE
/api/v1/policy-groups/{id}/members/{membershipId}
DELETE
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

path
idstring
Required

Group id (cuid)

path
membershipIdstring
Required

Membership id (cuid)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

idstring
Required

Group id (cuid)

membershipIdstring
Required

Membership id (cuid)

Responses

deletedboolean
Required