# 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)<../../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<../enabling-apis-for-dynamics-nav>.
## Methods
Method|Return Type|Description
../api/dynamics_attachment_get|accounts|Get attachment object.
POST attachments<../api/dynamics_attachment_create>|accounts|Create attachment object.
../api/dynamics_attachment_patch|accounts|Upload attachment object.
../api/dynamics_attachment_delete|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.
```json
{
    "parentId": "GUID",
    "id": "GUID",
    "fileName": "string",
    "byteSize": "integer",
    "content@odata.mediaEditLink": "URL",
    "content@odata.mediaReadLink": "URL",
    "lastModifiedDateTime": "datetime"
}
```
## Related information
../api/dynamics_attachment_get
../api/dynamics_attachment_create
Upload Attachment<../api/dynamics_attachment_patch>
../api/dynamics_attachment_delete

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v1.0/resources/dynamics_attachment, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/api-reference/v1.0/resources/dynamics_attachment/
