postScriptsWithHttpInfo method

Future<Response> postScriptsWithHttpInfo(
  1. ScriptCreateRequest scriptCreateRequest
)

Create a script

Note: This method returns the HTTP Response.

Parameters:

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,
  );
}