Accounting
Updates a specific attachment for a specific purchase order by filename
post/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}
Request
- Base URLhttps://api.xero.com/api.xro/2.0
- URLhttps://api.xero.com/api.xro/2.0/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}
- AuthOAuth 2Authorization code: https://login.xero.com/identity/connect/authorizeToken URL: https://identity.xero.com/connect/token scopes: accounting.attachments
Path parameters
PurchaseOrderIDstring uuid required
Unique identifier for an Purchase Order
FileNamestring required
Name of the attachment
Headers
Idempotency-Keystring
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
Request body application/octet-stream
string byte required
Response
Success - return response of type Attachments array of Attachment
Example response
{
"Attachments": [
{
"AttachmentID": "00000000-0000-0000-0000-000000000000",
"FileName": "xero-dev.jpg",
"Url": "https://api.xero.com/api.xro/2.0/Accounts/da962997-a8bd-4dff-9616-01cdc199283f/Attachments/sample5.jpg",
"MimeType": "image/jpg"
}
]
}Changes
No recorded changes to this operation across all 62 revisions of this API.