plugin

Update plugin

Pull in git updates for plugin {RepoName}. Supports an optional ?stream=true query parameter for streaming output. Refused when the block the upgrade would land differs materially from the accepted one (or nothing is accepted for this plugin): the reply is then {Status: "Error", Code: "PrivacyMismatch", privacyChanged: true, plugin, pending} -- the same shape as POST /api/plugin's refusal -- and nothing is changed; POST privacyAccepted (below) to proceed. Also refused, without Code, when git fetch fails (offline).

get/api/plugin/{RepoName}/upgrade

Response

Plugin upgraded, or refused

Status'OK' | 'Error'
Messagestring
Code'PrivacyMismatch'

Present only on a privacy refusal, so a script can tell it from any other error without parsing Message. The same field on POST /api/plugin and POST /api/plugin/{RepoName}/upgrade.

privacyChangedboolean

true on a privacy refusal.

pluginstring

On a privacy refusal: the plugin (for an install, possibly a dependency plugin) whose block must be reviewed.

pendingobject nullable

On a privacy refusal: the block to review (null = no disclosure); post it back as privacyAccepted to proceed.

Changes