API Reference

Groups.updateMember

Updates a member's status in a group.

This can be used to promote a member to admin, or demotion.


Syntax

bool groups.updateMember ( int groupId, int uid, int memberType )

Arguments

NameTypeRequiredDefault valueDescription
groupIdintRequirednoneThe ID of the group that you are updating the member type in.
uidintRequirednoneThe ID of the member you are updating.
memberTypeintRequirednoneThe updated member type that you are assigning to the user ID.
The possible values for memberType are:
  • 1 (invited)
  • 2 (member)
  • 9 (admin)

Sample Response

Sample REST Response
http://api.filemobile.com/services/rest/groups/updateMember?groupId=[GROUP_ID]&uid=[USER_ID]&memberType=[UPDATED_USER_TYPE]&APIKEY=[APIKEY]
<?xml version="1.0" encoding="UTF-8"?>
<result>1</result>
Sample JSON Response
{
    "status": true,
    "result": 1
}

Code examples

0 comments

Be the first to comment on updateMember.

Add a Comment

  • captcha