Skip to main content

Plugins

Discovering which modules a deployment has, and the instance ids every plugin-scoped route needs.

Every path on this page is plugin-scoped: {pluginInstalledId} is the id of the module instance you are talking to, from Plugins. A deployment can run more than one instance of the same module, and the id is what tells them apart.

9 endpoints. Every one needs Authorization: Bearer <access token>; see Getting Started.

Permissions

The server authorises every call against the signed-in user's permission keys — the same keys the client is held to. For this module they are the PluginInstance* and PluginSetting* key families. See the Permission Keys reference.

Attributes​

MethodPathWhat it does
GETplugin-instances/plugins/{pluginInstalledId}/attributesPlugin instance attribute get all
PUTplugin-instances/plugins/{pluginInstalledId}/attributesPlugin instance attribute save all
GETplugin-instances/plugins/{pluginInstalledId}/attributes/{attributeName}Plugin instance attribute get
PUTplugin-instances/plugins/{pluginInstalledId}/attributes/{name}Plugin instance attribute save
GETplugin-instances/plugins/{pluginInstalledId}/attributes/by-namesPlugin instance attribute get all by names

PUT plugin-instances/plugins/{pluginInstalledId}/attributes​

Plugin instance attribute save all.

Payload

Request body

[
{
"valueDouble": 125.5,
"settingType": "string",
"pluginInstanceID": "3b7f5c2e-9a41-4d8b-bb0e-7c1a2d3e4f50",
"name": "Example",
"valueNumeric": 125.5,
"valueString": "string"
}
]

PUT plugin-instances/plugins/{pluginInstalledId}/attributes/{name}​

Plugin instance attribute save.

ParameterInRequiredType
namepathyesstring
valueStringquerynostring
valueNumericquerynodouble
Payload

Response

{
"valueDouble": 125.5,
"settingType": "string",
"pluginInstanceID": "3b7f5c2e-9a41-4d8b-bb0e-7c1a2d3e4f50",
"name": "Example",
"valueNumeric": 125.5,
"valueString": "string"
}

Instances​

MethodPathWhat it does
GETplugin-instances/plugins/{pluginInstalledId}/instances/{pluginInstanceId}Plugin instance get

Plugin instance delete​

MethodPathWhat it does
DELETEplugin-instances/plugins/{pluginInstalledId}/plugin-instance-deletePlugin instance delete

Plugin instance save​

MethodPathWhat it does
POSTplugin-instances/plugins/{pluginInstalledId}/plugin-instance-savePlugin instance save

POST plugin-instances/plugins/{pluginInstalledId}/plugin-instance-save​

Plugin instance save.

Payload

Request body

{
"serviceAccessKey": "string",
"pluginInstanceItem": {
"instanceAttributes": [
{
"valueDouble": 125.5,
"settingType": "string",
"pluginInstanceID": "3b7f5c2e-9a41-4d8b-bb0e-7c1a2d3e4f50",
"name": "Example",
"valueNumeric": 125.5,
"valueString": "string"
}
],
"pluginInstanceID": "3b7f5c2e-9a41-4d8b-bb0e-7c1a2d3e4f50",
"accessHash": "string",
"dataOwnerID": 42,
"name": "Example"
}
}

Response

{
"instanceAttributes": [
{
"valueDouble": 125.5,
"settingType": "string",
"pluginInstanceID": "3b7f5c2e-9a41-4d8b-bb0e-7c1a2d3e4f50",
"name": "Example",
"valueNumeric": 125.5,
"valueString": "string"
}
],
"pluginInstanceID": "3b7f5c2e-9a41-4d8b-bb0e-7c1a2d3e4f50",
"accessHash": "string",
"dataOwnerID": 42,
"name": "Example"
}

Plugin instances get all​

MethodPathWhat it does
GETplugin-instances/plugins/{pluginInstalledId}/plugin-instances-get-allPlugin instances get all