postScriptsIDInvokeWithHttpInfo method
Future<Response>
postScriptsIDInvokeWithHttpInfo(
- String scriptID, {
- ScriptInvocationParams? scriptInvocationParams,
Invoke a script
Invokes a script and substitutes params
keys referenced in the script with params
key-values sent in the request body.
Note: This method returns the HTTP Response
.
Parameters:
-
String scriptID (required):
-
ScriptInvocationParams scriptInvocationParams:
Implementation
Future<Response> postScriptsIDInvokeWithHttpInfo(
String scriptID, {
ScriptInvocationParams? scriptInvocationParams,
}) async {
final path =
r'/scripts/{scriptID}/invoke'.replaceAll('{scriptID}', scriptID);
// ignore: prefer_final_locals
Object? postBody = scriptInvocationParams;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const authNames = <String>['TokenAuthentication'];
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes[0],
authNames,
);
}