v1
latestOpenAPI 3.0.32026-08-0613775357.6 KBexpense items
Create expense item
Creates a new expense item for a user.
post/users/{user_id}/expense_items
Path parameters
user_idinteger required
The ID of the user.
Request body
Example request
{
"date": "2015-04-09",
"amount": 10,
"project_id": 32,
"leave_type_id": 32,
"assignable_id": 32,
"notes": "Testing exp"
}Response
The expense item was created successfully.
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"
}