PUT
api/v1/u/preferences

Updates a user's preferences

Body Parameters

The preferences in which to edit.

UserPreference
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

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
}

Response

ApiResponse

Response Formats

application/json

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