For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a plugin setting

Creates a stored setting for a plugin. key, config and is_active are required.

The key must reference a plugin that is registered in code; an unknown key is rejected as a validation error on the key field. A plugin can have at most one setting, so a second setting for the same key is rejected with plugin_setting_100_2. The config is validated against the configuration serializer declared by the target plugin.

post
/plugins/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

The body of a plugin setting create or full update request. key, config and is_active are required. On update the key is validated but the stored key is never changed.

keystring · max: 500Required

The key of a plugin registered in code. An unknown key is rejected as a validation error.

is_activebooleanRequired

Whether the plugin is active for this installation.

Responses
201

The created plugin setting.

application/json

A stored override for a plugin, carrying its own configuration and active flag.

pkintegerRead-onlyOptional

The unique identifier of the plugin setting.

keystring · max: 500Optional

The key of the plugin this setting belongs to. Unique across all settings.

namestring · nullableRead-onlyOptional

The display name of the plugin, read from the plugin definition.

descriptionstring · nullableRead-onlyOptional

The description of the plugin, read from the plugin definition.

is_activebooleanOptional

Whether the plugin is active for this installation.

post/plugins/
POST /api/v1/remote/1/plugins/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "key": "my_plugin",
  "config": {
    "option": "value"
  },
  "is_active": true
}
{
  "pk": 3,
  "key": "my_plugin",
  "name": "My Plugin",
  "description": "Does something useful.",
  "is_active": true,
  "config": {
    "option": "value"
  },
  "default_config": {
    "option": "default"
  }
}

Last updated

Was this helpful?