{ "get": { "tags": ["Teams"], "description": "Return details on an individual team.", "operationId": "Retrieve a Team", "parameters": [ { "name": "organization_slug", "in": "path", "description": "The slug of the organization the team belongs to.", "required": true, "schema": { "type": "string" } }, { "name": "team_slug", "in": "path", "description": "The slug of the team to get.", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "../../components/schemas/team.json#/TeamWithOrganization" }, "example": { "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "dateCreated": "2018-11-06T21:19:55.114Z", "hasAccess": true, "id": "2", "isMember": true, "isPending": false, "memberCount": 1, "name": "Powerful Abolitionist", "organization": { "avatar": { "avatarType": "letter_avatar", "avatarUuid": null }, "dateCreated": "2018-11-06T21:19:55.101Z", "id": "2", "isEarlyAdopter": false, "name": "The Interstellar Jurisdiction", "require2FA": false, "slug": "the-interstellar-jurisdiction", "status": { "id": "active", "name": "active" } }, "slug": "powerful-abolitionist" } } } }, "403": { "description": "Forbidden" }, "404": { "description": "Team not found" } }, "security": [ { "auth_token": ["team:read"] } ] }, "put": { "tags": ["Teams"], "description": "Update various attributes settings for the given team.", "operationId": "Update a Team", "parameters": [ { "name": "organization_slug", "in": "path", "description": "The slug of the organization the team belongs to.", "required": true, "schema": { "type": "string" } }, { "name": "team_slug", "in": "path", "description": "The slug of the team to get.", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "slug": { "type": "string", "description": "Uniquely identifies a team and is used for the interface. Must be available." }, "name": { "type": "string", "description": "**`[DEPRECATED]`** The name for the team.", "deprecated": true } } }, "example": { "name": "The Inflated Philosophers", "slug": "the-inflated-philosophers" } } }, "required": true }, "responses": { "200": { "description": "Success", "content": { "application/json": { "schema": { "$ref": "../../components/schemas/team.json#/Team" }, "example": { "avatar": { "avatarType": "letter_avatar" }, "dateCreated": "2018-11-06T21:20:08.115Z", "hasAccess": true, "id": "3", "isMember": false, "isPending": false, "memberCount": 1, "name": "The Inflated Philosophers", "slug": "the-inflated-philosophers" } } } }, "400": { "description": "Bad Input" }, "403": { "description": "Forbidden" }, "404": { "description": "Team not found" } }, "security": [ { "auth_token": ["team:write"] } ] }, "delete": { "tags": ["Teams"], "description": "Schedules a team for deletion.\n\nNote: Deletion happens asynchronously and therefore is not immediate. However once deletion has begun the state of a project changes and will be hidden from most public views.", "operationId": "Delete a Team", "parameters": [ { "name": "organization_slug", "in": "path", "description": "The slug of the organization the team belongs to.", "required": true, "schema": { "type": "string" } }, { "name": "team_slug", "in": "path", "description": "The slug of the team to get.", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "Success" }, "403": { "description": "Forbidden" }, "404": { "description": "Team not found" } }, "security": [ { "auth_token": ["team:admin"] } ] } }