{"componentChunkName":"component---src-templates-api-page-tsx","path":"/api/teams/create-a-new-team/","result":{"data":{"openApi":{"id":"51b45773-74aa-5a18-97a9-94cc4cc83a39","path":{"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.","method":"post","operationId":"Create a New Team","summary":null,"tags":["Teams"],"apiPath":"/api/0/organizations/{organization_slug}/teams/","readableUrl":"/api/teams/create-a-new-team/","parameters":[{"schema":{"type":"string","format":null,"enum":null},"name":"organization_slug","in":"path","description":"The slug of the organization the team should be created for.","required":true}],"responses":[{"content":{"content_type":"application/json","example":"{\n  \"memberCount\": 0,\n  \"name\": \"Ancient Gabelers\",\n  \"isMember\": false,\n  \"hasAccess\": true,\n  \"isPending\": false,\n  \"dateCreated\": \"2020-08-19T21:46:47.877073Z\",\n  \"id\": \"542610\",\n  \"avatar\": {\n    \"avatarUuid\": null,\n    \"avatarType\": \"letter_avatar\"\n  },\n  \"slug\": \"ancient-gabelers\"\n}","schema":"{\n  \"type\": \"object\",\n  \"required\": [\n    \"avatar\",\n    \"dateCreated\",\n    \"hasAccess\",\n    \"id\",\n    \"isMember\",\n    \"isPending\",\n    \"memberCount\",\n    \"name\",\n    \"slug\"\n  ],\n  \"properties\": {\n    \"avatar\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"avatarType\": {\n          \"type\": \"string\"\n        },\n        \"avatarUuid\": {\n          \"type\": \"string\",\n          \"nullable\": true\n        }\n      }\n    },\n    \"dateCreated\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"hasAccess\": {\n      \"type\": \"boolean\"\n    },\n    \"id\": {\n      \"type\": \"string\"\n    },\n    \"isMember\": {\n      \"type\": \"boolean\"\n    },\n    \"isPending\": {\n      \"type\": \"boolean\"\n    },\n    \"memberCount\": {\n      \"type\": \"integer\",\n      \"format\": \"int64\"\n    },\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"slug\": {\n      \"type\": \"string\"\n    }\n  }\n}"},"description":"Success","status_code":"201"},{"content":null,"description":"Bad input","status_code":"400"},{"content":null,"description":"Forbidden","status_code":"403"},{"content":null,"description":"Team slug already exists","status_code":"409"}],"requestBody":{"content":{"content_type":"application/json","schema":"{\n  \"required\": [\n    \"name\"\n  ],\n  \"type\": \"object\",\n  \"properties\": {\n    \"name\": {\n      \"type\": \"string\",\n      \"description\": \"The name of the team.\",\n      \"example\": \"Ancient Gabelers\"\n    },\n    \"slug\": {\n      \"type\": \"string\",\n      \"description\": \"The optional slug for this team. If not provided it will be auto generated from the name.\",\n      \"example\": \"ancient-gabelers\"\n    }\n  }\n}"},"required":true},"security":[{"auth_token":["team:write"]}]}}},"pageContext":{"id":"51b45773-74aa-5a18-97a9-94cc4cc83a39","title":"Create a New Team"}},"staticQueryHashes":["1218203755","1222113826","1222113826","1766336459","2158593473","3990806462","4015007367","4192517163"]}