Skip to main content

Assign user as a group admin

Assign user as a group admin.

Path Parameters
    groupId string required

    The id of the group.

Request Body
    userId integer required

    The ID of the user being assigned as an admin.

Responses

Request has been handled successfully.


Schema
    success boolean
    data object
    message

    Possible values: [User has been assigned as an admin successfully.]

PUT /v1/groups/:groupId/assignAsAdmin

Authorization

name: x-auth-tokentype: apiKeyin: headerdescription: The JWT access token required for accessing the endpoints.
name: x-client-idtype: apiKeyin: headerdescription: Your client id

Request

Base URL
https://apis-prelive.quran.foundation/auth
x-auth-token
x-client-id
groupId — path required
Body
{
"userId": 153
}
curl / cURL
curl -L -X PUT 'https://apis-prelive.quran.foundation/auth/v1/groups/:groupId/assignAsAdmin' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-auth-token: <API_KEY_VALUE>' \
-H 'x-client-id: <API_KEY_VALUE>' \
--data-raw '{
"userId": 153
}'