Mail messages
Привязать адресата к контрагенту
Changed onПривязывает адрес из книги к уже заведённому контрагенту справочника core или снимает привязку (contact_id равен null). Контрагент проверяется справочником: пропавший или архивный даёт 400. Контрагент из почты не заводится. Нужны право записи почты и право чтения справочника.
put/api/v1/mail/address-book/entries/{id}/contact
Request
- Base URLhttps://erp.akeda.ru
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://erp.akeda.ru/oauth2/authorizeToken URLhttps://erp.akeda.ru/oauth2/tokenScopesakeda:delegate
Path parameters
id, string uuid required
Headers
X-Tenant, string required
Slug выбранного кабинета; кабинет не является юрлицом
Request body
object required
contact_id, string uuid nullable required
Response
Запись после привязки
Mail Address Book Record 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
fieldto the response with the status - info
added the optional property
fieldto the response with the status - info
added the optional property
fieldto the response with the status
5 more changes in this revision
- info