{"_id":"5668a50cee1dbf0d008f62dc","editedParams":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"},"__v":2,"editedParams2":true,"user":"546d17e2eb9cfd1400dd4529","category":{"_id":"55773af907e7110d001043f0","__v":7,"pages":["564b84b2cc472d0d00da9457","564b84c0cc472d0d00da9459","564b84d44f06ef2b006b08b4","564b84eddda79a19000f266e","564b84f9e6c67c2f0038366a","564b850585e4e92b00fb4fa0","5668a50cee1dbf0d008f62dc"],"project":"55773a5ba042551900b002cb","version":"55773a5ba042551900b002ce","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-06-09T19:14:01.892Z","from_sync":false,"order":8,"slug":"courses-api","title":"Courses API"},"project":"55773a5ba042551900b002cb","parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-12-09T22:02:52.277Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"name":"","code":"{\n   \"code\":200,\n   \"status\":\"success\",\n   \"data\":[\n      {\n         \"cat_name\":\"Camps\",\n         \"cat_id\":238,\n         \"cat_parent_id\":0\n      },\n      {\n         \"cat_name\":\"Coaching\",\n         \"cat_id\":237,\n         \"cat_parent_id\":0\n      },\n      {\n         \"cat_name\":\"Conferences\",\n         \"cat_id\":331,\n         \"cat_parent_id\":0\n      },\n      {\n         \"cat_name\":\"Event Organisers\",\n         \"cat_id\":253,\n         \"cat_parent_id\":0\n      },\n      {\n         \"cat_name\":\"Olympic Solidarity\",\n         \"cat_id\":332,\n         \"cat_parent_id\":0\n      },\n      {\n         \"cat_name\":\"Paratriathlon\",\n         \"cat_id\":242,\n         \"cat_parent_id\":0\n      },\n      {\n         \"cat_name\":\"Team ITU\",\n         \"cat_id\":333,\n         \"cat_parent_id\":0\n      },\n      {\n         \"cat_name\":\"Technical Officials\",\n         \"cat_id\":236,\n         \"cat_parent_id\":0\n      }\n   ]\n}","language":"json","status":200}]},"settings":"","examples":{"codes":[]},"auth":"required","params":[{"_id":"56cbf09fbc43880b0038e9ed","ref":"","in":"query","required":false,"desc":"Show child categories","default":"true","type":"boolean","name":"child_categories"},{"_id":"56cbef7f9f4ae20b00644fdc","ref":"","in":"query","required":false,"desc":"Restrict returned categories to a given parent_id","default":"","type":"int","name":"cat_parent_id"}],"url":"/courses/categories"},"isReference":true,"order":6,"body":"The **Course Categories** method returns a list of cat_ids that may be used in filtering of all course methods via the category_id parameter.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Examples\"\n}\n[/block]\nList all top-level (parent) categories excluding child (sub) categories.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: YOUR_APP_KEY\\\" https://api.triathlon.org/v1/courses/categories?child_categories=false\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\nList all technical official categories (cat_id 236)\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: YOUR_APP_KEY\\\" https://api.triathlon.org/v1/courses/categories?cat_parent_id=236\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"course-categories","type":"endpoint","title":"Course Categories"}

getCourse Categories


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

child_categories:
booleantrue
Show child categories
cat_parent_id:
integer
Restrict returned categories to a given parent_id

Result Format


Documentation

The **Course Categories** method returns a list of cat_ids that may be used in filtering of all course methods via the category_id parameter. [block:api-header] { "type": "basic", "title": "Examples" } [/block] List all top-level (parent) categories excluding child (sub) categories. [block:code] { "codes": [ { "code": "curl --header \"apikey: YOUR_APP_KEY\" https://api.triathlon.org/v1/courses/categories?child_categories=false", "language": "curl" } ] } [/block] List all technical official categories (cat_id 236) [block:code] { "codes": [ { "code": "curl --header \"apikey: YOUR_APP_KEY\" https://api.triathlon.org/v1/courses/categories?cat_parent_id=236", "language": "curl" } ] } [/block]

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