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

Partially update a plugin setting

Updates a plugin setting. Although this is the partial-update operation, the handler always reads both config and is_active, so both must be sent. The stored key is never changed, and the same validation and error rules as the full update apply.

patch
/plugins/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The unique identifier of the plugin setting.

Body

The body of a plugin setting partial update request. Both config and is_active must be sent — the update handler always reads them. A key may be sent but is ignored; the stored key cannot be changed.

is_activebooleanRequired

Whether the plugin is active for this installation.

Responses
200

The updated 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.

patch/plugins/{id}/
PATCH /api/v1/remote/1/plugins/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "config": {
    "option": "value"
  },
  "is_active": false
}
{
  "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?