SHIFT API

Teams

API routes for creating and managing teams.

Teams are a collection of users with specific roles and a space for messages to exist.Membership type 1 indicates a team admin, while 2 represents a normal member. All of the user data is in the user key in the response data.

API Reference

GET
/v1/teams/<uuid:team_id>/users

List all users on the team

Example 1

Get a list of users associated with a team

GET /v1/teams/:uuid/users

JSON response body:

{
  "meta": {}, 
  "data": [
    {
      "membership_type": 1, 
      "is_muted": 0, 
      "created_at": 1355247714, 
      "userid": "f424f736-5c6e-4972-8205-efd163032b5d", 
      "updated_at": 1355247714, 
      "is_favorite": 0, 
      "user": {
        "first_name": "Testy", 
        "last_name": "Testerson", 
        "relationship": 0, 
        "title": "", 
        "id": "f424f736-5c6e-4972-8205-efd163032b5d", 
        "active": true, 
        "online": false, 
        "images": [], 
        "email": "test@grapheffect.com"
      }, 
      "team": {
        "num_members": 2, 
        "name": "Test Team", 
        "color": "red", 
        "created_at": 1355247714.368, 
        "updated_at": 1355247714.472, 
        "unread_count": 0, 
        "active": true, 
        "id": "44cf2468-1ce2-4300-887d-80cbf99872bf", 
        "icon": "car"
      }, 
      "inviter": null
    }
  ], 
  "time": 0.0668330192565918
}