- Returning.AI
- Auth
- User
- Server
- Category
- Role
- Channel
- Language Setting
- Leaderboard
- Badge
- Gamification
- Api Token
- Custom Userfields
- Integration
set xp setting
Developing
POST
/gamifications/{serverId}/xp-setting
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
serverId
string
required
Example:
{{serverId}}
Body Params application/json
enabled
boolean
required
picture
object
required
enabled
boolean
required
xp
integer
required
aboutme
object
required
enabled
boolean
required
xp
integer
required
quote
object
required
enabled
boolean
required
xp
integer
required
message
object
required
enabled
boolean
required
xp
integer
required
time
integer
required
reply
object
required
enabled
boolean
required
xp
integer
required
time
integer
required
react
object
required
enabled
boolean
required
xp
integer
required
time
integer
required
object
object
required
enabled
boolean
required
xp
integer
required
time
integer
required
analysis
object
required
enabled
boolean
required
xp
integer
required
time
integer
required
visit
object
required
enabled
boolean
required
xp
integer
required
referral
object
required
enabled
boolean
required
xp
integer
required
comment
object
required
enabled
boolean
required
xp
integer
required
time
integer
required
refer
object
required
enabled
boolean
required
xp
integer
required
tradingDiscussions
object
required
enabled
boolean
required
xp
integer
required
time
integer
required
Example
{
"enabled": true,
"picture": {
"enabled": false,
"xp": 3
},
"aboutme": {
"enabled": false,
"xp": 3
},
"quote": {
"enabled": false,
"xp": 3
},
"message": {
"enabled": true,
"xp": 10,
"time": 3
},
"reply": {
"enabled": true,
"xp": 10,
"time": 3
},
"react": {
"enabled": true,
"xp": 2,
"time": 1
},
"object": {
"enabled": true,
"xp": 30,
"time": 3
},
"analysis": {
"enabled": true,
"xp": 50,
"time": 3
},
"visit": {
"enabled": true,
"xp": 10
},
"referral": {
"enabled": false,
"xp": 3
},
"comment": {
"enabled": true,
"xp": 20,
"time": 3
},
"refer": {
"enabled": false,
"xp": 100
},
"tradingDiscussions": {
"enabled": true,
"xp": 20,
"time": 3
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.returning.ai/api/v1/gamifications//xp-setting' \
--header 'Content-Type: application/json' \
--data-raw '{
"enabled": true,
"picture": {
"enabled": false,
"xp": 3
},
"aboutme": {
"enabled": false,
"xp": 3
},
"quote": {
"enabled": false,
"xp": 3
},
"message": {
"enabled": true,
"xp": 10,
"time": 3
},
"reply": {
"enabled": true,
"xp": 10,
"time": 3
},
"react": {
"enabled": true,
"xp": 2,
"time": 1
},
"object": {
"enabled": true,
"xp": 30,
"time": 3
},
"analysis": {
"enabled": true,
"xp": 50,
"time": 3
},
"visit": {
"enabled": true,
"xp": 10
},
"referral": {
"enabled": false,
"xp": 3
},
"comment": {
"enabled": true,
"xp": 20,
"time": 3
},
"refer": {
"enabled": false,
"xp": 100
},
"tradingDiscussions": {
"enabled": true,
"xp": 20,
"time": 3
}
}'
Responses
🟢200Success
application/json
Body
meta
object
optional
success
boolean
required
message
string
required
devMessage
string
required
body
object
optional
_id
string
optional
serverId
string
optional
__v
integer
optional
createdAt
string
optional
updatedAt
string
optional
xpSetting
object
optional
tiers
object
optional
badges
object
optional
Example
{
"meta": {
"success": true,
"message": "XP Setting has been updated successfully",
"devMessage": "XP Setting has been updated successfully"
},
"body": {
"_id": "669e2a35d697876b6ff8dfc6",
"serverId": "669b462658695ff095d431af",
"__v": 0,
"createdAt": "2024-07-22T09:45:25.249Z",
"updatedAt": "2024-07-25T17:20:11.199Z",
"xpSetting": {
"enabled": true,
"picture": {
"enabled": false,
"xp": 3
},
"aboutme": {
"enabled": false,
"xp": 3
},
"quote": {
"enabled": false,
"xp": 3
},
"message": {
"enabled": true,
"xp": 10,
"time": 3
},
"reply": {
"enabled": true,
"xp": 10,
"time": 3
},
"react": {
"enabled": true,
"xp": 2,
"time": 1
},
"object": {
"enabled": true,
"xp": 30,
"time": 3
},
"analysis": {
"enabled": true,
"xp": 50,
"time": 3
},
"visit": {
"enabled": true,
"xp": 10
},
"referral": {
"enabled": false,
"xp": 3
},
"comment": {
"enabled": true,
"xp": 20,
"time": 3
},
"refer": {
"enabled": false,
"xp": 100
},
"tradingDiscussions": {
"enabled": true,
"xp": 20,
"time": 3
}
},
"tiers": {
"values": [],
"enabled": true,
"display": {
"levels": true,
"tiers": true
}
},
"badges": {
"values": [
{
"title": "Major",
"action": "custom",
"quantity": "3",
"description": "One trade on a live account that makes 30%. Send account statement to #Tickmill-badge channel",
"attachRequired": "true",
"awarded": "true",
"id": "26db52f5-a9df-420a-90cf-87a76c2683a8",
"image": "https://chartsnapshot.s3.amazonaws.com/apireturningai/tester/1721891103626-d763c952a89131696dd3bdf79fa0108.png"
},
]
}
}
}
Modified at 2024-07-27 17:05:27