attachment resource type (v1.0)

NEW VERSION This is v1.0 of the Business Central API. For the newest version, see Business Central API (V2.0).

Represents an attachment object in Business Central.

Note


For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central.

Methods

MethodReturn TypeDescription
GET attachmentsaccountsGet attachment object.
POST attachmentsaccountsCreate attachment object.
PATCH attachmentsaccountsUpload attachment object.
DELETE attachmentsaccountsDelete attachment object.

Properties

PropertyTypeDescription
idGUIDId of the attachment.
parentIdGUIDId of the entity for which the attachment will be associated.
fileNamestringLogical filename.
byteSizeinteger, read-onlyFile size.
lastModifiedDateTimedatetimeThe last datetime the entity was modified.

Relationships

None

JSON representation

Here is a JSON representation of the resource.

{
    "parentId": "GUID",
    "id": "GUID",
    "fileName": "string",
    "byteSize": "integer",
    "content@odata.mediaEditLink": "URL",
    "content@odata.mediaReadLink": "URL",
    "lastModifiedDateTime": "datetime"
}

Get Attachments
Create Attachment
Upload Attachment
Delete Attachment