postAccountAppearanceWithHttpInfo method
Stores the caller's appearance preference on their IAM account, preserving every other field of the row.
Stores the caller's appearance preference on their IAM account, preserving every other field of the row. The accent is validated as a real colour token before it is stored; an unset or invalid axis is dropped rather than stored.
Note: This method returns the HTTP Response.
Parameters:
- Appearance appearance (required):
Implementation
Future<Response> postAccountAppearanceWithHttpInfo(Appearance appearance,) async {
// ignore: prefer_const_declarations
final path = r'/v1/account/appearance';
// ignore: prefer_final_locals
Object? postBody = appearance;
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,
);
}