Update a plugin setting
Updates a plugin setting's config and is_active. key, config and is_active must all be present in the body.
The setting's key cannot be changed: the key sent is validated (it must reference a registered plugin) but the stored key is retained regardless. The config is validated against the target plugin's configuration serializer. If the plugin is no longer registered in code, the request is rejected with plugin_setting_100_1.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the plugin setting.
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.
The key of a plugin registered in code. An unknown key is rejected as a validation error.
Whether the plugin is active for this installation.
The updated plugin setting.
A stored override for a plugin, carrying its own configuration and active flag.
The unique identifier of the plugin setting.
The key of the plugin this setting belongs to. Unique across all settings.
The display name of the plugin, read from the plugin definition.
The description of the plugin, read from the plugin definition.
Whether the plugin is active for this installation.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested plugin setting does not exist.
The request is well-formed but violates a business rule of the plugin settings — a setting already exists for the given key (plugin_setting_100_2, on create), or the plugin definition for the setting's key is no longer registered (plugin_setting_100_1, on update).
PUT /api/v1/remote/1/plugins/{id}/ 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?

