PUT
api/v1/u/preferences

Body Parameters

UserPreferenceUpdate
Name (Data Type)Description
disableCSS: boolean

nightMode: boolean

language: string

Additional information

  • String length: inclusive between 0 and 50

openInNewWindow: boolean

enableAdultContent: boolean

displayVotes: boolean

displaySubscriptions: boolean

useSubscriptionsMenu: boolean

bio: string

Additional information

  • String length: inclusive between 0 and 100

displayAds: boolean

displayCommentCount: integer

highlightMinutes: integer

vanityTitle: string

Additional information

  • String length: inclusive between 0 and 50

collapseCommentLimit: integer

blockAnonymized: boolean

commentSort: SafeEnumOfCommentSortAlgorithm

Request Formats

application/json

Sample:
{
  "disableCSS": true,
  "nightMode": true,
  "language": "sample string 1",
  "openInNewWindow": true,
  "enableAdultContent": true,
  "displayVotes": true,
  "displaySubscriptions": true,
  "useSubscriptionsMenu": true,
  "bio": "sample string 2",
  "displayAds": true,
  "displayCommentCount": 1,
  "highlightMinutes": 1,
  "vanityTitle": "sample string 3",
  "collapseCommentLimit": 1,
  "blockAnonymized": true,
  "commentSort": null
}

Response

ApiResponse

Response Formats

application/json

Sample:
{
  "success": true,
  "version": "1.1.6291.19775"
}