Skip to main content

Invite user to group

Invite user to group.

Path Parameters
    groupId string required

    The id of the group.

Request Body
    userId integer

    The ID of the user being invited to group.

    email string

    The email of the user being invited to group.

Responses

Request has been handled successfully.


Schema
    success boolean
    data object
    message

    Possible values: [User has been invited successfully.]

PUT /v1/groups/:groupId/inviteUser

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,
"email": "amer@quran.com"
}
curl / cURL
curl -L -X PUT 'https://apis-prelive.quran.foundation/auth/v1/groups/:groupId/inviteUser' \
-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,
"email": "amer@quran.com"
}'