Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

RulesEngine /AddAction

Allows 150 calls per minute

Response: ActionWeb



Use this call to add a new action to a condition node.

Parameters

NameTypeDescription
actionActionWebAn object describing the action to add.

Permissions

GlobalPermissions.OrderBook.RulesEngineNode

Example Request

The following request format is required for this method.

Get

Endpoint URL

This is an example of the request structure. Results will vary depending on your data.

GET https://eu-ext.linnworks.net/api/RulesEngine/AddAction?action=%7B%0D%0A%20%20%22pkActionId%22%3A%201%2C%0D%0A%20%20%22fkConditionId%22%3A%201%2C%0D%0A%20%20%22ActionName%22%3A%20%22sample%20string%202%22%2C%0D%0A%20%20%22ActionType%22%3A%201%2C%0D%0A%20%20%22Properties%22%3A%20%5B%0D%0A%20%20%20%20%7B%0D%0A%20%20%20%20%20%20%22ActionPropertyId%22%3A%201%2C%0D%0A%20%20%20%20%20%20%22DisplayName%22%3A%20%22sample%20string%202%22%2C%0D%0A%20%20%20%20%20%20%22Value%22%3A%20%22sample%20string%203%22%0D%0A%20%20%20%20%7D%0D%0A%20%20%5D%0D%0A%7D

Headers

Connection: keep-alive
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Post

Endpoint URL

POST https://eu-ext.linnworks.net/api/RulesEngine/AddAction

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

action={
  "pkActionId": 1,
  "fkConditionId": 1,
  "ActionName": "sample string 2",
  "ActionType": 1,
  "Properties": [
    {
      "ActionPropertyId": 1,
      "DisplayName": "sample string 2",
      "Value": "sample string 3"
    }
  ]
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "pkActionId": 1,
  "fkConditionId": 1,
  "ActionName": "sample string 2",
  "ActionType": 1,
  "Properties": [
    {
      "ActionPropertyId": 1,
      "DisplayName": "sample string 2",
      "Value": "sample string 3"
    }
  ]
}