Time Off

Get a specific time off policy by id

get/v1/time_off/policies/{id}

Path parameters

idstring required

a string starting with "top_"

Example:top_1234

a string starting with "top_"

Response

Success

idstring required

a string starting with "top_"

timeOffTypeIdstring required

a string starting with "tot_"

timeOffTypeNamestring required
paidboolean required
isUnlimitedboolean required
schedule'per_hour_worked' | 'monthly' | 'yearly' | 'unlimited' required
unit'hour' | 'day' required
namestring required
descriptionstring nullable required
hoursWorkedPerChunknumber nullable required
minutesPerChunknumber nullable required
minutesPerPeriodnumber nullable required

Example response

{
  "id": "top_1234",
  "timeOffTypeId": "tot_1234",
  "timeOffTypeName": "Vacation",
  "name": "Company-Wide Vacation Policy",
  "description": "Vacation policy for the whole company"
}

Changes

Changed in 6 of the 20 revisions of this API.819

  • a896c17cf98841See the full diff
    • the response's body type/format changed from object/ to / for status 403

      response-body-type-changed

    • removed the required property _tag from the response with the 403 status

      response-required-property-removed

    • removed the required property message from the response with the 403 status

      response-required-property-removed

    • removed the required property requiredPermissions from the response with the 403 status

      response-required-property-removed

    • added MissingRequiredPermissions ApiNotEnabled to the response body anyOf list for the response status 403

      response-body-any-of-added

    • added the new company:workplaces enum value to the requiredPermissions/items/scope response property for the response status 403

      response-property-enum-value-added

    • the requiredPermissions/items/ response property's minItems was decreased from 2 to 0 for the response status 403

      response-property-min-items-decreased

    • the requiredPermissions/items/ response's property type/format changed from array/ to object/ for status 403

      response-property-type-changed

    • removed subschema #1 subschema #2 from the requiredPermissions/items/ response property 'prefixItems' list for the response status 403

      response-property-prefix-items-removed

    • added the required property requiredPermissions/items/level to the response with the 403 status

      response-required-property-added

    • added the required property requiredPermissions/items/scope to the response with the 403 status

      response-required-property-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the pattern ^top_ to the path request parameter id

      request-parameter-pattern-added

    • added subschema #1: startsWith("top_") to the id response property anyOf list for the response status 404

      response-property-any-of-added

    • removed subschema #1 from the id response property anyOf list for the response status 404

      response-property-any-of-removed

    • the id response's property pattern ^top_ was added for the status 200

      response-property-pattern-added

    • the timeOffTypeId response's property pattern ^tot_ was added for the status 200

      response-property-pattern-added

    • response property id list-of-types was widened by adding types number to media type application/json of response 404

      response-property-list-of-types-widened