Skip to main content
PUT
/
expenses
/
{expense_id}
Update Expense
curl --request PUT \
  --url https://api.everhour.com/expenses/{expense_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "category": 236046,
  "date": "2019-04-04",
  "amount": 2278,
  "attachments": [
    123
  ],
  "billable": true,
  "details": "Transportation notes",
  "project": "as:333045610521453",
  "quantity": 17,
  "user": 6
}
'
{
  "amount": 2278,
  "attachments": [
    {
      "id": 514,
      "name": "avatar.jpg",
      "token": "9a04b8a1fb99cbfadf3386ad6a338c14"
    }
  ],
  "billable": true,
  "category": 236046,
  "date": "2019-04-04",
  "details": "Transportation notes",
  "id": 234718,
  "project": "as:333045610521453",
  "quantity": 17,
  "user": 6
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

expense_id
number
required

Expense ID

Example:

7810

Body

application/json
category
number
required

Expense category ID

Example:

236046

date
string
required
Example:

"2019-04-04"

amount
number
Example:

2278

attachments
number[]
billable
boolean
Example:

true

details
string
Example:

"Transportation notes"

project
string
Example:

"as:333045610521453"

quantity
number
Example:

17

user
number
Example:

6

Response

OK

amount
number
Example:

2278

attachments
object[]
billable
boolean
Example:

true

category
number
Example:

236046

date
string
Example:

"2019-04-04"

details
string
Example:

"Transportation notes"

id
number
Example:

234718

project
string
Example:

"as:333045610521453"

quantity
number
Example:

17

user
number
Example:

6