{"_id":"564b85e8cc472d0d00da945f","version":{"_id":"55773a5ba042551900b002ce","project":"55773a5ba042551900b002cb","__v":18,"createdAt":"2015-06-09T19:11:23.764Z","releaseDate":"2015-06-09T19:11:23.764Z","categories":["55773a5ca042551900b002cf","55773a6ce6063e0d00481380","55773ab007e7110d001043ec","55773abaa042551900b002d5","55773ac207e7110d001043ed","55773acb07e7110d001043ee","55773ad3a042551900b002d6","55773adce6063e0d00481383","55773ae4a042551900b002d7","55773af307e7110d001043ef","55773af907e7110d001043f0","55773b0407e7110d001043f1","563a4f7ad25e8919005f3f39","563a4fcaa19edf0d00972321","564a70dc4cd0521700523edf","564b797bcc472d0d00da9435","564b855b766d4923004e1fd1","59cd4b81935249001c77c48e"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Motherboard","version_clean":"1.0.0","version":"1"},"editedParams2":true,"category":{"_id":"564b797bcc472d0d00da9435","pages":["564b85b7cc472d0d00da945d","564b85cc4f06ef2b006b08b6","564b85dcdda79a19000f2673","564b85e8cc472d0d00da945f","564b85f9dda79a19000f2675","564b8608e6c67c2f0038366c","564b861bcc472d0d00da9461","564b862bcc472d0d00da9463","56e06a635fc52e320024d8ea","56e06a6d40ba87220064161a","56e06a755fc52e320024d8ec"],"project":"55773a5ba042551900b002cb","__v":11,"version":"55773a5ba042551900b002ce","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-17T19:01:15.286Z","from_sync":false,"order":5,"slug":"team-api","title":"Team API"},"editedParams":true,"parentDoc":null,"__v":3,"project":"55773a5ba042551900b002cb","user":"546d17e2eb9cfd1400dd4529","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-17T19:54:16.598Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","status":201,"language":"json","code":"{\n   \"code\":201,\n   \"status\":\"success\",\n   \"data\":{\n         \"team_id\":11448,\n         \"team_title\":\"Team I Great Britain\",\n         \"team_slug\":\"team_i_great_britain\",\n         \"team_country_id\":292,\n         \"team_profile_image\":null,\n         \"team_noc\":\"GBR\",\n         \"team_country_name\":\"Great Britain\",\n         \"team_country_isoa2\":\"GB\",\n         \"team_listing\":\"http:\\/\\/www.triathlon.org\\/athletes\\/profile\\/11448\\/team_i_great_britain\",\n         \"team_flag\":\"https:\\/\\/f9ca11ef49c28681fc01-0acbf57e00c47a50e70a1acb89e86c89.ssl.cf1.rackcdn.com\\/images\\/icons\\/gb.png\",\n         \"team_api_listing\":\"https:\\/\\/api.triathlon.org\\/v1\\/v1\\/athletes\\/11448\"\n      }\n}"}]},"settings":"","examples":{"codes":[]},"method":"post","auth":"required","params":[{"_id":"570555f43e55070e00914f44","ref":"","in":"body","required":true,"desc":"The title of the team","default":"","type":"string","name":"title"},{"_id":"570555f43e55070e00914f43","ref":"","in":"body","required":true,"desc":"The country_id of theteam","default":"","type":"string","name":"country_id"}],"url":"/teams"},"isReference":true,"order":3,"body":"The **Create Team** method creates a new team and returns a basic team object. You may add additional profile information via the [Edit Team](https://developers.triathlon.org/docs/edit-team) method once you have a valid `team_id`.\n\nThis method validates that a duplicate team is not being created and returns a 400 error code if this validation fails i.e. a duplicate team exists in the system.","excerpt":"","slug":"create-team","type":"endpoint","title":"Create Team"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

title:
required
string
The title of the team
country_id:
required
string
The country_id of theteam

Result Format


Documentation

The **Create Team** method creates a new team and returns a basic team object. You may add additional profile information via the [Edit Team](https://developers.triathlon.org/docs/edit-team) method once you have a valid `team_id`. This method validates that a duplicate team is not being created and returns a 400 error code if this validation fails i.e. a duplicate team exists in the system.

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}