putToolsActivationWithHttpInfo method

Future<Response> putToolsActivationWithHttpInfo(
  1. ActivationReq activationReq
)

Switches tools on and off for the caller's org and project, and answers with the resulting activated set.

Switches tools on and off for the caller's org and project, and answers with the resulting activated set. It is the ONE write path that turns skills, plugins and connectors into callable tools — an unactivated tool is listed by discovery but refused 403 at dispatch. Activate is applied before Deactivate, so a name in both lists ends up off. More than 256 toggles in one request is refused 413.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> putToolsActivationWithHttpInfo(ActivationReq activationReq,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/tools/activation';

  // ignore: prefer_final_locals
  Object? postBody = activationReq;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}