Returning.AI
Light Mode
award badge to user
DevelopingPOST
/badges/{id}/awardRequest
Path Params
id
string
required
Example:
b3df14ee-a674-480b-be2a-3f32c9d3a1d9
Body Params application/json
serverId
string
required
userId
string
required
Example
{
"serverId": "{{serverId}}",
"userId": "1"
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
meta
object
required
success
boolean
required
message
string
required
devMessage
string
required
body
array [object {8}]
required
title
string
optional
action
string
optional
quantity
string
optional
description
string
optional
attachRequired
string
optional
awarded
string
optional
id
string
optional
image
string
optional
Example
{
"meta": {
"success": true,
"message": "Badge has been rewarded successfully",
"devMessage": "Badge has been rewarded successfully"
},
"body": [
{
"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 2 months ago