Mail messages

Привязать адресата к контрагенту

Changed on

Привязывает адрес из книги к уже заведённому контрагенту справочника core или снимает привязку (contact_id равен null). Контрагент проверяется справочником: пропавший или архивный даёт 400. Контрагент из почты не заводится. Нужны право записи почты и право чтения справочника.

put/api/v1/mail/address-book/entries/{id}/contact

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

id, string uuid required

Headers

X-Tenant, string required

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

Request body

object required
contact_id, string uuid nullable required

Response

Запись после привязки

MailAddressBookRecord required

Адресат из адресной книги почты

id, string uuid required
email, string required

Адрес строчными буквами, уникален в кабинете

name, string required
contact_id, string uuid nullable required
created_by, integer nullable required

Кто сохранил адресата

created_at, string date-time required
updated_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

    5 more changes in this revision