GET /teams
Description
Get a list of all the teams the player can play/join
All public and protected teams created by any player in the game will be listed.
Any teams which were bootstrapped will be created and listed here when the player joins the game for the first time.
Resource URL
https://api.playlyfe.com/teams
Method
GET
Scopes
player, game, debug
Parameters
Location | Parameter Name | Default Value | Description |
---|---|---|---|
Query | skip | 0 | Number of teams to skip |
Query | limit | 10 | Maximum number of teams to return |
Example
Request
GET https://api.playlyfe.com/teams
Response
{ "data": [ { "id": "5235872d009183e812000001", "definition": "sports_team", "created": "2013-11-10T16:48:10.570Z", "version": 1, "owner": "clone", "access": "PRIVATE", "roles": [ "owner" ] }, { "id": "globe-trotters", "name": "The Globe Trotters", "definition": "basketball_team", "created": "2013-11-10T16:45:10.570Z", "version": 1, "owner": "clone", "access": "PRIVATE", "roles": [ "owner" ] } ], "total": "2" }