Mail messages

Сохранить адресата в адресную книгу почты

Changed on

«Сохранить в контакты» из окна письма. Адрес уникален в кабинете без учёта регистра: повтор того же адреса возвращает прежнюю запись с created равным false и кодом 200, имя прежней записи не меняется. Контрагент при этом не заводится.

post/api/v1/mail/address-book/entries

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

Headers

X-Tenant, string required

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

Request body

object required
email, string required

Почтовый адрес; можно в виде «Имя <адрес>»

name, string

Имя адресата

Response

Адрес уже был в книге

MailSavedAddress required
entry, MailAddressBookRecord required

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

created, boolean required

true — сохранён сейчас, false — адрес уже был в книге

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

    3 more changes in this revision