Details on the various actions that can be performed on the
Flow Version resource, including the expected
parameters and the potential responses.
Deletes a flow version
var params = {
applicationId: myApplicationId,
flowId: myFlowId,
flowVersionId: myFlowVersionId
};
// with callbacks
client.flowVersion.delete(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.flowVersion.delete(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, flowVersion.*, or flowVersion.delete.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
flowId |
string |
Y |
ID associated with the flow |
|
575ed18f7ae143cd83dc4aa6 |
flowVersionId |
string |
Y |
Version ID or version name associated with the flow version |
|
675ed18f7ae143cd83dc4bb7 |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
200 |
Success |
If flow version was successfully deleted |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if flow version was not found |
Get information about errors that occurred during runs of this workflow version
var params = {
applicationId: myApplicationId,
flowId: myFlowId,
flowVersionId: myFlowVersionId
};
// with callbacks
client.flowVersion.errors(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.flowVersion.errors(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flowVersion.*, or flowVersion.errors.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
flowId |
string |
Y |
ID associated with the flow |
|
575ed18f7ae143cd83dc4aa6 |
flowVersionId |
string |
Y |
Version ID or version name associated with the flow version |
|
675ed18f7ae143cd83dc4bb7 |
duration |
string |
N |
Duration of time range in milliseconds |
86400000 |
86400000 |
end |
string |
N |
End of time range in milliseconds since epoch |
0 |
0 |
limit |
string |
N |
Maximum number of errors to return |
25 |
25 |
sortDirection |
string |
N |
Direction to sort the results by. Accepted values are: asc, desc |
desc |
desc |
deviceId |
string |
N |
For edge workflows, the Device ID to return workflow errors for. When not included, will be errors for all device IDs. |
|
575ed18f7ae143cd83dc4bb6 |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if flow version was not found |
Retrieves information on a flow version
var params = {
applicationId: myApplicationId,
flowId: myFlowId,
flowVersionId: myFlowVersionId
};
// with callbacks
client.flowVersion.get(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.flowVersion.get(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flowVersion.*, or flowVersion.get.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
flowId |
string |
Y |
ID associated with the flow |
|
575ed18f7ae143cd83dc4aa6 |
flowVersionId |
string |
Y |
Version ID or version name associated with the flow version |
|
675ed18f7ae143cd83dc4bb7 |
includeCustomNodes |
string |
N |
If the result of the request should also include the details of any custom nodes referenced by the returned workflows |
false |
true |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if flow version was not found |
Retrieve the recent log entries about runs of this workflow version
var params = {
applicationId: myApplicationId,
flowId: myFlowId,
flowVersionId: myFlowVersionId
};
// with callbacks
client.flowVersion.getLogEntries(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.flowVersion.getLogEntries(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flowVersion.*, or flowVersion.log.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
flowId |
string |
Y |
ID associated with the flow |
|
575ed18f7ae143cd83dc4aa6 |
flowVersionId |
string |
Y |
Version ID or version name associated with the flow version |
|
675ed18f7ae143cd83dc4bb7 |
limit |
string |
N |
Max log entries to return (ordered by time descending) |
1 |
10 |
since |
string |
N |
Look for log entries since this time (ms since epoch) |
|
1465790400000 |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if flow version was not found |
Updates information about a flow version
var params = {
applicationId: myApplicationId,
flowId: myFlowId,
flowVersionId: myFlowVersionId,
flowVersion: myFlowVersion
};
// with callbacks
client.flowVersion.patch(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.flowVersion.patch(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Organization, all.User, flowVersion.*, or flowVersion.patch.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
flowId |
string |
Y |
ID associated with the flow |
|
575ed18f7ae143cd83dc4aa6 |
flowVersionId |
string |
Y |
Version ID or version name associated with the flow version |
|
675ed18f7ae143cd83dc4bb7 |
includeCustomNodes |
string |
N |
If the result of the request should also include the details of any custom nodes referenced by the returned workflows |
false |
true |
flowVersion |
Workflow Version Patch |
Y |
Object containing new properties of the flow version |
|
Workflow Version Patch Example |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if flow version was not found |
Get statistics about workflow runs for this workflow version
var params = {
applicationId: myApplicationId,
flowId: myFlowId,
flowVersionId: myFlowVersionId
};
// with callbacks
client.flowVersion.stats(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.flowVersion.stats(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this
action. The token must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flowVersion.*, or flowVersion.stats.
Name |
Type |
Required |
Description |
Default |
Example |
applicationId |
string |
Y |
ID associated with the application |
|
575ec8687ae143cd83dc4a97 |
flowId |
string |
Y |
ID associated with the flow |
|
575ed18f7ae143cd83dc4aa6 |
flowVersionId |
string |
Y |
Version ID or version name associated with the flow version |
|
675ed18f7ae143cd83dc4bb7 |
duration |
string |
N |
Duration of time range in milliseconds |
86400000 |
86400000 |
end |
string |
N |
End of time range in milliseconds since epoch |
0 |
0 |
resolution |
string |
N |
Resolution in milliseconds |
3600000 |
3600000 |
deviceId |
string |
N |
For edge workflows, the device ID to return workflow stats for. When not included, will be aggregate for all device IDs. |
|
575ed18f7ae143cd83dc4bb6 |
losantdomain |
string |
N |
Domain scope of request (rarely needed) |
|
example.com |
Code |
Type |
Description |
400 |
Error |
Error if malformed request |
404 |
Error |
Error if flow version was not found |