Update plugin configuration
Updates mutable plugin fields such as timeout, emit_logs, emit_traces, raw_response, allow_get_invocation, config, and forward_logs. The plugin id and path cannot be changed after creation.
All fields are optional - only the provided fields will be updated.
To clear the config field, pass "config": null.
In: header
Path Parameters
The unique identifier of the plugin
Plugin configuration update. All fields are optional.
Whether to allow GET requests to invoke plugin logic
User-defined configuration accessible to the plugin (must be a JSON object)
Use null to clear the config
Empty Object
Whether to include logs in the HTTP response
Whether to include traces in the HTTP response
Whether to forward plugin logs into the relayer's tracing output
Whether to return raw plugin response without ApiResponse wrapper
Plugin timeout in seconds
int640 <= valueResponse Body
curl -X PATCH "https://loading/api/v1/plugins/string" \ -H "Content-Type: application/json" \ -d '{ "config": { "apiKey": "xyz123", "featureFlag": true }, "emit_logs": true, "forward_logs": true, "timeout": 60 }'{
"data": {
"allow_get_invocation": false,
"config": {
"apiKey": "xyz123",
"featureFlag": true
},
"emit_logs": true,
"emit_traces": false,
"forward_logs": true,
"id": "my-plugin",
"path": "plugins/my-plugin.ts",
"raw_response": false,
"timeout": 60
},
"error": null,
"success": true
}{
"data": null,
"error": "Timeout must be greater than 0",
"success": false
}{
"data": null,
"error": "Unauthorized",
"success": false
}{
"data": null,
"error": "Plugin with id my-plugin not found",
"success": false
}{
"data": null,
"error": "Too Many Requests",
"success": false
}{
"data": null,
"error": "Internal Server Error",
"success": false
}