Function update_plugin

Source
pub async fn update_plugin<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>(
    plugin_id: String,
    update_request: UpdatePluginRequest,
    state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>,
) -> Result<HttpResponse, ApiError>
Expand description

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.

§Arguments

  • plugin_id - The ID of the plugin to update.
  • update_request - The update request containing the fields to update.
  • state - The application state containing the plugin repository.

§Returns

The updated plugin model.