Create the widget using the post /widgets.
Last updated on
Apr 27, 2021
Solution
-
-
Get the widget Id from get/widgets.
-
Once created using the GET /widgets/{widgetId} method, fetch the Etag from the Response header.
-
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.