v1

latestOpenAPI 3.0.02026-08-068926279.2 KB
Expenses

Update an expense

Updates an existing expense

put/expenses/{id}

Path parameters

idinteger required

Expense ID

Request body

datestring date
amountnumber
vendorstring
descriptionstring
expense_category_idinteger
project_idinteger
client_idinteger
status'unbilled' | 'billed'

Response

Expense updated

idinteger
team_idinteger
project_idinteger nullable
client_idinteger nullable
category_idinteger nullable
amountnumber
vendorstring
descriptionstring nullable
status'unbilled' | 'billed'
datestring date
date_formattedstring
created_atstring date-time

Example response

{
  "id": 1,
  "team_id": 1,
  "project_id": 1,
  "client_id": 1,
  "category_id": 1,
  "amount": 125.5,
  "vendor": "Office Supplies Co",
  "description": "Printer paper and ink",
  "status": "unbilled",
  "date": "2024-01-15",
  "date_formatted": "01/15/24"
}