Timeoff
Create Request
API Documentation
Activity
- In-Game Tracking
- Users
- Sessions
- GETRetrieve Leaderboard
Order Logging
Staff
Workspace
- GETRetrieve a Workspace
- POSTUpdate a Workspace
- GETList Games
- POSTCreate Game
- DELDelete a Game
- GETList Roles
- POSTCreate a Role
- PUTUpdate Role
- DELDelete a Role
- GETList logbook templates
- GETRetrieve Logbook Template
- POSTCreate a Logbook Template
- PATCHUpdate a Logbook Template
- DELDelete a Logbook Template
- GETRetrieve GApps Config
- POSTSet GApps Service Account
- PATCHUpdate GApps Config
- DELDelete GApps Config
- GETGet Trello Config
- GETGet Trello boards
- POSTSet Trello board
- POSTSet Trello format
- DELDisconnect Trello board
- DELDelete Trello Config
- GETRetrieve Schedules
- POSTCreate a Schedule
- POSTUpdate a Schedule
Trello Integration
Bans (Invite Only)
Connections
Timeoff
Create Request
Create a timeoff request
POST
/
staff
/
timeoff
/
{workspaceId}
/
{staffId}
curl --request POST \
--url https://api.hyra.io/staff/timeoff/{workspaceId}/{staffId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>",
"type": "medical",
"other": "<string>"
}'
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>",
"type": "medical",
"status": "pending",
"other": "<string>",
"user": "<string>",
"workspace": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"_id": "<string>",
"state_changed_by": "<string>",
"requested_by": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
Default Response
The response is of type object
.
curl --request POST \
--url https://api.hyra.io/staff/timeoff/{workspaceId}/{staffId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>",
"type": "medical",
"other": "<string>"
}'
{
"start": "2023-11-07T05:31:56Z",
"end": "2023-11-07T05:31:56Z",
"notes": "<string>",
"type": "medical",
"status": "pending",
"other": "<string>",
"user": "<string>",
"workspace": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"_id": "<string>",
"state_changed_by": "<string>",
"requested_by": "<string>"
}