{"title":"attachment resource type (v1.0)","url":"https://jonas-paprotka.de/docs/dev-itpro/api-reference/v1.0/resources/dynamics_attachment/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v1.0/resources/dynamics_attachment","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"(v1.0) An attachment in Dynamics 365 Business Central.","date":"2024-05-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"attachment resource type (v1.0)","slug":"attachment-resource-type-v10","at":0,"chars":1490},{"level":2,"title":"Methods","slug":"methods","at":370,"chars":329},{"level":2,"title":"Properties","slug":"properties","at":699,"chars":292},{"level":2,"title":"Relationships","slug":"relationships","at":991,"chars":22},{"level":2,"title":"JSON representation","slug":"json-representation","at":1013,"chars":304},{"level":2,"title":"Related information","slug":"related-information","at":1317,"chars":173}],"text":"# attachment resource type (v1.0)\n> NEW VERSION This is v1.0 of the Business Central API. For the newest version, see Business Central API (V2.0)<../../v2.0>.\nRepresents an attachment object in Business Central.\n> NOTE\n> For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central<../enabling-apis-for-dynamics-nav>.\n## Methods\nMethod|Return Type|Description\n../api/dynamics_attachment_get|accounts|Get attachment object.\nPOST attachments<../api/dynamics_attachment_create>|accounts|Create attachment object.\n../api/dynamics_attachment_patch|accounts|Upload attachment object.\n../api/dynamics_attachment_delete|accounts|Delete attachment object.\n## Properties\nProperty|Type|Description\nid|GUID|Id of the attachment.\nparentId|GUID|Id of the entity for which the attachment will be associated.\nfileName|string|Logical filename.\nbyteSize|integer, read-only|File size.\nlastModifiedDateTime|datetime|The last datetime the entity was modified.\n## Relationships\nNone\n## JSON representation\nHere is a JSON representation of the resource.\n```json\n{\n    \"parentId\": \"GUID\",\n    \"id\": \"GUID\",\n    \"fileName\": \"string\",\n    \"byteSize\": \"integer\",\n    \"content@odata.mediaEditLink\": \"URL\",\n    \"content@odata.mediaReadLink\": \"URL\",\n    \"lastModifiedDateTime\": \"datetime\"\n}\n```\n## Related information\n../api/dynamics_attachment_get\n../api/dynamics_attachment_create\nUpload Attachment<../api/dynamics_attachment_patch>\n../api/dynamics_attachment_delete"}