Grant a plugin one of its manifest-declared capabilities
POST/plugins/:id/grants
The grant is install-wide, not per-user: it unlocks the capability for the plugin as a whole. What each call then does with the capability (e.g. whose hosts ctx.hosts.list() returns) is still scoped to whichever user's request triggered it.
Request
Responses
- 200
- 400
- 403
- 404
The capability is now granted.
The capability is not declared in the plugin's manifest.
The caller lacks admin.plugins.manage.
No such plugin.