The name of the plugin
A description of the plugin
The entry point URL of the plugin
Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.
The installed version of the plugin (or null if it's a private plugin)
Permissions granted to this plugin
import { buildClient } from "@datocms/cma-client-node";async function run() {const client = buildClient({ apiToken: "<YOUR_API_TOKEN>" });const pluginId = "124";const plugin = await client.plugin.update(pluginId, {parameters: { foo: "bar" },});console.log(plugin);}run();
import { buildClient } from "@datocms/cma-client-node";async function run() {const client = buildClient({ apiToken: "<YOUR_API_TOKEN>" });const pluginId = "124";const plugin = await client.plugin.update(pluginId, {package_version: "2.0.0",});console.log(plugin);}run();
import { buildClient } from "@datocms/cma-client-node";async function run() {const client = buildClient({ apiToken: "<YOUR_API_TOKEN>" });const plugin = await client.plugins.update({name: "5 stars",description: "A better rating experience!",url: "https://cdn.rawgit.com/datocms/extensions/master/samples/five-stars/extension.js",permissions: ["currentUserAccessToken"],});console.log(plugin);}run();