Skip to main content
GET
/
allocations
Get All Allocations
curl --request GET \
  --url https://api.everhour.com/allocations \
  --header 'X-Api-Key: <api-key>'
[
  {
    "id": 876534,
    "startDate": "2019-01-01",
    "endDate": "2019-12-31",
    "contractStartDate": "2019-03-01",
    "user": 79786,
    "timeOffType": 16539,
    "days": 24,
    "daysCarried": 24,
    "daysAllocated": 6.2,
    "daysUsed": 8,
    "accrualFrequency": "daily",
    "restrictOverAllocation": false,
    "completed": false,
    "notes": "some notes",
    "createdBy": 79562,
    "createdAt": "2018-06-01"
  }
]

Authorizations

X-Api-Key
string
header
required

Response

OK

id
number
Example:

876534

startDate
string
Example:

"2019-01-01"

endDate
string
Example:

"2019-12-31"

contractStartDate
string
Example:

"2019-03-01"

user
number
Example:

79786

timeOffType
number
Example:

16539

days
number
Example:

24

daysCarried
number
Example:

24

daysAllocated
number
Example:

6.2

daysUsed
number
Example:

8

accrualFrequency
enum<string>
Available options:
daily,
immediately
Example:

"daily"

restrictOverAllocation
boolean
Example:

false

completed
boolean
Example:

false

notes
string
Example:

"some notes"

createdBy
number
Example:

79562

createdAt
string
Example:

"2018-06-01"