CreatorHero
CreatorHero API

User Settings

Dashboard settings of the authenticated user.


Get user settings

GET
https://backend.creatorhero.com
/dashboard/api/v1/user/settings

Settings of the authenticated user; created with default values on the first call.

Get user settings › Responses

200

Settings

chartType
​UserSettingsUiChartType · enum · required

The preferred chart type of the user. Default: Line

Enum values:
Line
Horizontal
HorizontalBar
theme
​UserSettingsUiTheme · enum · required

The preferred dashboard theme of the user. Default: System

Enum values:
System
Dark
Light
applyThemeOnOnlyFans
​boolean · required
textRatioCalculation
​UserSettingsUiTextRatioCalculation · enum · required

The preferred text ratio calculation of the user. Default: UseNewSubsRevenue

Enum values:
UseNewSubsRevenue
UseAllSubsRevenue
showCents
​boolean · required

Whether to show USD cents in currency at dashboard for this user. Default: false

seenTutorial
​boolean · required

Boolean whether the user has seen the dashboard tutorial. Default: false

seenReferralsPopup
​boolean · required

Boolean whether the user has seen the dashboard referrals popup. Default: false

lastNewsletterPopUpSeenAt
​string · date-time

The date and time when the user has seen the newsletter popup.


deprecated

Update user settings (deprecated)

POST
https://backend.creatorhero.com
/dashboard/api/v1/user/settings

Deprecated: use PATCH /dashboard/api/v1/user/settings, which takes the same body.

Update user settings (deprecated) › Request Body

seenReferralsPopup
​boolean

The boolean, if the user has seen the dashboard referral popup, to be updated.

lastNewsletterPopUpSeenAt
​string · date-time

The date and time when the user last saw the newsletter popup.

chartType
​UserSettingsUiChartType · enum

The chart type to be updated.

Enum values:
Line
Horizontal
HorizontalBar
theme
​UserSettingsUiTheme · enum

The theme to be updated.

Enum values:
System
Dark
Light
applyThemeOnOnlyFans
​boolean

The boolean, if the user wants to show custom onlyfans theme, to be updated.

textRatioCalculation
​UserSettingsUiTextRatioCalculation · enum

The text ratio calculation to be updated.

Enum values:
UseNewSubsRevenue
UseAllSubsRevenue
seenTutorial
​boolean

The boolean, if the user has seen the dashboard tutorial, to be updated.

Update user settings (deprecated) › Responses

Updated settings

chartType
​UserSettingsUiChartType · enum · required

The preferred chart type of the user. Default: Line

Enum values:
Line
Horizontal
HorizontalBar
theme
​UserSettingsUiTheme · enum · required

The preferred dashboard theme of the user. Default: System

Enum values:
System
Dark
Light
applyThemeOnOnlyFans
​boolean · required
textRatioCalculation
​UserSettingsUiTextRatioCalculation · enum · required

The preferred text ratio calculation of the user. Default: UseNewSubsRevenue

Enum values:
UseNewSubsRevenue
UseAllSubsRevenue
showCents
​boolean · required

Whether to show USD cents in currency at dashboard for this user. Default: false

seenTutorial
​boolean · required

Boolean whether the user has seen the dashboard tutorial. Default: false

seenReferralsPopup
​boolean · required

Boolean whether the user has seen the dashboard referrals popup. Default: false

lastNewsletterPopUpSeenAt
​string · date-time

The date and time when the user has seen the newsletter popup.


Update user settings

PATCH
https://backend.creatorhero.com
/dashboard/api/v1/user/settings

Changes only the fields given in the JSON body; a field with a wrong type or value is ignored. Returns all settings. Fields: chartType, textRatioCalculation, theme (values as in the response), showCents, applyThemeOnOnlyFans, seenTutorial, seenReferralsPopup (booleans) and lastNewsletterPopUpSeenAt (YYYY-MM-DDTHH:MM:SS, without time zone).

Update user settings › Request Body

seenReferralsPopup
​boolean

The boolean, if the user has seen the dashboard referral popup, to be updated.

lastNewsletterPopUpSeenAt
​string · date-time

The date and time when the user last saw the newsletter popup.

chartType
​UserSettingsUiChartType · enum

The chart type to be updated.

Enum values:
Line
Horizontal
HorizontalBar
theme
​UserSettingsUiTheme · enum

The theme to be updated.

Enum values:
System
Dark
Light
applyThemeOnOnlyFans
​boolean

The boolean, if the user wants to show custom onlyfans theme, to be updated.

textRatioCalculation
​UserSettingsUiTextRatioCalculation · enum

The text ratio calculation to be updated.

Enum values:
UseNewSubsRevenue
UseAllSubsRevenue
seenTutorial
​boolean

The boolean, if the user has seen the dashboard tutorial, to be updated.

Update user settings › Responses

Updated settings

chartType
​UserSettingsUiChartType · enum · required

The preferred chart type of the user. Default: Line

Enum values:
Line
Horizontal
HorizontalBar
theme
​UserSettingsUiTheme · enum · required

The preferred dashboard theme of the user. Default: System

Enum values:
System
Dark
Light
applyThemeOnOnlyFans
​boolean · required
textRatioCalculation
​UserSettingsUiTextRatioCalculation · enum · required

The preferred text ratio calculation of the user. Default: UseNewSubsRevenue

Enum values:
UseNewSubsRevenue
UseAllSubsRevenue
showCents
​boolean · required

Whether to show USD cents in currency at dashboard for this user. Default: false

seenTutorial
​boolean · required

Boolean whether the user has seen the dashboard tutorial. Default: false

seenReferralsPopup
​boolean · required

Boolean whether the user has seen the dashboard referrals popup. Default: false

lastNewsletterPopUpSeenAt
​string · date-time

The date and time when the user has seen the newsletter popup.