Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (41 loc) · 2.01 KB

File metadata and controls

49 lines (41 loc) · 2.01 KB

Get Team Members

HTTP MethodURLRequires Auth
GET/api/v1/teams.membersyes

Query Parameters

This endpoint supports the offset and count parameters for#pagination query parameters.

KeyExample ValueDescription
teamId* or teamName*ByehQjC44FwMeiLbX or team1The team ID or the team name. You must enter either one of these parameters.
nameExample NameThe user's name (search filter).
usernamesome.usernameThe username (search filter).
status["online", "away", "busy"]The user's status (search filter).

Example Call

{% code overflow="wrap" %}

curl  -H 'X-Auth-Token: _2u_4MzRroRcnqc59GYUY_Kwgr9HgtZ9HCKn-2aIvMJ' \
      -H 'X-User-Id: FL2fZL4ERhwA3gWiS' \
      -H "Content-type: application/json" \
      'http://localhost:3000/api/v1/teams.members?teamName=team1&status[]=online&status=away&status=busy'

{% endcode %}

Example Response

{
  "members": [
    {
      "user": {
        "_id": "FL2fZL4ERhwA3gWiS",
        "username": "some.username",
        "name": "Example Name",
        "status": "online"
      },
      "roles": [
        "owner"
      ],
      "createdBy": {
        "_id": "FL2fZL4ERhwA3gWiS",
        "username": "some.username"
      },
      "createdAt": "2021-04-19T23:09:15.109Z"
    }
  ],
  "total": 3,
  "count": 1,
  "offset": 0,
  "success": true
}