Updating Expiration Dates or Due Dates of Modular Questionnaires Using the Supplier Data API with Pagination

This topic explains how to use the Supplier Data API with Pagination to update expiration dates or due dates of modular questionnaires for a supplier.

Prerequisites

  • To update the expiration date of a modular questionnaire, the modular questionnaire must be in the Approved status.

  • To update the due date of a modular questionnaire, the modular questionnaire must be in the in progress status.

Context

Updating the expiration date doesn't change the existing expiration schedule. The system recalculates the new expiration date based on the expiration schedule on the next approval of the modular questionnaire.

You can prolong or shorten the due date of a modular questionnaire.

Procedure

  1. Use the questionnaire endpoint to request document IDs of modular questionnaires. For example, to return details of all modular questionnaires for the supplier with SM vendor ID S10028001:
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/workspaces/questionnaire
  2. Use the questionnaires/{questionnaireId} endpoint to post an update to the expiration date or due date of a modular questionnaire. For example, to update the expiration date or due date of the modular questionnaire with document ID Doc12345678:
    PATCH {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/workspaces/questionnaires/Doc12345678

Results

If the expiration date is updated, the expiration date is displayed in the supplier 360ยบ profile, and the modular questionnaire expires on a new date which is calculated based on the existing expiration schedule on the next approval of the modular questionnaire.

If the due date is updated, the due date is displayed in the supplier interface, and the supplier must answer the modular questionnaire by the end of the new date. Otherwise, the modular questionnaire is closed.