Удалить RoleBinding
DELETE
bearerheader
AuthorizationBearer <token>Токен сервисного аккаунта. См. раздел «Аутентификация».
binding_id*numberТело ответа
responseapplication/json
organization_id*numberid*numbersubject_type*stringЗначения
"user""organization""group"subject_id*number | nullscope_type*stringЗначения
"system""template""group""statistics""organization""unit""entity""project"scope_id*number | nullВозможные ошибки
401Unauthorized
unauthorized: Необходима авторизация
{ "statusCode": 401, "error": "unauthorized", "message": "Необходима авторизация"}403Forbidden
access_denied: Недостаточно прав
{ "statusCode": 403, "error": "access_denied", "message": "Недостаточно прав"}404Not Found
role_binding_not_found: Роль не найдена
{ "statusCode": 404, "error": "role_binding_not_found", "message": "Роль не найдена"}409Conflict
last_organization_owner: У организации должен остаться хотя бы один владелец: сначала назначьте нового
{ "statusCode": 409, "error": "last_organization_owner", "message": "У организации должен остаться хотя бы один владелец: сначала назначьте нового"}curl -X DELETE 'https://org.inspecto.in/api/roles/bindings/0'Пример ответа
{ "subject": { "id": 0, "email": "string", "phone": "string", "first_name": "string", "last_name": "string", "patronymic": "string", "birthday": "2019-08-24T14:15:22Z", "gender": 0, "avatar": "string", "created_at": "2019-08-24T14:15:22Z" }, "scope": { "id": 0, "slug": "string", "domain": "string", "title": "string", "avatar": "string" }, "organization_id": 0, "id": 0, "role": { "id": "system.admin", "title": "string", "description": "string", "category": "string", "scopes": [ "string" ] }, "subject_type": "user", "subject_id": 0, "scope_type": "system", "scope_id": 0}