daphtan
10 years agoDirector
New ranking structure added - how does it affect API?
I updated my community's ranking structure. How will I know which ranking is the new one if they are labeled the same thing? Is there a way to differentiate them in the rest API?
Thanks!
daphtan - Yes, their ID would be unique if you have created the new rank. While making the REST call, /restapi/vc/users/id/[id]/ranking you will get following response:
<response status="success"> <ranking type="ranking" href="/rankings/id/1"> <display> <left_image type="image" null="true"/> <right_image type="image" null="true"/> <thread_image type="image" null="true"/> <bold type="boolean">true</bold> <color type="string">b2b2b2</color> </display> <name type="string">Community Manager</name> <id type="int">1</id> </ranking> </response>
If you create another rank with the same name, it'd have a different ID.
I hope this helps.