Social - Community - Member - Update - Type
/social/community/member/update/type/{communityid}/{personid}/{usertype}
Changes a community member's type in the community.
Authentication
Required, see Auth - Login. Must be a system admin, the owner, or a moderator (except when changing ownership, in which case moderation rights are not sufficient).
Arguments
communityid (required)
Community ID to change a members status in, can also be a regex (community ID - regex) provided that matches only a single community.
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)
Example
Example Response
{ 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)
{ "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" } } }