API Documentation
Teams ¶
GET /api/v2/teams
Requests
GET /api/v2/teams
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": [
{
"id": "10",
"type": "teams",
"attributes": {
"color_id": "1",
"icon_id": null,
"name": "A team"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2065"
}
},
"members": {
"meta": {
"included": false
}
}
}
},
{
"id": "11",
"type": "teams",
"attributes": {
"color_id": "1",
"icon_id": null,
"name": "A team"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2065"
}
},
"members": {
"meta": {
"included": false
}
}
}
},
{
"id": "12",
"type": "teams",
"attributes": {
"color_id": "1",
"icon_id": null,
"name": "A team"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2065"
}
},
"members": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/teams?page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/teams?page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 3,
"page_size": 30,
"max_page_size": 200
}
}
Get teamsGET/api/v2/teams
GET /api/v2/teams/1
Requests
GET /api/v2/teams/13
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "13",
"type": "teams",
"attributes": {
"color_id": "1",
"icon_id": null,
"name": "A team"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2066"
}
},
"members": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
POST /api/v2/teams
Requests
POST /api/v2/teams
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "teams",
"attributes": {
"name": "B team"
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "15",
"type": "teams",
"attributes": {
"color_id": null,
"icon_id": null,
"name": "B team"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2067"
}
},
"members": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/teams/1
Requests
PATCH /api/v2/teams/17
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
"data": {
"type": "teams",
"attributes": {
"name": "B team"
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "17",
"type": "teams",
"attributes": {
"color_id": "1",
"icon_id": null,
"name": "B team"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2069"
}
},
"members": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
DELETE /api/v2/teams/1
Requests
DELETE /api/v2/teams/19
Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses
This response has no content.
Generated by aglio on 29 May 2025