Plugin content-type configuration

System Information
  • Strapi Version: 4.1.7
  • Operating System: macOS
  • Database: litesql
  • Node Version: 16.14.2
  • NPM Version:
  • Yarn Version: 1.22.11


I’m trying to develop plugin which would add some general content-types like pages and having trouble to add configuration to the plugins specific content type (view configuration, like which field is editable etc). I’ve landed on doing update query on core-store with configuration dump in a json file as the configuration I’d like to have.

const config = require("./content-types/page/config");

const result = await strapi.query(“strapi::core-store”).update({
where: {
key: “”,
data: config,

It is just not updating the configuration, the result is the old existing configuration. Could anyone point me in the right direction please… ?

Ok, I’ve managed to accomplish this by store.set:

const result = await strapi
.store({ type: “plugin”, name: “content_manager” })
key: “”,
value: config,

Is this the appropriate way to achieve this ?