Set which sessions a session-scoped plugin is activated for (['*'] = all)
PUT/api/plugins/:id/sessions
Set which sessions a session-scoped plugin is activated for (['*'] = all)
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Plugin session activation updated
Plugin is global (not session-scoped), or the body failed validation
The API key is missing, unknown, revoked, or expired
A session-restricted key may not replace the full active set — full activation replacement requires an unrestricted key. Also returned when the API key's role, session or chat scope, or IP allow-list does not allow this operation.
Plugin not found
The plugin is being uninstalled; nothing was changed
The plugin registry could not be written; nothing was changed