Get a list of all available logics for the WBS
example:
/processes/getLogics?token=...
This provides a list of processes that are allowed and some metaData to explain which fields are required for each process
Arguments
Get a rule
@param: id (id of the rule)
Arguments
Get all rules of an object
ex.: /processes/getRules4Object?triggered_by=article&object_id=1&token=...
Arguments
triggered_by |
required, in: GROUP, ARTICLE, FORM, WIDGET, POLL, SUBSCRIPTION, WEBINAR, LINK, SHIPPING |
object_id |
integer, required |
Creating a rule means assigning a logic to an object that should trigger it defined by an id
@param: logic_id (representing the logic that this process should use)
@param: triggered_by (ARTICLE , GROUP, FORM, WIDGET)
@param: object_id (represents the id of article, group, form or widget)
@param: params (array of data)
@param: condition (array of data)
Example of creating a rule:
/processes/addRule?logic_id=3&object_id=1&triggered_by=ARTICLE&token=...
Arguments
logic_id |
integer, required |
triggered_by |
required, in: GROUP, ARTICLE, FORM, WIDGET, POLL, SUBSCRIPTION, WEBINAR, LINK, SHIPPING |
object_id |
integer, required |
params |
array, nullable |
condition |
array, nullable |
Updating a rule
@param: id (id of the rule)
@param: params (array of data)
@param: condition (array of data)
Arguments
id |
integer, required |
logic_id |
integer, required |
triggered_by |
required, in: GROUP, ARTICLE, FORM, WIDGET, POLL, SUBSCRIPTION, WEBINAR, LINK, SHIPPING |
object_id |
integer, required |
params |
array, nullable |
condition |
array, nullable |