Remove group member api
The "remove group member" API allows a group admin to remove a member from a group. This can help group admins to manage their group membership and ensure that the group is only accessible to authorized members.
Path Parameters
group id
Query Parameters
Client API token
Header Parameters
user access token
client access token
timestamp of token expiry
access token type
user uid
Request Body
id of user to be removed
- 200
- 401
- 500
OK
Response Headers
Schema
{
"success": true,
"message": "string"
}
Remove User from groups API (success false)
{
"success": true,
"message": "User Naveed has been removed from page."
}
Unauthorized response, api will respond with this 401 eithr user is not logged in or do not have permission to perform some action. Like creating a post in a room, but user is not member of room.
System will also return 401 if api token is missing or invlaid.
Schema
Default value: 401
Default value: false
{
"errors": [
"string"
],
"status": 401,
"success": false
}
{
"errors": [
"You need to sign in or sign up before continuing."
],
"success": false
}
{
"message": "You don't have permission!",
"status": 401,
"success": false
}
Internal server error, api will respond with 500 if something went wrong processing the request.
Schema
Default value: false
Default value: internal server error
error message
{
"success": false,
"message": "internal server error"
}