How to update the widget using API v6 | Adobe Sign

Solution

  1. Create the widget using the post /widgets.

  2. Get the widget Id from get/widgets.

  3. Once created using the GET /widgets/{widgetId} method, fetch the Etag from the Response header.

  4. Under put  /widgets/{widgetId}, use the Etag from GET /widgets/{widgetId}. Under the If-Match parameter, enter widgetId and widgetInfo.

    WidgetInfo:

    {
    "fileInfos": [
    {
    "transientDocumentId": "******"
    }
    ],
    "name": "Widht_Name",
    "status": "DRAFT",
    "widgetParticipantSetInfo": {
    "memberInfos": [
    {
    "email": ""
    }
    ],
    "role": "SIGNER"
    }
    }
    { "fileInfos": [ { "transientDocumentId": "******" } ], "name": "Widht_Name", "status": "DRAFT", "widgetParticipantSetInfo": { "memberInfos": [ { "email": "" } ], "role": "SIGNER" } }
    {
      "fileInfos": [
        {
          "transientDocumentId": "******"
        }
      ],
      "name": "Widht_Name",
      "status": "DRAFT",
      "widgetParticipantSetInfo": {
        "memberInfos": [
          {
            "email": ""
          }
        ],
        "role": "SIGNER"
      }
    }

Additional information

Note:

You can update only the Widget with Status as DRAFT.

Get help faster and easier

New user?