Ad Widget

Collapse

API: add action conditions to existing action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clab02
    Junior Member
    • Jun 2012
    • 2

    #1

    API: add action conditions to existing action

    Hello,
    I've been able to do most things through the API so far. I'm actually using andrew farleys php handler for it, but don't worry about that. I'm trying to work out how to add an action condition to an existing action.
    This does not work:
    Code:
    {
        "auth": "--snip--",
        "method": "action.create",
        "id": 1,
        "params": {
            "actionid": "290",
            "conditions": [
                {
                    "conditiontype": "16",
                    "operator": "7",
                    "value": ""
                }
            ]
        },
        "jsonrpc": "2.0"
    }
    Further notes: End-goal is to add this condition, which is "Maintenance status not in "maintenance" " to every action, because none of them were built with it in the first place.
  • clab02
    Junior Member
    • Jun 2012
    • 2

    #2
    Sadly, no help from the fourm, but the solution eventually presented itself. If you wish to add a condition to an exsisting action, You have to use the update function, and provide all of the already exsisting conditions and operations in the update.

    Comment

    Working...