Skip to main content

Actions

Actions are a set of instructions an interface will run when called.

Options

NameTypeDescription
namestring (required)The name of the action
run_when_finished (alias depends_on)array[string] or objectRun this action if the specified action(s) has finished.
run_when_succeededarray[string] or objectRun this action if the specified action(s) has succeeded.
run_when_failedarray[string] or objectRun this action if the specified action(s) has failed.
run_on_assertionobjectRun this action if the assertion passes
inputstring (optional)The data available when an interface is called
  • a|body
  • a|headers
  • a|params
  • a|<action-name>

Note inputs do not have trailing | pipes
lookupstring (optional)The array based data used to loop through
  • a|body
  • a|<action-name>

Note inputs do not have trailing | pipes
This requires a nested set of actions.
hide_data_on_successboolean(optional)Hide data from the response payload on success.
hide_data_on_errorboolean(optional)Hide data from the response payload on error.
databasestring (optional)A database which your action will interact with.
querystring (optional)The query to be run on the specified database.
paramsarray[string] (optional)Array of parameters available for the actions to use
assertan array of test cases used to validate your data and inputs. See here for more details.
post_transformsan array of functions which are used to transform your data after it is received. See here for more details.
emailA set of options to configure email responses.
httpA set of options for an action to make http requests to do some sort of activity
commandRun terminal commands:
  • execute cli commands
  • cat files
  • install/update packages
retryobject (optional)Options:
  • attempts
  • delay
  • exponential_backoff: true/false
pre_logarray (optional)Options:
  • msg
  • level
post_logarray (optional)Options:
  • msg
  • level
timeoutstring (required)milliseconds