Set a User Plugin
PUT
/api/v1/plugins/{id}/me
const url = 'https://example.com/api/v1/plugins/example/me';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/plugins/example/me \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true }'Sets a User Plugin. It requires a signed-in User with the data scope. It can return 401 if the session is missing or expired, 403 if access is denied and 404 if the requested item does not exist. Route: /api/v1/plugins/{id}/me. Inputs: id. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Stable plugin ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
enabled
required
Whether to show this mode for the current User.
boolean
Examplegenerated
{ "enabled": true}Responses
Section titled “Responses”User plugin state changed
Authentication required
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}This plugin does not allow user mode toggles
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Plugin does not exist
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}