Skip to main content
POST
/
expenses
/
categories
Create Category
curl --request POST \
  --url https://api.everhour.com/expenses/categories \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "color": "#92dfb5",
  "name": "Mileage",
  "unitBased": true,
  "unitName": "Miles",
  "unitPrice": 134
}
'
{
  "color": "#92dfb5",
  "id": 236046,
  "name": "Mileage",
  "unitBased": true,
  "unitName": "Miles",
  "unitPrice": 134
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
color
string
Example:

"#92dfb5"

name
string
Example:

"Mileage"

unitBased
boolean
Example:

true

unitName
string
Example:

"Miles"

unitPrice
number
Example:

134

Response

Created

color
string
Example:

"#92dfb5"

id
number
Example:

236046

name
string
Example:

"Mileage"

unitBased
boolean
Example:

true

unitName
string
Example:

"Miles"

unitPrice
number
Example:

134