123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244 |
- {
- "get": {
- "tags": ["Teams"],
- "description": "Returns a list of teams bound to a organization.",
- "operationId": "List an Organization's Teams",
- "parameters": [
- {
- "name": "organization_slug",
- "in": "path",
- "description": "The slug of the organization for which the teams should be listed.",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "$ref": "../../components/parameters/pagination-cursor.json#/PaginationCursor"
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "type": "array",
- "items": {
- "$ref": "../../components/schemas/team.json#/TeamWithProjects"
- }
- },
- "example": [
- {
- "avatar": {
- "avatarType": "letter_avatar",
- "avatarUuid": null
- },
- "dateCreated": "2018-11-06T21:20:08.115Z",
- "hasAccess": true,
- "id": "3",
- "isMember": true,
- "isPending": false,
- "memberCount": 1,
- "name": "Ancient Gabelers",
- "projects": [],
- "slug": "ancient-gabelers"
- },
- {
- "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",
- "projects": [
- {
- "avatar": {
- "avatarType": "letter_avatar",
- "avatarUuid": null
- },
- "color": "#bf5b3f",
- "dateCreated": "2018-11-06T21:19:58.536Z",
- "features": [
- "releases",
- "sample-events",
- "minidump",
- "servicehooks",
- "rate-limits",
- "data-forwarding"
- ],
- "firstEvent": null,
- "hasAccess": true,
- "id": "3",
- "isBookmarked": false,
- "isInternal": false,
- "isMember": true,
- "isPublic": false,
- "name": "Prime Mover",
- "platform": null,
- "slug": "prime-mover",
- "status": "active"
- },
- {
- "avatar": {
- "avatarType": "letter_avatar",
- "avatarUuid": null
- },
- "color": "#3fbf7f",
- "dateCreated": "2018-11-06T21:19:55.121Z",
- "features": [
- "releases",
- "sample-events",
- "minidump",
- "servicehooks",
- "rate-limits",
- "data-forwarding"
- ],
- "firstEvent": null,
- "hasAccess": true,
- "id": "2",
- "isBookmarked": false,
- "isInternal": false,
- "isMember": true,
- "isPublic": false,
- "name": "Pump Station",
- "platform": null,
- "slug": "pump-station",
- "status": "active"
- },
- {
- "avatar": {
- "avatarType": "letter_avatar",
- "avatarUuid": null
- },
- "color": "#bf6e3f",
- "dateCreated": "2018-11-06T21:20:08.064Z",
- "features": [
- "servicehooks",
- "sample-events",
- "data-forwarding",
- "rate-limits",
- "minidump"
- ],
- "firstEvent": null,
- "hasAccess": true,
- "id": "4",
- "isBookmarked": false,
- "isInternal": false,
- "isMember": true,
- "isPublic": false,
- "name": "The Spoiled Yoghurt",
- "platform": null,
- "slug": "the-spoiled-yoghurt",
- "status": "active"
- }
- ],
- "slug": "powerful-abolitionist"
- }
- ]
- }
- }
- },
- "401": {
- "description": "Permission Denied"
- },
- "403": {
- "description": "Forbidden"
- },
- "404": {
- "description": "Not Found"
- }
- },
- "security": [
- {
- "auth_token": ["team:read"]
- }
- ]
- },
- "post": {
- "tags": ["Teams"],
- "description": "Create a new team bound to an organization. Only the name of the team is needed to create it, the slug can be auto generated.",
- "operationId": "Create a New Team",
- "parameters": [
- {
- "name": "organization_slug",
- "in": "path",
- "description": "The slug of the organization the team should be created for.",
- "required": true,
- "schema": {
- "type": "string"
- }
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "required": ["name"],
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "description": "The name of the team."
- },
- "slug": {
- "type": "string",
- "description": "The optional slug for this team. If not provided it will be auto generated from the name."
- }
- }
- },
- "example": {
- "name": "Ancient Gabelers",
- "slug":"ancient-gabelers"
- }
- }
- },
- "required": true
- },
- "responses": {
- "201": {
- "description": "Success",
- "content": {
- "application/json": {
- "schema": {
- "$ref": "../../components/schemas/team.json#/Team"
- },
- "example": {
- "memberCount": 0,
- "name": "Ancient Gabelers",
- "isMember": false,
- "hasAccess": true,
- "isPending": false,
- "dateCreated": "2020-08-19T21:46:47.877073Z",
- "id": "542610",
- "avatar": {
- "avatarUuid": null,
- "avatarType": "letter_avatar"
- },
- "slug": "ancient-gabelers"
- }
- }
- }
- },
- "400": {
- "description": "Bad input"
- },
- "403": {
- "description": "Forbidden"
- },
- "409": {
- "description": "Team slug already exists"
- }
- },
- "security": [
- {
- "auth_token": ["team:write"]
- }
- ]
- }
- }
|