postScriptsWithHttpInfo method
Create a script
Note: This method returns the HTTP Response
.
Parameters:
- ScriptCreateRequest scriptCreateRequest (required): The script to create.
Implementation
Future<Response> postScriptsWithHttpInfo(
ScriptCreateRequest scriptCreateRequest,
) async {
final path = r'/scripts';
// ignore: prefer_final_locals
Object? postBody = scriptCreateRequest;
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,
);
}