{"_id":"564b7c2edda79a19000f2656","__v":2,"project":"55773a5ba042551900b002cb","editedParams":true,"editedParams2":true,"parentDoc":null,"category":{"_id":"55773ac207e7110d001043ed","version":"55773a5ba042551900b002ce","__v":31,"pages":["55776bbce6063e0d00481401","564b7a4e1ed5c823003eb64b","564b7c0fdda79a19000f2653","564b7c2385e4e92b00fb4f8a","564b7c2edda79a19000f2656","564b7c394f06ef2b006b08a5","564b7c6b85e4e92b00fb4f8c","564b7c791ed5c823003eb64f","564b7c83cc472d0d00da943d","564b7c8f766d4923004e1fbc","564b7ca385e4e92b00fb4f8f","564b7cb21ed5c823003eb654","564b7ccb766d4923004e1fbf","564b7cdf766d4923004e1fc1","564b7ceecc472d0d00da9440","564b7d014f06ef2b006b08a8","564b7d201ed5c823003eb656","564b7d2ee323d01700a51340","564b7d3b1ed5c823003eb658","564b7d4be323d01700a51344","564b7d5ee323d01700a51346","564b7d73cc472d0d00da9442","564b7d8adda79a19000f265a","564b7e0b85e4e92b00fb4f92","564b7e1be323d01700a51348","564b7e2b1ed5c823003eb65a","564b7e3f766d4923004e1fc4","564b7e4fdda79a19000f265c","564b7e5a766d4923004e1fc6","56eb12a90e62750e0060d027","56f184bf3af4942b00bb3c33"],"project":"55773a5ba042551900b002cb","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-09T19:13:06.237Z","from_sync":false,"order":3,"slug":"events-api","title":"Events API"},"user":"546d17e2eb9cfd1400dd4529","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"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-17T19:12:46.710Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"put","results":{"codes":[{"code":"{\n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":{\n      \"event_id\":90162,\n      \"event_title\":\"2015 ITU World Triathlon Gold Coast\",\n      \"event_slug\":\"2015_itu_world_triathlon_gold_coast\",\n      \"event_edit_date\":\"2015-04-20T10:45:42+00:00\",\n      \"event_venue\":\"Gold Coast\",\n      \"event_country\":\"Australia\",\n      \"event_latitude\":-28.01726,\n      \"event_longitude\":153.4257,\n      \"event_date\":\"2015-04-11\",\n      \"event_finish_date\":\"2015-04-12\",\n      \"event_country_isoa2\":\"AU\",\n      \"event_country_noc\":\"AUS\",\n      \"event_region_id\":14,\n      \"event_country_id\":111,\n      \"event_region_name\":\"Oceania\",\n      \"event_categories\":[\n         {\n            \"cat_name\":\"World Triathlon Series\",\n            \"cat_id\":351,\n            \"cat_parent_id\":0\n         }\n      ],\n      \"event_specifications\":[\n         {\n            \"cat_name\":\"Triathlon\",\n            \"cat_id\":357,\n            \"cat_parent_id\":0\n         },\n         {\n            \"cat_name\":\"Standard\",\n            \"cat_id\":377,\n            \"cat_parent_id\":357\n         }\n      ],\n      \"event_flag\":\"https:\\/\\/f9ca11ef49c28681fc01-0acbf57e00c47a50e70a1acb89e86c89.ssl.cf1.rackcdn.com\\/images\\/icons\\/au.png\",\n      \"event_listing\":\"http:\\/\\/www.triathlon.org\\/events\\/event\\/2015_itu_world_triathlon_gold_coast\",\n      \"event_api_listing\":\"https:\\/\\/api.triathlon.org\\/v1\\/v1\\/events\\/90162\",\n      \"contact\":{\n         \"contact_name\":null,\n         \"contact_phone\":null,\n         \"contact_fax\":null,\n         \"contact_email\":null,\n         \"contact_address\":null\n      },\n      \"social\":{\n         \"twitter\":null,\n         \"facebook\":null\n      },\n      \"travel\":{\n         \"closest_airport\":null,\n         \"local_transport\":null,\n         \"host_hotel\":null,\n         \"homestay\":null\n      },\n      \"media\":{\n         \"media_centre\":true,\n         \"media_details\":null\n      },\n      \"rankings\":{\n         \"points_deduction\":0,\n         \"rankings_override\":false,\n         \"event_container\":false\n      },\n      \"documents\":null,\n      \"course_maps\":null,\n      \"technical_delegate\":{\n         \"name\":\"Shanelle Barret\",\n         \"email\":\"shanellebarrett:::at:::xtra.co.nz\"\n      },\n      \"gallery\":[\n         {\n            \"event_id\":90162,\n            \"image_id\":48196,\n            \"image_filename\":\"del_4586.jpg\",\n            \"image_filesize\":\"189.70kB\",\n            \"image_extension\":\"jpg\",\n            \"image_width\":1183,\n            \"image_height\":787,\n            \"image_date\":\"2015-04-11T08:24:39Z\",\n            \"image_credit\":\"Delly Carr\\/ITU\",\n            \"image_url\":\"http:\\/\\/www.triathlon.org\\/uploads\\/webgalleries\\/90162\\/del_4586.jpg\",\n            \"thumbnail\":\"http:\\/\\/www.triathlon.org\\/uploads\\/webgalleries\\/90162\\/del_4586__medium.jpg\"\n         }\n      ],\n      \"hr_gallery\":true,\n      \"event_news\":[\n         {\n            \"news_id\":94507,\n            \"news_title\":\"Jonathan Brownlee wins back to back WTS titles\",\n            \"news_slug\":\"brownlee_busts_out_back_to_back_wts_titles\",\n            \"news_entry_date\":\"2015-04-11T05:46:59Z\",\n            \"news_excerpt\":\"Jonathan Brownlee is back, claiming his second consecutive WTS victory on Saturday at the 2015 ITU World Triathlon Gold Coast. \",\n            \"news_thumbnail\":\"http:\\/\\/www.triathlon.org\\/images\\/news_thumbs\\/DEL_7416.JPG\",\n            \"news_tab_image\":\"http:\\/\\/www.triathlon.org\\/images\\/news_thumbs\\/DEL_74161.JPG\",\n            \"news_multipurpose_image\":\"http:\\/\\/www.triathlon.org\\/images\\/news_thumbs\\/DEL_74162.JPG\",\n            \"news_url\":\"http:\\/\\/www.triathlon.org\\/news\\/article\\/brownlee_busts_out_back_to_back_wts_titles\",\n            \"news_api_url\":\"https:\\/\\/api.triathlon.org\\/content\\/news\\/94507\",\n            \"news_categories\":[\n               {\n                  \"cat_name\":\"World Championship Series\",\n                  \"cat_id\":6,\n                  \"cat_parent_id\":8\n               },\n               {\n                  \"cat_name\":\"Events\",\n                  \"cat_id\":8,\n                  \"cat_parent_id\":0\n               },\n               {\n                  \"cat_name\":\"Regions\",\n                  \"cat_id\":11,\n                  \"cat_parent_id\":0\n               },\n               {\n                  \"cat_name\":\"Multisports\",\n                  \"cat_id\":12,\n                  \"cat_parent_id\":0\n               },\n               {\n                  \"cat_name\":\"Long Distance Triathlon\",\n                  \"cat_id\":15,\n                  \"cat_parent_id\":12\n               },\n               {\n                  \"cat_name\":\"Oceania\",\n                  \"cat_id\":20,\n                  \"cat_parent_id\":11\n               },\n               {\n                  \"cat_name\":\"Media Centre\",\n                  \"cat_id\":165,\n                  \"cat_parent_id\":0\n               },\n               {\n                  \"cat_name\":\"Event Release\",\n                  \"cat_id\":167,\n                  \"cat_parent_id\":165\n               }\n            ]\n         }\n      ],\n      \"event_videos\":[\n         {\n            \"video_id\":94511,\n            \"video_title\":\"2015 ITU World Triathlon Gold Coast - Elite Men's Highlights\",\n            \"video_slug\":\"2015_itu_world_triathlon_gold_coast_-_elite_mens_highlights\",\n            \"video_entry_date\":\"2015-04-12T06:29:45Z\",\n            \"video_thumbnail\":\"http:\\/\\/www.triathlon.org\\/images\\/news_thumbs\\/7758748.jpg\",\n            \"video_caption\":\"Jonathan Brownlee returned to the top of the podium with a convincing victory at the 2015 ITU World Triathlon Gold Coast, delivering him back to back wins in the series. He was the master,...\",\n            \"youtube_url\":\"http:\\/\\/www.youtube.com\\/watch?v=QcVqt8QVRsU&feature=youtube_gdata_player\",\n            \"video_url\":\"http:\\/\\/www.triathlon.org\\/multimedia\\/video\\/2015_itu_world_triathlon_gold_coast_-_elite_mens_highlights\",\n            \"video_api_url\":\"https:\\/\\/api.triathlon.org\\/content\\/videos\\/94511\",\n            \"video_categories\":[\n               {\n                  \"cat_name\":\"Events\",\n                  \"cat_id\":59,\n                  \"cat_parent_id\":0\n               },\n               {\n                  \"cat_name\":\"World Triathlon Series\",\n                  \"cat_id\":60,\n                  \"cat_parent_id\":59\n               }\n            ]\n         }\n      ],\n      \"related_events\":[\n         {\n            \"event_id\":97637,\n            \"event_title\":\"2016 ITU World Triathlon Gold Coast\",\n            \"event_slug\":\"2016_itu_world_triathlon_gold_coast\",\n            \"event_edit_date\":\"2015-11-10T12:26:20+00:00\",\n            \"event_venue\":\"Gold Coast\",\n            \"event_country\":\"Australia\",\n            \"event_latitude\":-28.01726,\n            \"event_longitude\":153.4257,\n            \"event_date\":\"2016-04-09\",\n            \"event_finish_date\":\"2016-04-10\",\n            \"event_country_isoa2\":\"AU\",\n            \"event_country_noc\":\"AUS\",\n            \"event_region_id\":14,\n            \"event_country_id\":111,\n            \"event_region_name\":\"Oceania\",\n            \"event_categories\":[\n               {\n                  \"cat_name\":\"World Triathlon Series\",\n                  \"cat_id\":351,\n                  \"cat_parent_id\":0\n               }\n            ],\n            \"event_specifications\":[\n               {\n                  \"cat_name\":\"Triathlon\",\n                  \"cat_id\":357,\n                  \"cat_parent_id\":0\n               },\n               {\n                  \"cat_name\":\"Standard\",\n                  \"cat_id\":377,\n                  \"cat_parent_id\":357\n               }\n            ],\n            \"event_flag\":\"https:\\/\\/f9ca11ef49c28681fc01-0acbf57e00c47a50e70a1acb89e86c89.ssl.cf1.rackcdn.com\\/images\\/icons\\/au.png\",\n            \"event_listing\":\"http:\\/\\/www.triathlon.org\\/events\\/event\\/2016_itu_world_triathlon_gold_coast\",\n            \"event_api_listing\":\"https:\\/\\/api.triathlon.org\\/v1\\/v1\\/events\\/97637\"\n         }\n      ],\n      \"programs\":[\n         {\n            \"prog_id\":270563,\n            \"event_id\":90162,\n            \"prog_name\":\"Elite Men\",\n            \"prog_date\":\"2015-04-11\",\n            \"prog_time\":\"14:06:00\",\n            \"results\":true,\n            \"team\":false\n         }\n      ]\n   }\n}","name":"","status":200,"language":"json"}]},"settings":"","auth":"required","params":[{"_id":"5658c1165a9e990d004a5cc5","ref":"","in":"path","required":true,"desc":"The unique id of the event to be edited","default":"","type":"int","name":"event_id"},{"_id":"56f0446d5f3dcf0e00c581c4","ref":"","in":"body","required":true,"desc":"A json encoded object of key=>vaue pairs for updating","default":"","type":"object","name":"body"}],"url":"/events/{event_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 events they do not have ownership of.\"\n}\n[/block]\nThe **Edit Event** method allows editing of an event and returns the complete [Event Listing](https://developers.triathlon.org/docs/retrieve-event-information) after the changes have been applied.","excerpt":"","slug":"edit-event","type":"endpoint","title":"Edit Event"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

event_id:
required
integer
The unique id of the event to be edited

Body Params

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 events they do not have ownership of." } [/block] The **Edit Event** method allows editing of an event and returns the complete [Event Listing](https://developers.triathlon.org/docs/retrieve-event-information) after the changes have been applied.

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 }}