{"__v":4,"_id":"564b7e4fdda79a19000f265c","category":{"__v":31,"_id":"55773ac207e7110d001043ed","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","version":"55773a5ba042551900b002ce","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-09T19:13:06.237Z","from_sync":false,"order":3,"slug":"events-api","title":"Events 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:21:51.853Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{\n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":[\n      {\n         \"cat_name\":\"Aquathlon\",\n         \"cat_id\":353,\n         \"cat_parent_id\":0,\n         \"cat_order\":1\n      },\n      {\n         \"cat_name\":\"3xRelay\",\n         \"cat_id\":364,\n         \"cat_parent_id\":354,\n         \"cat_order\":1\n      },\n      {\n         \"cat_name\":\"Long Distance\",\n         \"cat_id\":374,\n         \"cat_parent_id\":356,\n         \"cat_order\":1\n      },\n      {\n         \"cat_name\":\"3xRelay\",\n         \"cat_id\":379,\n         \"cat_parent_id\":357,\n         \"cat_order\":1\n      },\n      {\n         \"cat_name\":\"Long Distance\",\n         \"cat_id\":360,\n         \"cat_parent_id\":353,\n         \"cat_order\":1\n      },\n      {\n         \"cat_name\":\"3xRelay\",\n         \"cat_id\":384,\n         \"cat_parent_id\":358,\n         \"cat_order\":1\n      },\n      {\n         \"cat_name\":\"3xRelay\",\n         \"cat_id\":410,\n         \"cat_parent_id\":408,\n         \"cat_order\":1\n      },\n      {\n         \"cat_name\":\"3xRelay\",\n         \"cat_id\":370,\n         \"cat_parent_id\":355,\n         \"cat_order\":1\n      },\n      {\n         \"cat_name\":\"4xMixed Relay\",\n         \"cat_id\":380,\n         \"cat_parent_id\":357,\n         \"cat_order\":2\n      },\n      {\n         \"cat_name\":\"4xMixed Relay\",\n         \"cat_id\":385,\n         \"cat_parent_id\":358,\n         \"cat_order\":2\n      },\n      {\n         \"cat_name\":\"Cross Duathlon\",\n         \"cat_id\":408,\n         \"cat_parent_id\":0,\n         \"cat_order\":2\n      },\n      {\n         \"cat_name\":\"Middle Distance\",\n         \"cat_id\":373,\n         \"cat_parent_id\":356,\n         \"cat_order\":2\n      },\n      {\n         \"cat_name\":\"4xMixed Relay\",\n         \"cat_id\":411,\n         \"cat_parent_id\":408,\n         \"cat_order\":2\n      },\n      {\n         \"cat_name\":\"4xMixed Relay\",\n         \"cat_id\":371,\n         \"cat_parent_id\":355,\n         \"cat_order\":2\n      },\n      {\n         \"cat_name\":\"Paratriathlon\",\n         \"cat_id\":361,\n         \"cat_parent_id\":353,\n         \"cat_order\":2\n      },\n      {\n         \"cat_name\":\"4xMixed Relay\",\n         \"cat_id\":365,\n         \"cat_parent_id\":354,\n         \"cat_order\":2\n      },\n      {\n         \"cat_name\":\"Standard\",\n         \"cat_id\":359,\n         \"cat_parent_id\":353,\n         \"cat_order\":3\n      },\n      {\n         \"cat_name\":\"Paratriathlon\",\n         \"cat_id\":381,\n         \"cat_parent_id\":357,\n         \"cat_order\":3\n      },\n      {\n         \"cat_name\":\"Paratriathlon\",\n         \"cat_id\":375,\n         \"cat_parent_id\":356,\n         \"cat_order\":3\n      },\n      {\n         \"cat_name\":\"Cross Triathlon\",\n         \"cat_id\":354,\n         \"cat_parent_id\":0,\n         \"cat_order\":3\n      },\n      {\n         \"cat_name\":\"Paratriathlon\",\n         \"cat_id\":386,\n         \"cat_parent_id\":358,\n         \"cat_order\":3\n      }\n   ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"5658bdc9592da30d0092dc14","ref":"","in":"query","required":false,"desc":"The parent category to filter results","default":"","type":"int","name":"cat_parent_id"},{"_id":"56f2d2d4a0de870e003b6ca8","ref":"","in":"query","required":false,"desc":"Whether to show only top level categories","default":"true","type":"boolean","name":"show_children"}],"url":"/events/specifications"},"isReference":true,"order":29,"body":"The **Event Specifications** method returns a list of `cat_id`s that may be used in filtering of all event methods via the `specification_id` parameter.\n\nAn optional `parent_id` parameter allows restricting results to a top-level specification. For example to display all the event specifications related to Duathlon (cat_id 355) the following request should be made.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: [[app:key]]\\\" https://api.triathlon.org/v1/events/specifications?parent_id=355\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\nIf you only wish to display the top-level specifications simply supply the parameter `show_children=false` which will limit to the top-level sport specifications. By default all children are returned.","excerpt":"","slug":"event-specifications","type":"endpoint","title":"Event Specifications"}

getEvent Specifications


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

cat_parent_id:
integer
The parent category to filter results
show_children:
booleantrue
Whether to show only top level categories

Result Format


Documentation

The **Event Specifications** method returns a list of `cat_id`s that may be used in filtering of all event methods via the `specification_id` parameter. An optional `parent_id` parameter allows restricting results to a top-level specification. For example to display all the event specifications related to Duathlon (cat_id 355) the following request should be made. [block:code] { "codes": [ { "code": "curl --header \"apikey: [[app:key]]\" https://api.triathlon.org/v1/events/specifications?parent_id=355", "language": "curl" } ] } [/block] If you only wish to display the top-level specifications simply supply the parameter `show_children=false` which will limit to the top-level sport specifications. By default all children are returned.

User Information

Try It Out

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