Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1010 Bytes

units.md

File metadata and controls

60 lines (45 loc) · 1010 Bytes

Units / Teams

German: "Teams"

Attributes

The representation contains among the standard fields also:

  • users (staff assigned to this team)
{
  "id": 909147861,
  "name": "C Office",
  "users": [
    {
      "id": 933590158,
      "firstname": "Tobias",
      "lastname": "Miesel"
    },
    {
      "id": 933589599,
      "firstname": "Sabine",
      "lastname": "Schäuble"
    }
  ],
  "created_at": "2018-10-17T09:33:46Z",
  "updated_at": "2018-10-17T09:33:46Z"
}

GET /units

Retrieve all teams:

curl -X GET \
  'https://{domain}.mocoapp.com/api/v1/units' \
  -H 'Authorization: Token token=YOUR_API_KEY'

This returns an array with complete team information (see Attributes).

GET /units/{id}

Retrieve a single team:

curl -X GET \
  'https://{domain}.mocoapp.com/api/v1/units/{id}' \
  -H 'Authorization: Token token=YOUR_API_KEY'