Initialising a process flow & sending data
Last updated
Last updated
Having obtained a Patchworks token, it can be applied to an API request to initialise a process flow with your data passed in the request body.
You must control when your API requests are sent - the process flow schedule cannot currently be used. With this in mind, please ensure that the default trigger shape in your process flow is not configured with any schedules.
Step 1 Create a POST request for the following endpoint:
...replacing <flowID>
and <flowVERSION>
with details for your required process flow noted .
Step 2
In the request headers
, pass in the token obtained - this should be prefixed with the word Bearer
- for example:
Step 3
In the request body
, pass in the required payload - for example:
Step 4
Send the request - if successful, a 200 'flow initialised' response is given, together with a flow run id
:
Remember that the payload must be provided as a JSON object with a payload key containing a string of data. For more information please see .
You can check the status of this flow run via the .