Sign in

Update attachment

documented

Update an attachment.

PUT /Attachments/{AttachmentID}Attachmentsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.xero.com/api.xro/2.0/Invoices/{{$InvoiceID}}/Attachments/{{$FileName}}" \
  -X PUT \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "xero-tenant-id: {{XERO_TENANT_ID}}" \
  -H "Accept: application/json" \
  -H "Content-Type: {{$MimeType}}" \
  -H "Idempotency-Key: {{IDEMPOTENCY_KEY}}" \
  --data-binary "@{{$PathToAttachment}}"