The 'data container' task allows you to create a custom endpoint that can receive posted JSON data and stores it as instance data in your Integrify database. This task is designed to be completed by an API POST. Once the workflow reaches the data container task, the endpoint is prepped to wait for data to be posted to it. Once the data is posted, the workflow moves forward.
You can always find your endpoint in the request summary, but you can also programmatically check for endpoints by sending a GET request to:
/tasktypes/data-container/endpoints
You can optionally filter by task name, instance ID, or instance SID. See complete filtering options at developer.integrify.com
Here is an example response that shows two ready endpoints:
{ endpoints: [ "/tasktypes/data-container/instances/tasks/reciptasks/d854f1fd-773d-4883-a2b7-0acc8c33d138?task_name=myTaskName", "/tasktypes/data-container/instances/tasks/reciptasks/d854f1fd-773d-4883-a2b7-0acc8c33d138?task_name=myOtherTaskName" ] }
As a convenience, the task name is appended to each endpoint in the response for easier visual parsing and searching. When a GET or POST request is made to the endpoint, this 'task_name' querystring will be ignored if included.
Here is an example response that includes no endpoints (You will get this result if no Data Container tasks are currently active in Integrify):
{ endpoints: [ ] }
Each endpoint will accept a GET request or a POST request.
Here is an example field configuration
{ field_configuration: [ { key: "client_name", value_type: "string" }, { key: "client_number", value_type: "numeric" } ] }
See more information at developer.integrify.com
Here is an example post body:
{ "client_name": "John Doe", "client_number": 5 }
Sending file attachments to a data container is a 2 part process. First, you must upload the file to the server using this API call: https://developer.integrify.com/rest/Files/upload. Using the key value that is returned in this call, you then complete the data container file upload field using the key value you just retrieved:
{ "client_name": "John Doe", "file_attachment": "1a9dec20-3e93-11e5-8b58-7b9ee7d080f1" }