getPrefWithHttpInfo method

Future<Response> getPrefWithHttpInfo()

Returns the signed-in caller's OWN preference document — the theme, density and pinned nav that follow them across every Hanzo surface.

Returns the signed-in caller's OWN preference document — the theme, density and pinned nav that follow them across every Hanzo surface. There is no path to another user's preferences: not for an org admin, not for a platform SuperAdmin, because the subject is built from the validated credential and is the mandatory predicate on the read. A caller who has never saved anything gets an empty document at 200, never a 404, so the user menu always renders.

Note: This method returns the HTTP Response.

Implementation

Future<Response> getPrefWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/pref';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}