{"_id":"563a589a4cc3621900ac2770","editedParams2":true,"project":"55773a5ba042551900b002cb","__v":1,"editedParams":true,"version":{"_id":"55773a5ba042551900b002ce","project":"55773a5ba042551900b002cb","__v":17,"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"},"parentDoc":null,"user":"546d17e2eb9cfd1400dd4529","category":{"_id":"55773ad3a042551900b002d6","pages":["563a51bddaf1c00d00136dc8","563a583ac8baa517009d07e7","563a5861a19edf0d00972340","563a5870c8baa517009d07ea","563a589a4cc3621900ac2770","563a58b3c8baa517009d07ed","563a58c7e1313f0d00c8679a","563a58ea4cc3621900ac2779","564a00823242592b00338a26"],"project":"55773a5ba042551900b002cb","__v":9,"version":"55773a5ba042551900b002ce","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-09T19:13:23.707Z","from_sync":false,"order":4,"slug":"rankings-api","title":"Rankings API"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-04T19:12:26.389Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"status":200,"language":"json","code":"{\n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":{\n      \"ranking_id\":1,\n      \"ranking_name\":\"Men's PT1\",\n      \"ranking_cat_id\":1,\n      \"ranking_category_name\":\"Paratriathlon\",\n      \"published\":\"2015-11-06 22:04:25\",\n      \"region_id\":null,\n      \"week\":\"2015-W45\",\n      \"region_name\":null\n   },\n   \"message\":\"Rankings published\"\n}","name":""}]},"settings":"563a5a270ed63323003787f5","method":"post","auth":"required","params":[{"_id":"563a680cc8baa517009d0817","ref":"","in":"body","required":false,"desc":"The ranking_id to be published","default":"","type":"int","name":"ranking_id"}],"url":"/rankings"},"isReference":true,"order":5,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Authentication Required\",\n  \"body\": \"This method requires [authentication](https://triathlon-api.readme.io/docs/authentication)\"\n}\n[/block]\nThe **Publish Ranking** method publishes the specified rankings and returns the resulting rankings listing object. Until this method is called unless the break_cache parameter is provided the [Ranking Detail](https://triathlon-api.readme.io/docs/ranking-detail) results will not be updated.","excerpt":"","slug":"publish-ranking","type":"endpoint","title":"Publish Ranking"}

postPublish Ranking


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

ranking_id:
integer
The ranking_id to be published

Result Format


Documentation

[block:callout] { "type": "warning", "title": "Authentication Required", "body": "This method requires [authentication](https://triathlon-api.readme.io/docs/authentication)" } [/block] The **Publish Ranking** method publishes the specified rankings and returns the resulting rankings listing object. Until this method is called unless the break_cache parameter is provided the [Ranking Detail](https://triathlon-api.readme.io/docs/ranking-detail) results will not be updated.

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