Отвязать справочник от юнита
DELETE
bearerheader
AuthorizationBearer <token>Токен сервисного аккаунта. См. раздел «Аутентификация».
unit_id*numberentity_id*numberТело ответа
responseapplication/json
organization_id*numberid*numbercode*stringtitle*stringdescription*string | nullcreated_at*stringФормат
date-timeupdated_at*stringФормат
date-timedata*EntityDataDtoВозможные ошибки
401Unauthorized
unauthorized: Необходима авторизация
{ "statusCode": 401, "error": "unauthorized", "message": "Необходима авторизация"}403Forbidden
access_denied: Недостаточно прав
{ "statusCode": 403, "error": "access_denied", "message": "Недостаточно прав"}404Not Found
unit_not_found: Юнит не найден
{ "statusCode": 404, "error": "unit_not_found", "message": "Юнит не найден"}curl -X DELETE 'https://org.inspecto.in/api/units/0/entities/0'Пример ответа
{ "organization_id": 0, "id": 0, "code": "string", "title": "string", "description": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "data": {}, "fields": [ { "id": 0, "code": "string", "title": "string", "type": "string", "is_required": true, "relation_entity": { "organization_id": 0, "id": 0, "code": "string", "title": "string", "description": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }, "data": {}, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ]}