Upload or replace an actual expense's receipt image
PUT/expenses/receipts/:id
Stores the image as the receipt of actual expense {id} and answers the expense with its
new document_id. A receipt already there is
replaced. Same permission and 409 invoiced rule as editing the expense.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
The actual expense, with document_id set
Missing, invalid or expired token, or no contact matches it.
Authenticated, but not allowed.
Unknown route, or the resource is missing or in the trash; message names what was
looked for (task, note, payment_receipt, expense…). On an expenses route,
message: "expenses" means the plugin is not active.
The request conflicts with the current state. code says how:
idempotency_key_reuse / request_in_progress (the Idempotency-Key header),
invoiced (an expense or time entry on an invoice cannot change), already_paused,
not_paused, not_running (the timer), deleted.
details.file: required, too_large, extension_not_allowed.