{
  "opencollection": "1.0.0",
  "info": {
    "name": "Workday Integration Workday Absence Management API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://{baseUrl}/authorize",
      "accessTokenUrl": "https://{baseUrl}/oauth2/{tenant}/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Absence Types",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday Integration Retrieve eligible absence types for a worker",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{baseUrl}/ccx/api/absenceManagement/v1/{tenant}/workers/:ID/eligibleAbsenceTypes",
            "params": [
              {
                "name": "ID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the resource"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of objects in a single response (default 20, maximum 100)"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The zero-based index of the first object in a response collection"
              }
            ]
          },
          "docs": "Returns a collection of eligible absence types for the specified worker, based on their benefits enrollment and absence plan configuration."
        }
      ]
    },
    {
      "info": {
        "name": "Time Off",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday Integration Create a time off request for a worker",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{baseUrl}/ccx/api/absenceManagement/v1/{tenant}/workers/:ID/requestTimeOff",
            "params": [
              {
                "name": "ID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the resource"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a time off request for the specified worker ID and initiates the approval business process."
        },
        {
          "info": {
            "name": "Workday Integration Retrieve valid time off dates for a worker",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{baseUrl}/ccx/api/absenceManagement/v1/{tenant}/workers/:ID/validTimeOffDates",
            "params": [
              {
                "name": "ID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the resource"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query",
                "description": "Start date for the range of valid dates"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query",
                "description": "End date for the range of valid dates"
              }
            ]
          },
          "docs": "Returns the valid dates on which the specified worker can request time off, based on their schedule and existing requests."
        }
      ]
    },
    {
      "info": {
        "name": "Leave of Absence",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday Integration Retrieve leaves of absence for a worker",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{baseUrl}/ccx/api/absenceManagement/v1/{tenant}/workers/:ID/leavesOfAbsence",
            "params": [
              {
                "name": "ID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the resource"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of objects in a single response (default 20, maximum 100)"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The zero-based index of the first object in a response collection"
              }
            ]
          },
          "docs": "Returns the leaves of absence records for the specified worker."
        },
        {
          "info": {
            "name": "Workday Integration Retrieve a specific leave of absence for a worker",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{baseUrl}/ccx/api/absenceManagement/v1/{tenant}/workers/:ID/leavesOfAbsence/:subresourceID",
            "params": [
              {
                "name": "ID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the resource"
              },
              {
                "name": "subresourceID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the leave of absence"
              }
            ]
          },
          "docs": "Returns the specified leave of absence record for the worker."
        }
      ]
    },
    {
      "info": {
        "name": "Balances",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday Integration Retrieve an absence plan balance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{baseUrl}/ccx/api/absenceManagement/v1/{tenant}/balances/:ID",
            "params": [
              {
                "name": "ID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the resource"
              }
            ]
          },
          "docs": "Returns the specified balance of all absence plan and leave of absence types."
        }
      ]
    },
    {
      "info": {
        "name": "Reference Data",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday Integration Retrieve leave status values",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{baseUrl}/ccx/api/absenceManagement/v1/{tenant}/values/leave/status"
          },
          "docs": "Returns the available leave of absence status values."
        },
        {
          "info": {
            "name": "Workday Integration Retrieve time off status values",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{baseUrl}/ccx/api/absenceManagement/v1/{tenant}/values/timeOff/status"
          },
          "docs": "Returns the available time off request status values including Approved, Submitted, Not Submitted, and Sent Back."
        }
      ]
    }
  ],
  "bundled": true
}