Updating Process Intake Form Answers Using the Supplier Data API with Pagination

This topic explains how to use the Supplier Data API with Pagination endpoints to update answers in intake forms of supplier management processes.

Prerequisites

The supplier management process to be updated must be in the pending decision or the decided status (approved, denied, or conditionally approved).

You already have the SM vendor ID of the supplier whose process intake form answers are to be updated.

Context

The category, region, and department values cannot be updated. If you change any of the values, an error is returned.

The expiration date can be newly added, prolonged, or shortened.

Procedure

  1. Use the processes endpoint to request all workspace IDs for a supplier. For example, to return basic information about all processes for the supplier with SM vendor ID S10028001:
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/processes
  2. Use the processes/{wid} endpoint to request the documentation ID of the process intake form for a specific process. For example, to return details for the process with workspace ID WS19708:
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/processs/WS19708
  3. Use the versions endpoint without specifying any version ID in the request body to request intake form details in the latest version. For example, to return details of the intake form with document ID Doc12345678 for the supplier with SM vendor ID S10028001:
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/workspaces/questionnaires/Doc12345678/qna/versions

    The process intake form details in the latest version are returned in the response. According to the latest version ID, you can know the number of versions that the intake form has.

  4. Optional: Use the versions/{versionId} endpoint to request intake form details in a specific version, for example, version 3.
    GET {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/workspaces/questionnaires/Doc12345678/qna/versions/3
  5. Use the answers endpoint to post an update to answers in the intake form. For example, to update answers in intake form with document ID Doc12345678:
    POST {{runtime_URL}}/supplierdatapagination/v4/prod/vendors/S10028001/workspaces/questionnaires/Doc12345678/answers

    After a successful update, a new version of the process intake form is created.

Results

Buyers can view the intake form details of the latest version in the supplier 360ยบ profile.