toggle_active_state_for_nodes

Toggle nodes' active state. For more information, see the "Deactivating nodes" section for fixed list fields.

Available from version 10.4+.

Requires permission k.

Variable Description Data type Default
$refs List of node IDs array (json encoded) N/A

Response

Returns the affected nodes' active state (including empty list) and 403 HTTP status if not authorised.

Note: affected nodes can be a bigger list than the one input for category trees because disabling a parent will propagate to all children.

Examples

Disabling two options - 263,264:

[
    263 => 0,
    264 => 0
]

Disabling a category tree parent option - 279:

[
    279 => 0, # Option A (parent)
    285 => 0  # Option A.1 (child)
]

Re-activating a category tree parent option - 279:

[
    279 => 1
]