Links

Set Account Ranks

post
https://api.sonorancms.com
/general/set_account_ranks
Set Account Ranks
{
"id": "YOUR_COMMUNITY_ID",
"key": "YOUR_API_KEY",
"type": "SET_ACCOUNT_RANKS",
"data": [
{
"accountId": "ACCOUNT_UUID",
"set": {"primary": "PRIMARY_RANK_UUID", "secondary": ["SECONDARY_RANK_UUID"]}, // "set", "primary", and "secondary" are all optional
"add": ["SECONDARY_RANK_UUID"], // Optional
"remove": ["SECONDARY_RANK_UUID"] // Optional
}
]
}

Notes

set add and remove can all be used together. add and remove only affect secondary ranks, to set the primary rank use set.primary (use null to unset). remove takes precedence over add (i.e. if both add and remove have the same rank, it is ultimately removed).