{"_id":"564b84eddda79a19000f266e","editedParams":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"},"parentDoc":null,"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"},"editedParams2":true,"project":"55773a5ba042551900b002cb","__v":2,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-17T19:50:05.842Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"status":201,"name":"","code":"{\n   \"code\":201,\n   \"status\":\"success\",\n   \"data\":{\n      \"course_id\":102953,\n      \"course_title\":\"2016 Utrecht ITU Technical Officials Level 1 Seminar\",\n      \"course_edit_date\":\"2015-12-23T06:46:23+00:00\",\n      \"course_slug\":\"2016_utrecht_itu_technical_officials_level_1_seminar\",\n      \"course_venue\":\"Utrecht\",\n      \"course_language\":\"English\",\n      \"course_country_name\":\"Netherlands\",\n      \"course_latitude\":52.09074,\n      \"course_longitude\":5.12142,\n      \"course_date\":\"2016-04-09\",\n      \"course_finish_date\":null,\n      \"course_country_isoa2\":\"NL\",\n      \"course_noc\":\"NED\",\n      \"course_region_id\":10,\n      \"course_country_id\":230,\n      \"course_region_name\":\"Europe\",\n      \"course_categories\":[\n         {\n            \"cat_name\":\"Technical Officials\",\n            \"cat_id\":236,\n            \"cat_parent_id\":0\n         },\n         {\n            \"cat_name\":\"TO Level 1\",\n            \"cat_id\":239,\n            \"cat_parent_id\":236\n         }\n      ],\n      \"course_flag\":\"https:\\/\\/f9ca11ef49c28681fc01-0acbf57e00c47a50e70a1acb89e86c89.ssl.cf1.rackcdn.com\\/images\\/icons\\/nl.png\",\n      \"course_listing\":\"http:\\/\\/www.triathlon.org\\/development\\/course\\/2016_utrecht_itu_technical_officials_level_1_seminar\",\n      \"course_api_listing\":\"https:\\/\\/api.triathlon.org\\/v1\\/v1\\/federations\\/102953\"\n   }\n}","language":"json"}]},"settings":"","examples":{"codes":[]},"auth":"required","params":[{"_id":"5706a0a6b2943d0e00085af5","ref":"","in":"body","required":true,"desc":"The name of the course","default":"","type":"string","name":"course_title"},{"_id":"5706a0a6b2943d0e00085af4","ref":"","in":"body","required":true,"desc":"The venue of the course (used in determining geoloc data)","default":"","type":"string","name":"course_venue"},{"_id":"5706a0a6b2943d0e00085af3","ref":"","in":"body","required":true,"desc":"The country id of the course","default":"","type":"int","name":"course_country_id"},{"_id":"5706a0a6b2943d0e00085af2","ref":"","in":"body","required":true,"desc":"The start date of the course","default":"","type":"string","name":"course_date"},{"_id":"5706a0a6b2943d0e00085af1","ref":"","in":"body","required":false,"desc":"The finish date of the course (not required to be set for a one day course)","default":"","type":"string","name":"course_finish_date"},{"_id":"5706a0a6b2943d0e00085af0","ref":"","in":"body","required":true,"desc":"The language the course is to be delivered in","default":"","type":"string","name":"course_language"},{"_id":"5706a0a6b2943d0e00085aef","ref":"","in":"body","required":true,"desc":"A pipe delimited list of course categories for the course","default":"","type":"string","name":"course_categories"}],"url":"/courses"},"isReference":true,"order":3,"body":"The **Create Course** method creates a new course and returns a basic course object. You may add additional information via the Edit Course method once you have a valid `course_id`.","excerpt":"","slug":"create-course","type":"endpoint","title":"Create Course"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

course_title:
required
string
The name of the course
course_venue:
required
string
The venue of the course (used in determining geoloc data)
course_country_id:
required
integer
The country id of the course
course_date:
required
string
The start date of the course
course_finish_date:
string
The finish date of the course (not required to be set for a one day course)
course_language:
required
string
The language the course is to be delivered in
course_categories:
required
string
A pipe delimited list of course categories for the course

Result Format


Documentation

The **Create Course** method creates a new course and returns a basic course object. You may add additional information via the Edit Course method once you have a valid `course_id`.

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