This method allows to update existing actions.

    Parameters

    Action properties to be updated.

    The property must be defined for each action, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

    Returns an object containing the IDs of the updated actions under the property.

    Examples

    Disable action

    Disable action, that is, set its status to “1”.

    Request:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "actionids": [
    5. ]
    6. },
    7. "id": 1
    8. }

    Source

    CAction::update() in frontends/php/include/classes/api/services/CAction.php.