patchScriptsIDWithHttpInfo method

Future<Response> patchScriptsIDWithHttpInfo(
  1. String scriptID,
  2. ScriptUpdateRequest scriptUpdateRequest
)

Update a script

Updates properties (name, description, and script) of an invokable script.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> patchScriptsIDWithHttpInfo(
  String scriptID,
  ScriptUpdateRequest scriptUpdateRequest,
) async {
  final path = r'/scripts/{scriptID}'.replaceAll('{scriptID}', scriptID);

  // ignore: prefer_final_locals
  Object? postBody = scriptUpdateRequest;

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

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

  return apiClient.invokeAPI(
    path,
    'PATCH',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes[0],
    authNames,
  );
}