{
  "opencollection": "1.0.0",
  "info": {
    "name": "Workday Absence Management Leave of Absence API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://wd2-impl-services1.workday.com/ccx/oauth2/{tenant}/authorize",
      "accessTokenUrl": "https://wd2-impl-services1.workday.com/ccx/oauth2/{tenant}/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Leave of Absence",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Leaves of Absence",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://wd2-impl-services1.workday.com/ccx/api/absenceManagement/v1/{tenant}/workers/:ID/leaveOfAbsences",
            "params": [
              {
                "name": "ID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the worker."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of objects in a single response."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The zero-based index of the first object in a response collection."
              }
            ]
          },
          "docs": "Returns leaves of absence for a worker."
        },
        {
          "info": {
            "name": "Request Leave of Absence",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://wd2-impl-services1.workday.com/ccx/api/absenceManagement/v1/{tenant}/workers/:ID/requestLeaveOfAbsence",
            "params": [
              {
                "name": "ID",
                "value": "",
                "type": "path",
                "description": "The Workday ID of the worker."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Initiates a leave of absence request for a worker."
        }
      ]
    }
  ],
  "bundled": true
}