...
personid (required)
Community member to change the status of - this will normally be the person's username (normally email address) but can also be their database "_id".
Can also be a comma-separated list of either "_id" or username address, in which case the same operation is applied to each user (for output format see below)
usertype (required)
Type to change the member to (available types: "owner", "content_publisher", "moderator", "member" - note "content_publisher"s are members who can also publish sources)
...
http://infinite.ikanow.com/api/community/member/update/type/4f5e189ada7f00000000510f/user@organization.com/owner
http://infinite.ikanow.com/api/social/community/member/update/status/50a7a290fbf01a3c159895c4/$type/moderator?type=5233614ee4b02e1667b3b822,506c8616fbf042893dd6b3f3,50bcd83cfbf0fd0b27875a82,50bcd83cfbf0fd0b27875aaa
Info |
---|
Code Block |
---|
{
response:
{
action: "Update member type"
success: true
message: "Updated member type successfully"
time: 45
}
}
|
The bulk operation has a slightly different format ("success" is false if any of the requests fail) Code Block |
---|
{
"response": {
"action": "Update member type",
"success": false,
"message": "succeeded=3 failed=1",
"time": 830
},
"data": {
"succeeded": [
"5233614ee4b02e1667b3b822",
"506c8616fbf042893dd6b3f3",
"50bcd83cfbf0fd0b27875a82"
],
"failed": {
"50bcd83cfbf0fd0b27875aaa": "User was not a member of the community"
}
}
} |
|