CRM links

Удалить файл карточки

Changed on

Открепляет файл от записи и удаляет его из хранилища; в ленте записи остаётся факт «файл удалён». Удалить может ответственный по записи или руководитель, чья роль открывает записи этого ответственного: все записи раздела или записи своего отдела и подчинённых. Остальным — 403 crm.card_file_forbidden. Вернуть удалённый файл нельзя.

delete/api/v1/crm/{entity}/{id}/files/{fileId}

Request

  • Base URL
    https://erp.akeda.ru
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://erp.akeda.ru/oauth2/authorize
      Token URLhttps://erp.akeda.ru/oauth2/token
      Scopesakeda:delegate

Path parameters

entity, 'lead' | 'deal' | 'customer' required

Тип записи CRM, у которой есть лента, заметки и дела: лид, сделка или клиент

id, string uuid required
fileId, string uuid required

Идентификатор файла карточки

Headers

X-Tenant, string required

Slug выбранного кабинета; кабинет не является юрлицом

Response

Файл удалён

Changes

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    • info

      added the optional property field to the response with the status

    5 more changes in this revision