Skip to Content
Teams

Return a list of all memberships of a team

GET
/teams/{team_id}/memberships

Path Parameters

team_id*integer

The ID of the team.

Range1 <= value

Query Parameters

page?integer

Number of the page to be retrieved

Range1 <= value
per_page?integer

Number of items returned per page

Range1 <= value <= 100
filter_by?string

Returns only memberships associated with the given link type.

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
[index: integer]?|null
Example Request
curl -X GET 'https://api.devopness.com/teams/123/memberships?page=1&per_page=25&filter_by=environment' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response
[  {    "team": {      "id": 137,      "name": "Some Development Team",      "photo_url": "https://example.com/images/my_team.png",      "organization": {        "id": 16523,        "name": "My Organization",        "url_slug": "MyOrganization",        "resource_summary": [          {            "resource_type": "environment",            "resource_type_plural": "environments",            "resource_type_human_readable": "Environment",            "resource_type_human_readable_plural": "Environments",            "summary": {              "count": 1            }          }        ],        "owner": {          "id": 1,          "name": "string",          "email": "user@example.com",          "url_slug": "someone",          "language": "en",          "active": true,          "created_at": "2019-09-25T15:50:48.000000Z",          "updated_at": "2019-09-25T13:52:04.000000Z"        },        "created_at": "2019-09-25T15:50:48.000000Z",        "updated_at": "2019-09-25T13:52:04.000000Z"      },      "created_by_user": {        "id": 1,        "name": "string",        "email": "user@example.com",        "url_slug": "someone",        "language": "en",        "active": true,        "created_at": "2019-09-25T15:50:48.000000Z",        "updated_at": "2019-09-25T13:52:04.000000Z"      },      "created_at": "2019-09-25T13:22:37.000000Z",      "updated_at": "2019-09-25T13:22:37.000000Z"    },    "role": {      "id": 45678,      "name": "admin",      "description": "Has total access to resources",      "is_predefined": false,      "permissions": [        "application:read",        "application:create",        "server:read"      ],      "organization": {        "id": 16523,        "name": "My Organization",        "url_slug": "MyOrganization",        "resource_summary": [          {            "resource_type": "environment",            "resource_type_plural": "environments",            "resource_type_human_readable": "Environment",            "resource_type_human_readable_plural": "Environments",            "summary": {              "count": 1            }          }        ],        "owner": {          "id": 1,          "name": "string",          "email": "user@example.com",          "url_slug": "someone",          "language": "en",          "active": true,          "created_at": "2019-09-25T15:50:48.000000Z",          "updated_at": "2019-09-25T13:52:04.000000Z"        },        "created_at": "2019-09-25T15:50:48.000000Z",        "updated_at": "2019-09-25T13:52:04.000000Z"      },      "created_by_user": {        "id": 1,        "name": "string",        "email": "user@example.com",        "url_slug": "someone",        "language": "en",        "active": true,        "created_at": "2019-09-25T15:50:48.000000Z",        "updated_at": "2019-09-25T13:52:04.000000Z"      },      "created_at": "2019-09-25T13:22:37.000000Z",      "updated_at": "2019-09-25T13:22:37.000000Z"    },    "organization": {      "id": 16523,      "name": "My Organization",      "url_slug": "MyOrganization",      "resource_summary": [        {          "resource_type": "environment",          "resource_type_plural": "environments",          "resource_type_human_readable": "Environment",          "resource_type_human_readable_plural": "Environments",          "summary": {            "count": 1          }        }      ],      "owner": {        "id": 1,        "name": "string",        "email": "user@example.com",        "url_slug": "someone",        "language": "en",        "active": true,        "created_at": "2019-09-25T15:50:48.000000Z",        "updated_at": "2019-09-25T13:52:04.000000Z"      },      "created_at": "2019-09-25T15:50:48.000000Z",      "updated_at": "2019-09-25T13:52:04.000000Z"    },    "project": {      "id": 45678,      "user_id": 984123,      "name": "my project",      "logo_url": "https://example.com/projects-beautiful-logo.png",      "resource_summary": [        {          "resource_type": "environment",          "resource_type_plural": "environments",          "resource_type_human_readable": "Environment",          "resource_type_human_readable_plural": "Environments",          "summary": {            "count": 1          }        }      ],      "os_users": [        {          "name": "devopness"        }      ],      "organization": {        "id": 16523,        "name": "My Organization",        "url_slug": "MyOrganization",        "resource_summary": [          {            "resource_type": "environment",            "resource_type_plural": "environments",            "resource_type_human_readable": "Environment",            "resource_type_human_readable_plural": "Environments",            "summary": {              "count": 1            }          }        ],        "owner": {          "id": 1,          "name": "string",          "email": "user@example.com",          "url_slug": "someone",          "language": "en",          "active": true,          "created_at": "2019-09-25T15:50:48.000000Z",          "updated_at": "2019-09-25T13:52:04.000000Z"        },        "created_at": "2019-09-25T15:50:48.000000Z",        "updated_at": "2019-09-25T13:52:04.000000Z"      },      "created_by_user": {        "id": 1,        "name": "string",        "email": "user@example.com",        "url_slug": "someone",        "language": "en",        "active": true,        "created_at": "2019-09-25T15:50:48.000000Z",        "updated_at": "2019-09-25T13:52:04.000000Z"      },      "used_credits": 123,      "created_at": "2022-09-26T15:30:31.000000Z",      "updated_at": "2022-09-26T15:30:58.000000Z"    },    "environment": {      "id": 2,      "type": "staging",      "type_human_readable": "Staging",      "name": "My staging",      "description": "My staging environment",      "used_credits": 50,      "resource_summary": [        {          "resource_type": "environment",          "resource_type_plural": "environments",          "resource_type_human_readable": "Environment",          "resource_type_human_readable_plural": "Environments",          "summary": {            "count": 1          }        }      ],      "created_at": "2019-09-25T15:50:48.000000Z",      "updated_at": "2019-09-25T13:52:04.000000Z",      "archived_at": "2019-09-26T10:45:42.000000Z",      "project": {        "id": 45678,        "user_id": 984123,        "name": "my project",        "logo_url": "https://example.com/projects-beautiful-logo.png",        "resource_summary": [          {            "resource_type": "environment",            "resource_type_plural": "environments",            "resource_type_human_readable": "Environment",            "resource_type_human_readable_plural": "Environments",            "summary": {              "count": 1            }          }        ],        "os_users": [          {            "name": "devopness"          }        ],        "organization": {          "id": 16523,          "name": "My Organization",          "url_slug": "MyOrganization",          "resource_summary": [            {              "resource_type": "environment",              "resource_type_plural": "environments",              "resource_type_human_readable": "Environment",              "resource_type_human_readable_plural": "Environments",              "summary": {                "count": 1              }            }          ],          "owner": {            "id": 1,            "name": "string",            "email": "user@example.com",            "url_slug": "someone",            "language": "en",            "active": true,            "created_at": "2019-09-25T15:50:48.000000Z",            "updated_at": "2019-09-25T13:52:04.000000Z"          },          "created_at": "2019-09-25T15:50:48.000000Z",          "updated_at": "2019-09-25T13:52:04.000000Z"        },        "created_by_user": {          "id": 1,          "name": "string",          "email": "user@example.com",          "url_slug": "someone",          "language": "en",          "active": true,          "created_at": "2019-09-25T15:50:48.000000Z",          "updated_at": "2019-09-25T13:52:04.000000Z"        },        "used_credits": 123,        "created_at": "2022-09-26T15:30:31.000000Z",        "updated_at": "2022-09-26T15:30:58.000000Z"      }    },    "created_at": "2019-09-25T13:22:37.000000Z",    "updated_at": "2019-09-25T13:22:37.000000Z"  }]