Update my user information
Body
passwordpassword<password>currentPasswordpassword<password>emailemailnew email used for login and service communications
displayNamestringnew name of the user in its representations
nsfwPolicystringtruefalsebothnew NSFW display policy
nsfwFlagsDisplayedNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsHiddenNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsWarnedNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
nsfwFlagsBlurredNSFWFlag0124NSFW flags (can be combined using bitwise or operator)
0NONE1VIOLENT2EXPLICIT_SEX
aiUsagesHiddenArray<VideoAIUsageSet>1234PeerTube >= 9.0 Videos with these AI usages are hidden from video lists
p2pEnabledbooleanwhether to enable P2P in the player or not
autoPlayVideobooleannew preference regarding playing videos automatically
autoPlayNextVideobooleannew preference regarding playing following videos automatically
autoPlayNextVideoPlaylistbooleannew preference regarding playing following playlist videos automatically
videosHistoryEnabledbooleanwhether to keep track of watched history or not
videoLanguagesArray<string>list of languages to filter videos down to
videoCategoriesArray<integer> | nulllist of categories to filter videos down to (null means all categories)
videoLivestringtruefalsebothfilter videos down to lives (true), VODs (false) or display both
languagestringdefault language for this user
themestringnoInstanceConfigWarningModalbooleannoAccountSetupWarningModalbooleannoWelcomeModalbooleanResponse
successful operation
Authorization
OAuth2oauth2Authenticating via OAuth requires the following steps:
- Have an activated account
- Generate an access token for that account at
/api/v1/users/token. - Make requests with the Authorization: Bearer <token> header
- Profit, depending on the role assigned to the account
Note that the access token is valid for 1 day and is given along with a refresh token valid for 2 weeks.
Scopes: user