Wrkflows
This object represents an automation workflow (Wrkflow) in your account. Use it to get Launch parameters and launch it. You can use the Launch object to track the progress.
ENDPOINTS |
|
GET | /wrkflow/ |
POST | /wrkflow/{wrkflow_uuid}/launch |
The Wrkflow object
Attributes
Attributes | The Wrkflow object |
| {
|
Retrieve Wrkflows
Retrieves one or more Wrkflow object
Parameters
| GET
Python from wrk import Wrk |
Returns
A dictionary with a wrkflow
property that contains an array of Wrkflows. The totalCount
property will give the number of Wrkflows returned. If there are no Wrkflows available, the resulting array will be empty
{
"wrkflows": [
{
"name": "Post News to Wrk Forum",
"wrkflow_uuid": "78a53c09-533c-46a9-977f-0e7163e84e16",
"launch_parameters_json_schema": {
"type": "object",
"properties": {
"Email": {
"type": "string",
"industry": "Industry to retrieve news for"
}
},
"required": ["industry"]
},
"avg_completion_time": 15,
"short_description": "",
"long_description": "",
"webhook_url": null,
"schedule_info": {
"schedule_description": "At 8am",
"enabled": true
}
},
{
"name": "Save the World",
"wrkflow_uuid": "9edf13a7-abfa-47bb-99bd-b5098d087082",
"launch_parameters": {},
"avg_completion_time": 256,
"short_description": "When a user ask to save the world",
"long_description": "",
"webhook_url": null,
"schedule_info": null
}
],
"totalCount": 2
}
Launch Wrkflow
Given a Wrkflow, launch (start) the automation workflow.
This Additional documentation on launching a Wrkflow via API here.
Parameters
| POST
Python ... |
Returns
If successful, a dictionary with property launch_id
containing a unique identifier of the Launch object.
{
"wrkflow_uuid": "78a53c09-533c-46a9-977f-0e7163e84e16",
"launch_id": 23143
}