API Documentation
Team Memberships ¶
GET /api/v2/team_memberships
Requests
GET /api/v2/team_memberships
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": "1",
"type": "team_memberships",
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2039"
}
},
"person": {
"meta": {
"included": false
}
},
"team": {
"meta": {
"included": false
}
}
}
},
{
"id": "2",
"type": "team_memberships",
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2039"
}
},
"person": {
"meta": {
"included": false
}
},
"team": {
"meta": {
"included": false
}
}
}
},
{
"id": "3",
"type": "team_memberships",
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2039"
}
},
"person": {
"meta": {
"included": false
}
},
"team": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/team_memberships?page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/team_memberships?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 team membershipsGET/api/v2/team_memberships
GET /api/v2/team_memberships/1
Requests
GET /api/v2/team_memberships/4
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": "4",
"type": "team_memberships",
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2040"
}
},
"person": {
"meta": {
"included": false
}
},
"team": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
Gets a team membershipGET/api/v2/team_memberships/{id}
URI Parameters
- id
number
(required) Example: 1team membership id
POST /api/v2/team_memberships
Requests
POST /api/v2/team_memberships
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": "team_memberships",
"attributes": {
"person_id": "8125",
"team_id": "7"
}
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "6",
"type": "team_memberships",
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "2041"
}
},
"person": {
"meta": {
"included": false
}
},
"team": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
POST /api/v2/team_memberships
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
{
"type": "team_memberships",
"attributes": {
"team_id": ""
}
}
Responses
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"errors": [
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"source": {
"pointer": "data/attributes/person"
}
},
{
"status": "422",
"code": "invalid_attribute",
"title": "Invalid Attribute",
"detail": "can't be blank",
"source": {
"pointer": "data/attributes/team"
}
}
]
}
Create a team membershipPOST/api/v2/team_memberships
URI Parameters
- person_id
number
(required) Example: 1person id
- team_id
number
(required) Example: 1team id
DELETE /api/v2/team_memberships/1
Requests
DELETE /api/v2/team_memberships/8
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.
Deletes a team membershipDELETE/api/v2/team_memberships/{id}
URI Parameters
- id
number
(required) Example: 1team membership id
Generated by aglio on 02 Aug 2025