Group Members

Update a group member

Changed on

Update a member's role and page limit. Only group owners can update members. Send limit=no limit to clear an existing member limit.

post/api/v1/groups/edit-member/{id}/

Request

  • Base URL
    https://plagiarismcheck.org
  • Auth
    API key in header X-API-TOKEN

Path parameters

idinteger required

Numeric group member ID.

Request body application/x-www-form-urlencoded

role'teacher' | 'student'

New group role. If omitted, the current implementation treats the value as student.

Example request

{
  "role": "teacher"
}

Response

The request succeeded and returned the group member.

successboolean

Example response

{
  "success": true,
  "data": {
    "id": 3132945,
    "role": 2,
    "limit": 100,
    "created_at": 1512638171000,
    "user": {
      "id": 3132945,
      "name": "John Doe",
      "email": "student@example.com",
      "created_at": 1512638171000,
      "updated_at": 1512638171000,
      "allowed_languages": [
        "en"
      ],
      "balance_type": 1,
      "avatar": "https://randomuser.me/api/portraits/lego/1.jpg",
      "is_email_verification_needed": true
    }
  }
}

Changes

    • breaking

      the // response's property format changed from email to no format for status

    • info

      added the optional property // to the response with the status