Profile & Custom fields

Using profile API you can set basic user profile fields and custom profile fields.

POST /api/user/profile

Headers

Name
Type
Description

authorization*

String

For the profile to be updated, you need to attach the JWT token.

Request Body

Name
Type
Description

profile*

Object

{

name: "User name",

email: "user email address",

discord: "discord username",

telegram: "telegram username",

twitter: "twitter username",

custom: [

{ name: "field_name", value: "value }

]

}

Whenever the custom field is passed. The name you pass must match the one you set on the admin console.

{
   "success": "Profile updated"
}

Last updated