Learn how to work with resources like patterns, brushes, and gradients
Resources are various files that come bundled with Krita. These are some types of resources that come with Krita. Things like external brush packs and "bundles" are adding additional resources.
How did I find all these available resource types? In the application main menu go to Settings > Explore Resources Cache Database. Go to the resources tab in this window. In here there will be a resource type field where you can see the ID.
If you want to grab what is available for a type of resource you can do it through the Resources API. You cannot grab everything at once, but have to grab resources by type first like this.
Note that some of these currently are not working, but they should hopefully be working by the time Krita 5.0 comes out. This is because Krita 5.0 is re-writing how resources are managed. This is what is causing some resource types to be in a broken state at the moment.
Resources are all have a similar format. They are mostly file references with a bit of metadata attached to them. They really cannot do much by themselves. Other API calls require resource objects, though, so we need to understand how to grab them. Now that we do, let' work with a brush preset a bit and change some properties.
This changes a few properties on the selected brush. Most of the settings for a brush preset cannot be changed through the API currently. You only have these limited options.
There really isn't much you can do with resources right now if you are really wanting full control. The Krita View API Class in the Krita library is where you can set active resources, but there isn't a lot else beside that. If there are additional things you would like to do, make sure to put in a feature request, or ask for help on the Krita artist forum.
Head to the Krita artists where we have a dedicated area for plugin development and give any feedback you might have.