Preference

Methods described in this section relate to the preferences API. These methods can be accessed at TenableAD.preference.

class PreferenceAPI(api: restfly.session.APISession)[source]
details() Dict[source]

Get the user’s preferences

Returns

The user’s preferences object

Return type

dict

Examples

>>> tad.preference.details()
update(**kwargs) Dict[source]

Update the user’s preferences

Parameters
  • language (optional, str) – The language of product for the current user.

  • preferred_profile_id (optional, int) – The profile identifier to use after login for the current user.

Returns

The user’s preferences object

Example

>>> tad.preference.update(
...     language='en',
...     preferred_profile_id=1
... )