Assign group admin api
The "assign group admin" API allows group owners to assign an existing group member as an admin. Group admins can perform actions such as inviting new members, removing members, and updating group info.
Path Parameters
group_id integer required
group id
Query Parameters
client_auth_token string required
Client API token
Header Parameters
access-token string required
user access token
client string required
client access token
expiry string required
timestamp of token expiry
Example: 1531315250
token-type string required
access token type
Example: Bearer
uid string required
user uid
Example: user@quranreflect.com
application/json
Request Body
user_id integer
id of user
Responses
- 200
- 404
OK
Response Headers
application/json
Schema
Example (from schema)
unauthorize
success
Schema
success boolean required
Default value: true
message string
{
"success": true,
"message": "string"
}
Assign as admin in group settings (success false)
{
"success": false,
"message": "Unauthorized request. require page admin role."
}
Assign as admin in group settings (success true)
{
"success": true,
"message": "User amerabbas has been assigned as admin."
}
Not Found
application/json
Schema
Example (from schema)
room not found
user not found
Schema
status integer
success boolean required
Default value: false
error string
{
"status": 0,
"success": false,
"error": "string"
}
{
"status": 404,
"success": false,
"error": "Couldn't find Room with 'id'=1"
}
{
"success": false,
"message": "User not found."
}
Loading...