v1

latestOpenAPI 3.0.32026-08-0613775357.6 KB
expense items

Update expense item

Updates an existing expense item.

put/users/{user_id}/expense_items/{expense_item_id}

Path parameters

user_idinteger required

The ID of the user.

expense_item_idinteger required

The ID of the expense item.

Request body

datestring date required

The updated date the expense was reported. (Required to overwrite)

amountnumber required

The updated amount of the expense. (Required to overwrite)

categorystring nullable

The category of the expense.

notesstring nullable

Notes for the expense item.

Example request

{
  "date": "2055-04-09",
  "amount": 555,
  "category": "Travel",
  "notes": "Updated notes for client meeting."
}

Response

The expense item was updated successfully.

expense_item_idinteger

Unique identifier for the expense item.

assignable_idinteger required

ID of the item being assigned.

assignable_type'Project' | 'LeaveType' | 'Phase'

The type of the assignable item.

user_idinteger required

ID of the user to whom the item is assigned.

amountnumber float required

The assigned amount.

datestring date required

The date of the expense item.

categorystring nullable

The category of the expense item. Can be null.

notesstring nullable

Additional notes for the expense item.

created_atstring date-time

Timestamp when the expense item was created.

updated_atstring date-time

Timestamp when the expense item was last updated.

Example response

{
  "expense_item_id": 1,
  "assignable_id": 32,
  "assignable_type": "Project",
  "user_id": 2,
  "amount": 10,
  "date": "2015-04-09",
  "notes": "Testing exp",
  "created_at": "2015-04-09T21:54:13Z",
  "updated_at": "2015-04-09T21:54:13Z"
}