Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Update the attachment in Business Central.
HTTP request (v1.0)
Replace the URL prefix for Business Central depending on environment following the guideline.
PATCH businesscentralPrefix/companies({companyId})/attachments(parentId={parentId},id={attachmentId})/content
Request headers (v1.0)
| Header | Value | 
|---|---|
| Authorization | Bearer {token}. Required. | 
| Content-Type | application/json | 
| If-Match | application/json | 
Example (v1.0)
Request Here is an example of the request.
PATCH https://{businesscentralPrefix}/api/v1.0/companies({companyId})/attachments(parentId={parentId},id={attachmentId})/content
Request body Request body contains the attachment.
Response
If successful, this method returns 204 No Content response code. It does not return anything in the response body.
Related information
Tips for working with the APIs
Attachment
Get Attachments
Create Attachment
Upload Attachment
Delete Attachment