2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-27 21:26:43 +00:00
Oliver 836b5bc741 Update plugin docs
- Create separate files for each mixin
- Remove old "report" plugin docs
2022-01-13 09:37:09 +11:00

540 B

title
title
Action Plugins

ActionMixin

Arbitrary "actions" can be called by POSTing data to the /api/action/ endpoint. The POST request must include the name of the action to be performed, and a matching ActionPlugin plugin must be loaded by the server. Arbitrary data can also be provided to the action plugin via the POST data:

POST {
    action: "MyCustomAction",
    data: {
        foo: "bar",
    }
}

For an example of a very simple action plugin, refer to /InvenTree/plugin/builtin/action/simpleactionplugin.py