Send an agreement via a workflow with the REST API
I am trying to configure a request to the REST API to send a workflow. The workflow requires a file, which can be one of several depending on the request. When I pass the workflow library document ID of the file I want to include, in the "fileInfos" object, the API returns an error: INVALID_TRANSIENTDOCUMENT_ID
The API documentation says: Note: Only one of the four parameters in every FileInfo object must be specified even though the fileInfos object documentation only has three parameters: "name", "transientDocumentId", and "workflowLibraryDocumentId" and none of them are specified as optional.
{
"documentCreationInfo": {
"name": "TEST AGREEMENT NAME",
"fileInfos": [
{
"name": "document1",
"workflowLibraryDocumentId": "...ENwh1iObQMUWQEfMo9KHyf7D..."
}
],
"recipientsListInfo": [
{
"name": "Signer1",
"recipients": [
{
"email": "test@example.com"
}
]
}
]
}
}
Am I misunderstanding? Does someone have a working snipped of JSON to get me started here? Or is this an error in the API?
