Easyteam Embedded
GuidesAPIWhite-Label UIs
GuidesAPIWhite-Label UIs
  1. Requests and Approval
  • Getting started
    • Authentication
      • Authentication Quick Start
      • Exchange Token
    • Permissions
      • Create Access Role
      • List Access Roles
      • Get Access Role
      • Update Access Role
      • Delete Access Role
  • Organizations
    • List Organizations
    • Get Organization
    • Get Organization by External ID
    • Create Organization
    • Create Organization With Defaults
    • Sync Locations
    • Update Organization
    • Delete Organization
    • Delete Organization by External ID
  • Locations
    • Retrieve all locations
    • Retrieve a specific location
    • Retrieve a specific location by external ID
    • Create a new location
    • Update a specific location
    • Delete a specific location
    • Retrieve timesheets for a specific location
    • Retrieve staff members for a specific location
  • Staff members
    • Retrieve all staff members
    • Retrieve a specific staff member
    • Retrieve a staff member by external ID
    • Retrieve staff member locations
    • Create a new staff member
    • Synchronize staff members
    • Update a specific staff member
    • Delete a specific staff member
  • Roles
    • Create a new role
    • Retrieve all roles
    • Retrieve a specific role
    • Update a specific role
    • Delete a specific role
  • Time Tracking
    • Retrieve staff member shift state
    • Clock in a staff member
    • Clock out a staff member
  • Breaks
    • Retrieve break types for a specific location
    • Create a new break type for a location
    • Update a specific break type
    • Delete a specific break type
  • Timesheets
    • Retrieve all shifts
    • Retrieve a specific shift
    • Export shifts
    • Generate per-employee shift reports
    • Generate shift reports
    • Create a new shift
    • Update a specific shift
    • Delete a specific shift
    • Delete all shifts on a specific date
  • Time Off
    • Retrieve all time off policies
    • Retrieve a policy
    • List all policy types
    • Create Policy
    • Update Policy
    • Activate Policy
    • Deactivate Policy
    • Get Worker Policies
    • List all worker policies
  • Requests and Approval
    • Get Time-Off Request
      GET
    • List Time-Offs
      GET
    • Create a time off request
      POST
    • Update Time-Off Request
      PUT
    • Delete Time-Off Request
      DELETE
    • Approve Time-Off Request
      POST
    • Decline Time-Off Request
      POST
  • Shift Notes
    • Working with shift notes
    • List shift notes from current shift
    • Create shift note on current shift
  • Schedules
    • List all schedule entries
    • Get details for a schedule
    • Create schedule entry
    • Bulk copy schedule shifts
    • Update schedule entry
    • Remove schedule entry
    • List all draft schedule entries
    • Get details for a draft entry
    • Create draft schedule entry
    • Update draft entry
    • Remove draft schedule entry
    • Publish draft schedule
    • List open shifts
    • Get details for an open shift
    • Create open shift
    • Update open shift
    • Remove open shift
    • Claim open shift
    • Retract open shift submission
    • Create open shift preference
    • Retract open shift preference
    • Update open shift preference
    • Remove open shift preference
    • Assign or accept open shift preference
    • Bulk assign or accept open shift preferences
  • Settings
    • Retrieve organization time off settings
    • Update organization time off settings
  • Notifications
    • Coming soon
  1. Requests and Approval

Create a time off request

POST
/api/organizations/{organization_id}/time-off-requests
Submits a new time-off request for approval within an organization.

Request

Path Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Create a time off request
Body

🟢201Created
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/organizations//time-off-requests' \
--header 'Content-Type: application/json' \
--data-raw '{
    "locationId": "123e4567-e89b-12d3-a456-426614174000",
    "employee": {
        "externalEmployeeId": "string",
        "name": "string",
        "payrollId": "string"
    },
    "policyId": "123e4567-e89b-12d3-a456-426614174000",
    "startTime": "2021-01-01T00:00:00.000Z",
    "endTime": "2021-01-01T00:00:00.000Z",
    "note": "I need to take time off",
    "hourConfiguration": [
        {
            "date": "2021-01-01",
            "hours": 8
        },
        {
            "date": "2021-01-02",
            "hours": 4
        }
    ],
    "timezone": "America/New_York",
    "utcOffset": 240,
    "isAllDay": false
}'
Response Response Example
200 - Example 1
{
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "locationId": "123e4567-e89b-12d3-a456-426614174000",
    "workerId": "123e4567-e89b-12d3-a456-426614174000",
    "policyId": "123e4567-e89b-12d3-a456-426614174000",
    "policy": {
        "id": "string",
        "name": "string",
        "organizationId": "string",
        "allowNegativeBalance": true,
        "assignedStaffCount": 0,
        "carryoverLimit": 0,
        "defaultSettings": {
            "assignedStaff": {
                "type": "Role",
                "value": "string"
            }
        },
        "fullDayDuration": 0,
        "limitSettings": {
            "isFixedAmount": true,
            "fixedAmount": {
                "hours": 0,
                "daysEarned": 0,
                "accrualCycle": "AllAtOnce",
                "accrualFrequency": "EveryOneWeek",
                "accrualDay": "Sunday",
                "accrualDate": "1st"
            },
            "perHourEarnings": {
                "hoursEarned": 0,
                "hoursWorked": 0,
                "isLimitedMaximumBalance": true,
                "maximumHoursBalance": 0
            }
        },
        "paid": true,
        "requiresApproval": true,
        "status": "Draft",
        "type": {
            "id": "string",
            "name": "string",
            "type": "Sick"
        },
        "typeId": "string",
        "units": "days",
        "createdAt": "string",
        "updatedAt": "string"
    },
    "startTime": "2021-01-01T00:00:00.000Z",
    "endTime": "2021-01-01T00:00:00.000Z",
    "status": "pending",
    "note": "I need to take time off",
    "hourConfiguration": [
        {
            "date": "2021-01-01",
            "hours": 8
        },
        {
            "date": "2021-01-02",
            "hours": 4
        }
    ],
    "timezone": "America/New_York",
    "utcOffset": 240,
    "isAllDay": false,
    "submittedAt": "2021-01-01T00:00:00.000Z",
    "remainingBalance": 10,
    "totalHours": 10,
    "workerPolicy": {
        "id": "string",
        "name": "Policy 1",
        "hoursBalance": 0,
        "isIncluded": true,
        "availableBalance": 0
    }
}
Modified at 2025-03-24 12:48:01
Previous
List Time-Offs
Next
Update Time-Off Request