TagMangoTagMango Docs
Gamification

Update Points For Users

PATCH
/api/v1/external/gamification/points/assign

Update points for multiple users at once.

  • Provides unique identifiers for the points assigned to the users
  • There are different categories of points assign by the TagMango system - dailyActive, likeOnPost, commentOnPost, messageInRoom, createPost, 10perCourseCompletion, 50perCourseCompletion, 100perCourseCompletion, attendance, signUpThroughAffiliate

Note

  • This endpoint can be used to assign points to multiple users at once.
  • It can also be used to revoke points from users by passing negative score.
AuthorizationBearer <token>

In: header

Header Parameters

x-whitelabel-host*string

Host name of the dashboard, ex: mydomain.tagmango.com

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PATCH "https://api-prod-new.tagmango.com/api/v1/external/gamification/points/assign" \  -H "x-whitelabel-host: string" \  -H "Content-Type: application/json" \  -d '{    "fanIds": [      "646dd0eb159d8b7a7f5a9c29"    ],    "score": 10  }'
{
  "646dd0eb159d8b7a7f5a9c29": "646dd0eb159d8b7a7f5a9c29"
}
{
  "code": 400,
  "type": "Bad request",
  "statusMessage": "BAD_REQUEST",
  "message": "Invalid request",
  "success": false
}
{
  "code": 401,
  "type": "Unauthorized",
  "statusMessage": "UNAUTHORIZED",
  "message": "Invalid token",
  "success": false
}