pkgs api manage the indexes and tools installed on the system.
An index file contains the info about a core and its tools. You can see an example at https://downloads.arduino.cc/packages/package_index.json
index files are saved (with an urlencoded filename) in the folder ~/.arduino-create/indexes
You can list the indexes installed in the system with this simple GET
You can add a new index with a POST request
You can now check if the new package_index was downloaded by repeating List Indexes.
You can add a new index with a POST request
You can now check if the new package_index was removed by repeating List Indexes.
A tool is an executable that can be used to program a board.
tools are saved in the folder ~/.arduino-create with a structure like {packager}/{name}/{version}
You can list the available tools that could be installed from an index with this simple GET. (Remember to add indexes)
You can list the tools installed in the system with this simple GET
You can install one of the available tools with a PUT request
You can remove one of the installed tools with a DELETE request