{"_id":"59cd88170f8ac1003c3e555c","project":"55773a5ba042551900b002cb","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"},"category":{"_id":"59cd4b81935249001c77c48e","project":"55773a5ba042551900b002cb","version":"55773a5ba042551900b002ce","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-09-28T19:20:33.950Z","from_sync":false,"order":14,"slug":"officials-api","title":"Officials API"},"user":"546d17e2eb9cfd1400dd4529","__v":1,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-09-28T23:39:03.621Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"post","examples":{"codes":[]},"results":{"codes":[{"name":"","code":"{\n   \"code\":201,\n   \"status\":\"success\",\n   \"data\":[\n      {\n         \"official_id\":123456,\n         \"official_title\":\"Technical Official\",\n         \"official_first\":\"Technical\",\n         \"official_last\":\"Official\",\n         \"official_gender\":\"female\",\n         \"official_noc\":\"GRE\",\n         \"official_year_of_birth\":1990,\n         \"official_certificate_year\":2008,\n         \"official_level\":3,\n         \"official_itu_id\":654321,\n         \"official_slug\":\"technical_official\",\n         \"official_country_id\":172,\n         \"official_country_name\":\"Greece\",\n         \"official_country_isoa2\":\"GR\",\n         \"official_region_id\":10,\n         \"official_region\":\"ETU\",\n         \"official_region_name\":\"Europe\",\n         \"official_flag\":\"https://f9ca11ef49c28681fc01-0acbf57e00c47a50e70a1acb89e86c89.ssl.cf1.rackcdn.com/images/icons/gr.png\",\n         \"official_api_listing\":\"https://api.triathlon.org/v1/officials/123456\",\n         \"official_valid_date\":2019\n      }\n   ]\n}","language":"json","status":201}]},"settings":"","auth":"required","params":[{"_id":"5a0b528704d0d600269f182b","ref":"","in":"body","required":true,"desc":"The first name of the athlete","default":"","type":"string","name":"first_name"},{"_id":"5a0b528704d0d600269f182a","ref":"","in":"body","required":true,"desc":"The family name of the athlete","default":"","type":"string","name":"family_name"},{"_id":"5a0b528704d0d600269f1829","ref":"","in":"body","required":true,"desc":"The date of birth of the official","default":"","type":"yyyy-mm-dd","name":"dob"},{"_id":"5a0b528704d0d600269f1828","ref":"","in":"body","required":true,"desc":"The gender of the official (male or female)","default":"","type":"string","name":"gender"},{"_id":"5a0b528704d0d600269f1827","ref":"","in":"body","required":true,"desc":"The country_id of the official","default":"","type":"int","name":"country_id"},{"_id":"5a0b528704d0d600269f1826","ref":"","in":"body","required":true,"desc":"The official level","default":"","type":"int","name":"level"},{"_id":"5a0b528704d0d600269f1825","ref":"","in":"body","required":false,"desc":"The year the official certificate was issued","default":"","type":"int","name":"certificate_year"},{"_id":"5a0b528704d0d600269f1824","ref":"","in":"body","required":false,"desc":"The id of the official in the ITU database","default":"","type":"int","name":"itu_id"},{"_id":"5a0b528704d0d600269f1823","ref":"","in":"body","required":false,"desc":"The year the official certification is valid until","default":"","type":"int","name":"valid_year"}],"url":"/officials"},"isReference":false,"order":3,"body":"","excerpt":"","slug":"create-official","type":"endpoint","title":"Create Official"}

postCreate Official


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

first_name:
required
string
The first name of the athlete
family_name:
required
string
The family name of the athlete
dob:
required
yyyy-mm-dd
The date of birth of the official
gender:
required
string
The gender of the official (male or female)
country_id:
required
integer
The country_id of the official
level:
required
integer
The official level
certificate_year:
integer
The year the official certificate was issued
itu_id:
integer
The id of the official in the ITU database
valid_year:
integer
The year the official certification is valid until

Result Format


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