{
  "opencollection": "1.0.0",
  "info": {
    "name": "Workday Business Process API",
    "version": "v41.1"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://{tenant}.workday.com/ccx/oauth2/{tenant}/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Business Process Definitions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday List Business Process Definitions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/businessProcessDefinitions",
            "params": [
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "offset",
                "value": "0",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "processType",
                "value": "HireEmployee",
                "type": "query",
                "description": "Filter by business process type"
              }
            ]
          },
          "docs": "Retrieves a collection of business process type definitions available in the Workday tenant."
        },
        {
          "info": {
            "name": "Workday Get Business Process Definition",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/businessProcessDefinitions/:definitionId",
            "params": [
              {
                "name": "definitionId",
                "value": "BPD-HIRE-001",
                "type": "path",
                "description": "Business process definition identifier"
              }
            ]
          },
          "docs": "Retrieves a specific business process type definition by its identifier."
        }
      ]
    },
    {
      "info": {
        "name": "Process Instances",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday List Process Instances",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/processInstances",
            "params": [
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "offset",
                "value": "0",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "status",
                "value": "IN_PROGRESS",
                "type": "query",
                "description": "Filter by process status"
              },
              {
                "name": "processType",
                "value": "HireEmployee",
                "type": "query",
                "description": "Filter by business process type"
              },
              {
                "name": "initiatorId",
                "value": "EMP-12345",
                "type": "query",
                "description": "Filter by process initiator ID"
              }
            ]
          },
          "docs": "Retrieves a collection of business process instances with status and progress information."
        },
        {
          "info": {
            "name": "Workday Initiate Process",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/processInstances",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Initiates a new business process instance."
        },
        {
          "info": {
            "name": "Workday Get Process Instance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/processInstances/:instanceId",
            "params": [
              {
                "name": "instanceId",
                "value": "PI-2026-001",
                "type": "path",
                "description": "Process instance identifier"
              }
            ]
          },
          "docs": "Retrieves a specific business process instance by its identifier."
        },
        {
          "info": {
            "name": "Workday Cancel Process Instance",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/processInstances/:instanceId/cancel",
            "params": [
              {
                "name": "instanceId",
                "value": "PI-2026-001",
                "type": "path",
                "description": "Process instance identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Cancels a running business process instance."
        },
        {
          "info": {
            "name": "Workday List Process Steps",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/processInstances/:instanceId/steps",
            "params": [
              {
                "name": "instanceId",
                "value": "PI-2026-001",
                "type": "path",
                "description": "Process instance identifier"
              }
            ]
          },
          "docs": "Retrieves the steps for a specific business process instance including completion status."
        }
      ]
    },
    {
      "info": {
        "name": "Inbox Items",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday List Inbox Items",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/inboxItems",
            "params": [
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "Maximum number of records to return"
              },
              {
                "name": "offset",
                "value": "0",
                "type": "query",
                "description": "Number of records to skip"
              },
              {
                "name": "workerId",
                "value": "EMP-12345",
                "type": "query",
                "description": "Filter inbox items by worker ID"
              },
              {
                "name": "status",
                "value": "PENDING",
                "type": "query",
                "description": "Filter by item status (PENDING, COMPLETE)"
              }
            ]
          },
          "docs": "Retrieves a collection of inbox items requiring user action for business processes."
        }
      ]
    },
    {
      "info": {
        "name": "Approvals",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Workday Approve Inbox Item",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/inboxItems/:itemId/approve",
            "params": [
              {
                "name": "itemId",
                "value": "INB-001",
                "type": "path",
                "description": "Inbox item identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Approves an inbox item to advance a business process."
        },
        {
          "info": {
            "name": "Workday Deny Inbox Item",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tenant}.workday.com/api/businessProcess/v1/inboxItems/:itemId/deny",
            "params": [
              {
                "name": "itemId",
                "value": "INB-002",
                "type": "path",
                "description": "Inbox item identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Denies an inbox item to reject a business process step."
        }
      ]
    }
  ],
  "bundled": true
}