Attachment Object


Manage Contact Attachments

Properties
idstringRead-onlyformat GUID

Attachment ID.


previewImagePreviewImageRead-only

Details of the preview image reduced size when the attachment is of type IMAGE.


fileNamestringRead-only

Name of the attachment file.


mimeTypestringRead-only

Mime type of the attachment. See supported mime types (REST|SDK).


attachmentTypestringRead-only

Type of the attachment.


ONE OF:

imageImage

Image details when the attachment type is IMAGE.


documentDocument

Document details when the attachment type is OTHER.

ContactAttachment
JSON
{ "id": "ed707c00-27e8-11eb-ae1e-6dc6f7cc14d1", "mediaItem": { "document": { "id": "361c0d38e97a4d9691d7a3b6dfbde96b", "url": "https://www.wix.com/contacts-server/api/v1/metasite/fa9e5039-9ebb-4045-9724-706afa049542/513c1b1c-61b6-427d-a7f8-ceeedb1eb763/media/download/361c0d38e97a4d9691d7a3b6dfbde96b" } }, "fileName": "data.csv", "mimeType": "text/csv", "attachmentType": "OTHER" }
Did this help?