v1

latestOpenAPI 3.1.1LicenseRef-Proprietary2026-07-1310179223.1 KB
Expenses

Add Attachment To Expense

Attach a previously uploaded file (by its token from POST /attachments) to an existing expense.

post/expenses/{expense_id}/attachments

Path parameters

expense_idnumber required
Example:7810

Expense ID

Request body

namestring required
contentstring required

Base64 file content. Only jpg, png and pdf supported

type'assignment' | 'task' | 'user' | 'expense'

Object the attachment is linked to. Defaults to expense.

Example request

{
  "name": "avatar.jpg",
  "type": "expense"
}

Response

Created

idnumber
namestring
tokenstring

Example response

{
  "id": 514,
  "name": "avatar.jpg",
  "token": "9a04b8a1fb99cbfadf3386ad6a338c14"
}