{
  "opencollection": "1.0.0",
  "info": {
    "name": "Workday Integration Workday Absence Management Absence Types Time Off 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": "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."
        }
      ]
    }
  ],
  "bundled": true
}