{"_id":"56a9206f1bb4420d004cac97","parentDoc":null,"editedParams2":true,"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"},"editedParams":true,"project":"55773a5ba042551900b002cb","__v":2,"category":{"_id":"564b855b766d4923004e1fd1","project":"55773a5ba042551900b002cb","pages":["564b863dae154821005080cb","564b86484f06ef2b006b08b8","564b865785e4e92b00fb4fa7","564b866bdda79a19000f2677","564b867885e4e92b00fb4fa9","56a9205d3c7e030d00797245","56a9206f1bb4420d004cac97","56a92093bd92180d00e1fc2e","56a92a13c48ee00d0092e2a2"],"version":"55773a5ba042551900b002ce","__v":9,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-17T19:51:55.701Z","from_sync":false,"order":11,"slug":"live-api","title":"Live API"},"user":"546d17e2eb9cfd1400dd4529","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-01-27T19:54:23.102Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","code":"{\n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":{\n      \"user\":{\n         \"id\":20680082,\n         \"name\":\"World Triathlon\",\n         \"screen_name\":\"worldtriathlon\",\n         \"profile_image_url\":\"https:\\/\\/pbs.twimg.com\\/profile_images\\/378800000078714793\\/888c46aecbcd066ad99be9b5b7530224_normal.jpeg\",\n         \"verified\":true,\n         \"link\":\"https:\\/\\/twitter.com\\/worldtriathlon\"\n      },\n      \"tweet\":\"RT <a href=\\\"https:\\/\\/twitter.com\\/triatlonchannel\\\" target=\\\"_blank\\\">:::at:::triatlonchannel<\\/a>: VIDEO: G\\u00f3mez Noya, Crisanto Grajales, concentraci\\u00f3n hispano \\u2013 mexicana Road to Rio <a href=\\\"https:\\/\\/t.co\\/NJAXmfKgUG\\\" target=\\\"_blank\\\" rel=\\\"nofollow\\\">https:\\/\\/t.co\\/NJAXmfKgUG<\\/a> <a href=\\\"https:\\/\\/t.c\\u2026\\\" target=\\\"_blank\\\" rel=\\\"nofollow\\\">https:\\/\\/t.c\\u2026<\\/a>\",\n      \"id\":692433526713667584,\n      \"id_str\":\"692433526713667584\",\n      \"source\":\"<a href=\\\"https:\\/\\/about.twitter.com\\/products\\/tweetdeck\\\" rel=\\\"nofollow\\\">TweetDeck<\\/a>\",\n      \"created_at\":\"2016-01-27T19:46:32+0000\",\n      \"timestamp\":1453923992,\n      \"retweeted\":true,\n      \"retweeted_user\":{\n         \"id\":272788110,\n         \"name\":\"triatlonchannel\",\n         \"screen_name\":\"triatlonchannel\",\n         \"profile_image_url\":\"https:\\/\\/pbs.twimg.com\\/profile_images\\/1289277274\\/mosca1_normal.jpg\",\n         \"verified\":false,\n         \"link\":\"https:\\/\\/twitter.com\\/272788110\"\n      },\n      \"published\":true,\n      \"media\":\"https:\\/\\/pbs.twimg.com\\/media\\/CZv-HcqWQAEg_81.png\"\n   }\n}","language":"json","status":200}]},"settings":"","examples":{"codes":[]},"method":"put","auth":"required","params":[{"_id":"56a9219fc0e02f0d007fa9ae","ref":"","in":"path","required":true,"desc":"The id of the Tweet to be edited","default":"","type":"int","name":"id"},{"_id":"56a921841bb4420d004cac9a","ref":"","in":"body","required":true,"desc":"Set the published status of a Tweet","default":"","type":"boolean","name":"published"}],"url":"/live/twitter/:id"},"isReference":true,"order":7,"body":"The **Edit Tweet** method allows the visibility of a Tweet to be modified. On success it returns the modified tweet object.\n\nIf an unpublished tweet is set to **published** then it will also be published via the [Streaming API](https://developers.triathlon.org/docs/twitter-stream).","excerpt":"","slug":"edit-tweet","type":"endpoint","title":"Edit Tweet"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
integer
The id of the Tweet to be edited

Body Params

published:
required
boolean
Set the published status of a Tweet

Result Format


Documentation

The **Edit Tweet** method allows the visibility of a Tweet to be modified. On success it returns the modified tweet object. If an unpublished tweet is set to **published** then it will also be published via the [Streaming API](https://developers.triathlon.org/docs/twitter-stream).

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