patchScriptsIDWithHttpInfo method
Future<Response>
patchScriptsIDWithHttpInfo(
- String scriptID,
- ScriptUpdateRequest scriptUpdateRequest
Update a script
Updates properties (name
, description
, and script
) of an invokable script.
Note: This method returns the HTTP Response
.
Parameters:
-
String scriptID (required): The script ID.
-
ScriptUpdateRequest scriptUpdateRequest (required): Script update to apply
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,
);
}