Teams API
Get one team
GET
/team/id
(Get one team)
Headers
name type data type description Authorization required string Bearer token
Parameters
name type data type description id required string Team ID
Responses
http code content-type response 200
application/json
{ err: false, data: Team details }
403
application/json
No project permission access
404
application/json
Team Not found
Example
GET /team/614aa2a260318c20a6fed424
Get team list for one project
GET
/team
(Get team list for specific project)
Headers
name type data type description Authorization required string Bearer token
Query String
name type data type description project required string Project ID
Responses
http code content-type response 200
application/json
{ err: false, data: Array of teams }
403
application/json
No project permission access
Example
GET /team?project=614aa2a260318c20a6fed424
Create one team
POST
/team
(Create one team)
Headers
name type data type description Authorization required string Bearer token
Body
name type data type description name required string Team Name (Unique) project required string Project ID owner required string Team leader User ID members optional string Array of User ID
Responses
http code content-type response 200
application/json
{ err: false, data: Team detail }
403
application/json
No permission access
Example
POST /team
{
name: 'Developers',
project: 'project-id',
owner: 'unique-user-id',
members: ['user-id-1','user-id-2']
}
Update team
PUT
/team/id
(Update team)
Headers
name type data type description Authorization required string Bearer token
Parameters
name type data type description id required string Team ID
Body
name type data type description name required string Team Name (Unique) owner required string Team leader User ID members optional string Array of User ID addUser optional string Array of user IDs to be inserted. removeUser optional string Array of user IDs to be removed.
Responses
http code content-type response 200
application/json
{ err: false, data: Team details }
403
application/json
No permission access
404
application/json
Team Not found
Example
PUT /team/unique-team-id
{
name: 'Developers',
addUser: ['insert-user-id-1','insert-user-id-2']
}
Delete team
DELETE
/team/id
(Delete team)
Headers
name type data type description Authorization required string Bearer token
Parameters
name type data type description id required string Team ID
Responses
http code content-type response 200
application/json
403
application/json
No permission access
404
application/json
Team Not found
Example
DELETE /team/team-unique-id