0 Replies Latest reply on Jun 1, 2017 12:42 AM by pet exom

    Create a workflow agreement via REST API

    pet exom Level 1

      Hi,

       

      I am trying to start a workflow via a rest call

      {{base_api_url}}{{api_version}}workflows/{{workflowId}}/agreements

      with the minimal requirments like

      {

        "documentCreationInfo": {

          "fileInfos": [

            {

             "name": "[DEMO USE ONLY] Disclaimer",

              "workflowLibraryDocumentId": "3AAABLblqZhDaZYAALm66_cvqNPonPiFmYIKQK3Ez4-iBRIFiLmZYS0kf5FsXkg9IA7pniNZsafq_R9LCajE3e4b AgN0MVZxJ"

            }

          ],

          "name": "566931d2ca32f2d17dabce4cae7e1fd4",

          "recipientsListInfo": [

            {

              "name": "User",

              "recipients": [

                {

                  "email": "smo-test@test.com"

                }

              ]

            }

          ]

        }

      }

       

      But I am retrieving a Server error

      {

        "code": "MISSING_REQUIRED_TO_FIELD",

        "message": "Required ToField tos is missing"

      }

      What does this error message means? Didn't find any To field in the full description of the request Body.

       

      I have created a simple workflow with one document and signer.

       

      Do I have to create an transient Document before or is this created via the workflow request?

       

      If I run the workflow via the Website it works fine.

       

      Thanks for any hints