Time Off

Time off assignments are mappings between workers and time off policies. Useful for finding out which policies a worker is assigned to, or which workers are assigned to a given policy.

get/v1/time_off/assignments

Query parameters

limitstring

a number less than or equal to 100

a number less than or equal to 100

afterIdstring
beforeIdstring
policyIdsstring[]
[
  "top_1234"
]
workerIdsstring[]
[
  "wrk_1234"
]

Response

Success

hasMoreboolean required
countinteger required

an integer

Example response

{
  "data": [
    {
      "policyId": "top_1234",
      "workerId": "wrk_1234"
    }
  ]
}

Changes

Changed in 7 of the 20 revisions of this API.7112

  • 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 required property count to the response with the 200 status

      response-required-property-added

    • the data/items/policyId response's property pattern ^top_ was added for the status 200

      response-property-pattern-added

  • 8d23b094927015See the full diff
    • the response's body type/format changed from array/ to object/ for status 200

      response-body-type-changed

    • added the new optional query request parameter afterId

      new-optional-request-parameter

    • added the new optional query request parameter beforeId

      new-optional-request-parameter

    • added the new optional query request parameter limit

      new-optional-request-parameter

    • added the required property data to the response with the 200 status

      response-required-property-added

    • added the required property hasMore to the response with the 200 status

      response-required-property-added