Use of the Supplier Data API with Pagination modularQuestionnairesRequests Endpoint

The Supplier Data API with Pagination modularQuestionnairesRequests endpoint uses the POST method to send a JSON request to your site. The request body contains the matrix fields categoryList, regionList, departmentList, materialList, and templateId. All the active modular questionnaire templates, including mandatory templates, for this combination are returned.

Method

Endpoint

Description

POST

{{runtime_URL}}/supplierdatapagination/v4/prod/processes/modularQuestionnairesRequests

Returns the list of all modular questionnaire templates for the process type

For example, the following URL retrieves all the active modular questionnaire templates, including mandatory templates, for the combination of Category, Region, Department) and Process Type shown further below in the request body:
POST {{runtime_URL}}/supplierdatapagination/v4/prod/processes/modularQuestionnairesRequests?realm=myRealm

Refer to Supplier Data API with Pagination Header Parameters for information on header parameters and Supplier Data API with Pagination Query and Filter Parameters for information on query and filter parameters.

A sample request body:

{
  "categoryList": [
    "30"
   ], 
  "regionList": [
    "EMEA"
   ], 
  "departmentList": [ 
    "300"
  ], 
  "materialList": [], 
  ], 
  "templateId": "WS16095921"
}

The following example shows a sample response for a modularQuestionnairesRequests endpoint:

{
    "status": "OK",
    "statusCode": 200,
    "errorMessages": [],
    "warnings": [],
    "debugInfo": {
        "requestProcessingTime": null,
        "storeProcessingTime": null
    },
    "moreDataAvailable": false,
    "nextToken": null,
    "errorsByVendor": {},
    "warningMessages": null,
    "questionnaires": [
        {
            "title": "Review By Purchasing Manager",
            "internalId": "WS16225252",
            "questionnaireType": "Audit Process",
            "requestUpdate": false,
            "docId": "Doc16225259",
            "template": true,
            "isInternal": false,
            "isRequired": false,
            "isTemplate": true
        },
       
}