updateBadge
- Home
- Points & Loyalty
- SvcBadge
- updateBadge
updateBadge
Updates a 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=updateBadge&badge_id=15085&node_id=188234&type=Title&association=Tier&tier_id=35821&display_component=Profile,Forum,Avatar&name=Administrator Badge&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 |
{ "service":"svcBadge", "action":"updateBadge", "code":1, "message":"Badge Successfully Updated", "item":false } |
Service Information
Service | svcBadge |
Method | updateBadge |
Type | REST |
Response Types | JSON, XML |