registerTermsOfServiceActionWithHttpInfo method
Future<Response>
registerTermsOfServiceActionWithHttpInfo(
- String userId,
- MmRegisterTermsOfServiceActionRequest mmRegisterTermsOfServiceActionRequest
Records user action when they accept or decline custom terms of service
Records user action when they accept or decline custom terms of service. Records the action in audit table. Updates user's last accepted terms of service ID if they accepted it. Minimum server version: 5.4 ##### Permissions Must be logged in as the user being acted on.
Note: This method returns the HTTP Response
.
Parameters:
-
String userId (required): User GUID
-
MmRegisterTermsOfServiceActionRequest mmRegisterTermsOfServiceActionRequest (required): terms of service details
Implementation
Future<Response> registerTermsOfServiceActionWithHttpInfo(
String userId,
MmRegisterTermsOfServiceActionRequest mmRegisterTermsOfServiceActionRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/terms_of_service'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = mmRegisterTermsOfServiceActionRequest;
final queryParams = <MmQueryParam>[];
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,
);
}