Policy GroupsУбрать пользователя из группы

Убрать пользователя из группы

Удаляет членство (membershipId — из GET /users/:userId/policy-groups или GET /policy-groups/:id). Пользователь теряет политики группы немедленно; помни про default-deny — без allow-политик действия будут запрещены.

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

better-auth session token. Мобилка/сервисы. Веб использует cookie.

better-auth session token. Мобилка/сервисы. Веб использует cookie.
API Key (cookie: better-auth.session_token)
path
idstring
Required

id группы (cuid)

path
membershipIdstring
Required

id членства (cuid)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. better-auth session token. Мобилка/сервисы. Веб использует cookie.

path
parameterstring
Required

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

Path Parameters

idstring
Required

id группы (cuid)

membershipIdstring
Required

id членства (cuid)

Responses

deletedboolean
Required