v2.1.80
π New Endpoints & Enhancements
Weβre excited to announce several new updates and improvements across our Time Off and Timesheets APIs to make your integrations more powerful and flexible. Below is a detailed breakdown of the latest changes:
β¨ Time Off API Enhancements
πΉ Create Time Off
Endpoint: POST /rest/v2/time-offs
Scopes: time-off:write
Allowed Tokens:
OAUTH2:ORGANIZATIONAL
, OAUTH2:PERSONAL
, PAT:ORGANIZATIONAL
, PAT:PERSONAL
Whatβs new:
- β
You can now request time-offs using only the
policy_id
, removing the need to specify atime_off_type_id
. - π Support added for requesting time-offs with a
PENDING
status. - π
The
start_date
andend_date
fields now accept bothYYYY-MM-DD
and ISO 8601 date formats. We recommend usingYYYY-MM-DD
for consistency. - π File attachments are now supported when submitting requests via
multipart/form-data
.
πΉ Update Time Off
Endpoint: PATCH /rest/v2/time-offs/:id
Scopes: time-off:write
Allowed Tokens:
OAUTH2:ORGANIZATIONAL
, OAUTH2:PERSONAL
, PAT:ORGANIZATIONAL
, PAT:PERSONAL
Whatβs new:
- β
Time-off updates now support using only the
policy_id
, removing the requirement fortime_off_type_id
. - π
Updated support for
start_date
andend_date
parameters in bothYYYY-MM-DD
and ISO string formats (we recommendYYYY-MM-DD
). - π Edit time-offs with file attachments using
multipart/form-data
.
π New Endpoint: Daily Time Off Configurations
Endpoint: GET /rest/v2/time-offs/dailies
Scopes: time-off:read
Allowed Tokens:
OAUTH2:ORGANIZATIONAL
, OAUTH2:PERSONAL
, PAT:ORGANIZATIONAL
, PAT:PERSONAL
What it does:
Fetch comprehensive daily information for a given date range tied to an hrisProfile
:
- π Work Schedule: Breakdown of working hours by weekday.
- π Holidays: Holidays occurring within the specified date range.
- π Time Off Dailies: Daily records including holiday or work status.
β± Timesheets API β New Endpoints for Hourly Report Root Presets
π Create Hourly Report Root Preset
Endpoint: POST /rest/v2/timesheets/root-presets
Scopes: timesheets:write
Allowed Tokens:
OAUTH2:ORGANIZATIONAL
, OAUTH2:PERSONAL
, PAT:ORGANIZATIONAL
, PAT:PERSONAL
Create a new root preset for hourly reports to streamline your reporting setup.
π Get All Hourly Report Root Presets
Endpoint: GET /rest/v2/timesheets/root-presets
Scopes: timesheets:read
Allowed Tokens:
OAUTH2:ORGANIZATIONAL
, OAUTH2:PERSONAL
, PAT:ORGANIZATIONAL
, PAT:PERSONAL
Retrieve a list of all existing hourly report root presets.
π Get a Specific Hourly Report Root Preset
Endpoint: GET /rest/v2/timesheets/root-presets/:id
Scopes: timesheets:read
Allowed Tokens:
OAUTH2:ORGANIZATIONAL
, OAUTH2:PERSONAL
, PAT:ORGANIZATIONAL
, PAT:PERSONAL
Fetch detailed information about a specific preset by ID.