Skip to main content
POST
/
resource-planner
/
time-off-types
Create Time Off Type
curl --request POST \
  --url https://api.everhour.com/resource-planner/time-off-types \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "name": "Sick",
  "color": "#4babe5",
  "paid": true,
  "description": "some notes"
}
'
{
  "id": 876534,
  "name": "Sick",
  "color": "#4babe5",
  "paid": true,
  "description": "some notes"
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
name
string
Example:

"Sick"

color
string
Example:

"#4babe5"

paid
boolean
Example:

true

description
string
Example:

"some notes"

Response

Created

id
number
Example:

876534

name
string
Example:

"Sick"

color
string
Example:

"#4babe5"

paid
boolean
Example:

true

description
string
Example:

"some notes"