123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- {
- "get": {
- "tags": ["Teams"],
- "description": "Return details on an individual team.",
- "operationId": "Retrieve a Team",
- "parameters": [
- {
- "name": "organization_id_or_slug",
- "in": "path",
- "description": "The id or slug of the organization the team belongs to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_id_or_slug",
- "in": "path",
- "description": "The id or 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_id_or_slug",
- "in": "path",
- "description": "The id or slug of the organization the team belongs to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_id_or_slug",
- "in": "path",
- "description": "The id or 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_id_or_slug",
- "in": "path",
- "description": "The id or slug of the organization the team belongs to.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "team_id_or_slug",
- "in": "path",
- "description": "The id or 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"]
- }
- ]
- }
- }
|