Sorry, no results found for "".

Show examples in:
Javascript HTTP

Content Management API > Plugin

Plugin

Plugins enable developers to replace DatoCMS field components with HTML5 applications so the editing experiences of the DatoCMS web app can be customized.

Object payload

id string

RFC 4122 UUID of plugin expressed in URL-safe base64 format

Example: "RMAMRffBRlmBuDlQsIWZ0g"
type string

Must be exactly "plugin".

name string

The name of the plugin

Example: "5 stars"
description null, string

A description of the plugin

Example: "A better rating experience!"
url string

The entry point URL of the plugin

Example: "https://cdn.rawgit.com/datocms/extensions/master/samples/five-stars/extension.js"
parameters object

Global plugin configuration. Plugins can persist whatever information they want in this object to reuse it later.

Example: { devMode: true }
package_name null, string

NPM package name of the plugin (or null if it's a private plugin)

Example: "datocms-plugin-star-rating-editor"
package_version null, string

The installed version of the plugin (or null if it's a private plugin)

Example: "0.0.4"
permissions

Permissions granted to this plugin

Type: Array<string>
meta.version string

Version of the plugin. Legacy plugins are v1, new plugins are v2

Example: "2"
plugin_type null, enum Deprecated

The type of field extension a legacy plugin implements

This field makes sense for legacy plugins only. Modern plugins declare their capabilities at run-time.

field_editor

Field editor plugin

sidebar

Sidebar plugin

field_addon

Field addon plugin

field_types Deprecated

On which types of field in which a legacy plugin can be used

This field makes sense for legacy plugins only. Modern plugins declare their capabilities at run-time.

Type: null, Array<string>
parameter_definitions null, object Deprecated

The schema for the parameters a legacy plugin can persist

This field makes sense for legacy plugins only. Modern plugins declare can store anything they want in the parameters attribute.

global Array
instance Array

Available endpoints