Allows you to update Attachment on invoices or purchase bills by it's filename

POST {{baseUrl}}/Invoices/:InvoiceID/Attachments/:FileName

Request Body

["<", "b", "y", "t", "e", ">"]

HEADERS

KeyDatatypeRequiredDescription
xero-tenant-idstring(Required) Xero identifier for Tenant
Content-Typestring

RESPONSES

status: OK

{&quot;Id&quot;:&quot;acd7d618-5fef-4d45-849c-a339ea31a973&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1552330524005)/&quot;,&quot;Attachments&quot;:[{&quot;AttachmentID&quot;:&quot;08085449-fda3-45f4-a685-ff44c8a29ee3&quot;,&quot;FileName&quot;:&quot;HelloWorld.jpg&quot;,&quot;Url&quot;:&quot;https://api.xero.com/api.xro/2.0/Invoices/4074292c-09b3-456d-84e7-add864c6c39b/Attachments/HelloWorld.jpg&quot;,&quot;MimeType&quot;:&quot;image/jpg&quot;,&quot;ContentLength&quot;:2878711}]}