Edit

Share via


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

Method Return Type Description
GET attachments accounts Get attachment object.
POST attachments accounts Create attachment object.
PATCH attachments accounts Upload attachment object.
DELETE attachments accounts Delete attachment object.

Properties

Property Type Description
id GUID Id of the attachment.
parentId GUID Id of the entity for which the attachment will be associated.
fileName string Logical filename.
byteSize integer, read-only File size.
lastModifiedDateTime datetime The 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