updateUserCustomStatusWithHttpInfo method
Future<Response>
updateUserCustomStatusWithHttpInfo(
- String userId,
- MmUpdateUserCustomStatusRequest mmUpdateUserCustomStatusRequest
Update user custom status
Updates a user's custom status by setting the value in the user's props and updates the user. Also save the given custom status to the recent custom statuses in the user's props ##### Permissions Must be logged in as the user whose custom status is being updated.
Note: This method returns the HTTP Response
.
Parameters:
-
String userId (required): User ID
-
MmUpdateUserCustomStatusRequest mmUpdateUserCustomStatusRequest (required): Custom status object that is to be updated
Implementation
Future<Response> updateUserCustomStatusWithHttpInfo(
String userId,
MmUpdateUserCustomStatusRequest mmUpdateUserCustomStatusRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/status/custom'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = mmUpdateUserCustomStatusRequest;
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,
);
}