The payload sent to the WaniKani API to update a user's preferences.

interface WKUserPreferencesPayload {
    user: { preferences: Partial<WKUserPreferences> };
}

Properties

Properties

user: { preferences: Partial<WKUserPreferences> }

The user object, as part of the payload.

Type declaration

  • preferences: Partial<WKUserPreferences>

    The user preferences to be updated; only those specified in the object will be updated.