createDeviceWithHttpInfo method
Create device
Adds a new device to a user, if the same device already exists the call will have no effect
Note: This method returns the HTTP Response
.
Parameters:
- CreateDeviceRequest createDeviceRequest (required):
Implementation
Future<Response> createDeviceWithHttpInfo(
CreateDeviceRequest createDeviceRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/video/devices';
// ignore: prefer_final_locals
Object? postBody = createDeviceRequest;
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,
);
}