Submit Stream Data
Create a new stream record in the system, and launch its associated process.
Prerequisites
Details
Method: POST
URL: https://us.pulpstream.com/vfr/api/streamRecords
Headers:
tenantId: {tenantId}
apiKey: {apiKey}
Content-Type: application/json
apiUserName: Optional. Specify internal username from the User definition to submit the data on behalf of that user.
PayLoad:
{
"streamTemplateId":"be8……….a8fb", // the stream ID
"submit":true, // should always be true, to submit the form data
"documentData":{
"StreamDataComponentName1":{ // the name of a data component defined in the stream
"FieldName1":"field data", // specify internal field names, not display labels
"FieldName2":"field data",
"Date_of_Incident":"2021-05-22T00:00:00",
"Time_of_Incident":"11:12 am",
"Submitter":"", // defaults to user with matching email address
}
"StreamDataComponentName2":{ // Multiple data components can be specified
...
}
...
}
}
Response:
{
"message": "",
"responseBody": "1595........................dfad" // id of generated record
}
Notes
Data Formats