attachDeviceIdWithHttpInfo method
Attach mobile device
Attach a mobile device id to the currently logged in session. This will enable push notifications for a user, if configured by the server. ##### Permissions Must be authenticated.
Note: This method returns the HTTP Response
.
Parameters:
- MmAttachDeviceIdRequest mmAttachDeviceIdRequest (required):
Implementation
Future<Response> attachDeviceIdWithHttpInfo(
MmAttachDeviceIdRequest mmAttachDeviceIdRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/sessions/device';
// ignore: prefer_final_locals
Object? postBody = mmAttachDeviceIdRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}