CRM links

Добавить заметку в ленту записи

Changed on

Заметка пишется один раз и дальше не редактируется. Коллег упоминают через «@Имя» в тексте и их номера в mentioned_user_ids: каждый упомянутый получает уведомление crm_mention (ERP-1607). Не сотрудник кабинета — 422 crm.mention_not_member, больше 20 упомянутых — 400 crm.mention_too_many.

post/api/v1/crm/{entity}/{id}/notes

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

Headers

X-Tenant, string required

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

Request body

CRMNoteInput required
text, string required
mentioned_user_ids, integer[]

Упомянутые коллеги — номера сотрудников из GET /api/v1/crm/members. Засчитывается тот, чьё «@Имя» стоит в тексте заметки

Response

Запись ленты

CRMActivity required

Лента только дописывается

id, string uuid required
entity_type, 'lead' | 'deal' | 'customer' required
entity_id, string uuid required
action, string required

Ключ факта; note - заметка сотрудника

details, object nullable required

Подробности факта. У заметки: text - текст, mentions - упомянутые коллеги [{id, name}]

actor_id, integer required
actor_name, string
created_at, string date-time required

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

    7 more changes in this revision