{"__v":2,"_id":"564b85f9dda79a19000f2675","category":{"__v":11,"_id":"564b797bcc472d0d00da9435","pages":["564b85b7cc472d0d00da945d","564b85cc4f06ef2b006b08b6","564b85dcdda79a19000f2673","564b85e8cc472d0d00da945f","564b85f9dda79a19000f2675","564b8608e6c67c2f0038366c","564b861bcc472d0d00da9461","564b862bcc472d0d00da9463","56e06a635fc52e320024d8ea","56e06a6d40ba87220064161a","56e06a755fc52e320024d8ec"],"project":"55773a5ba042551900b002cb","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,"editedParams2":true,"parentDoc":null,"project":"55773a5ba042551900b002cb","user":"546d17e2eb9cfd1400dd4529","version":{"__v":17,"_id":"55773a5ba042551900b002ce","project":"55773a5ba042551900b002cb","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"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Motherboard","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-17T19:54:33.121Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"put","results":{"codes":[{"status":200,"language":"json","code":"{\n   \"code\":200,\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}","name":""}]},"settings":"","auth":"required","params":[{"_id":"570556767d0c630e00f59414","ref":"","in":"body","required":true,"desc":"The team_id of the team to be edited","default":"","type":"int","name":"team_id"},{"_id":"570556767d0c630e00f59413","ref":"","in":"body","required":true,"desc":"A json encoded object of key=>vaue pairs for updating","default":"","type":"object","name":"body"}],"url":"/teams/{:team_id}"},"isReference":true,"order":4,"body":"[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Method checks the authenticated user is authorized to edit the resource\",\n  \"body\": \"Unauthorized users will be returned a 401 unauthorized response when attempting to update teams they do not have ownership of.\"\n}\n[/block]\nThe **Edit Team** method allows editing of a team profile and returns a basic team object of the edited team.","excerpt":"","slug":"edit-team","type":"endpoint","title":"Edit Team"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

team_id:
required
integer
The team_id of the team to be edited
body:
required
object
A json encoded object of key=>vaue pairs for updating

Result Format


Documentation

[block:callout] { "type": "danger", "title": "Method checks the authenticated user is authorized to edit the resource", "body": "Unauthorized users will be returned a 401 unauthorized response when attempting to update teams they do not have ownership of." } [/block] The **Edit Team** method allows editing of a team profile and returns a basic team object of the edited team.

User Information

Try It Out

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