spawnEventEventsSpawnPostWithHttpInfo method
Spawn Event
Spawn a specific event by consuming 1 event token. Member or founder account required.
Note: This method returns the HTTP Response.
Parameters:
- SpawnEventRequest spawnEventRequest (required):
Implementation
Future<Response> spawnEventEventsSpawnPostWithHttpInfo(
SpawnEventRequest spawnEventRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/events/spawn';
// ignore: prefer_final_locals
Object? postBody = spawnEventRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}