addBadge
- Home
- Points & Loyalty
- SvcBadge
- addBadge
addBadge
Creates a new badge.
Parameters
Name | Description |
node_id required | The primary identifier for your network. |
type required | The type of badge. |
association required | How the badge is assigned or earned. |
display_component required | Where the badge can appear. |
name required | The badge’s name or title. |
img_path optional | Where to same the badge image file. |
img_file optional | The badge image $_FILES. |
type required | The type of badge. |
position optional | The position of a stripe badge on an avatar. |
display_component required | Where the badge can appear. |
name required | The badge’s name or title. |
required_points optional | The number of points required to earn a particular badge. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcBadge?action=addBadge&node_id=188234&type=Title&association=Tier&tier_id=35821&display_component=Profile,Forum&name=Admin Badge&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 |
{ "service":"svcBadge", "action":"addBadge", "code":1, "message":"Badge Successfully Created", "item":{ "status":true, "msg":"The badge has been added.", "badge_id":15855 } } |
Service Information
Service | svcBadge |
Method | addBadge |
Type | REST |
Response Types | JSON, XML |