3 Replies Latest reply on Apr 12, 2016 7:58 AM by Efog

    Cannot create widget

    Efog

      On this page https://secure.na1.echosign.com/public/docs/restapi/v5#WidgetFileInfo i'm trying to create widget (POST /widgets).

      Here is WidgetCreationRequest exmaples and responses from server.

       

      {"widgetCreationInfo":{"name":"SomeRandom","signatureFlow":"SENDER_SIGNATURE_NOT_REQUIRED" ,"fileInfos":[{"documentURL":{"name":"83011.pdf","url":"http:\/\/www.state.gov\/documents\ /organization\/83011.pdf","mimeType":"application\/pdf"}}]}}

      Server is thinking (1-2 minutes) and gives "BAD_REQUEST" response.

       

      {"widgetCreationInfo":{"formFieldLayerTemplates":[{"documentURL":{"name":"83011.pdf","url" :"http:\/\/www.state.gov\/documents\/organization\/83011.pdf","mimeType":"application\/pdf "}}],"name":"SomeRandom","signatureFlow":"SENDER_SIGNATURE_NOT_REQUIRED","fileInfos":[{"do cumentURL":{"name":"83011.pdf","url":"http:\/\/www.state.gov\/documents\/organization\/830 11.pdf","mimeType":"application\/pdf"}}]}}

      I don't know why i decided to use formFieldLayerTemplates, but this time server says "You cannot work on behalf of this user".

       

      Please help me to create a widget, I despaired!