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