{"__v":1,"_id":"58752e46d8906c0f00d2b15b","category":{"__v":9,"_id":"564b855b766d4923004e1fd1","pages":["564b863dae154821005080cb","564b86484f06ef2b006b08b8","564b865785e4e92b00fb4fa7","564b866bdda79a19000f2677","564b867885e4e92b00fb4fa9","56a9205d3c7e030d00797245","56a9206f1bb4420d004cac97","56a92093bd92180d00e1fc2e","56a92a13c48ee00d0092e2a2"],"project":"55773a5ba042551900b002cb","version":"55773a5ba042551900b002ce","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-17T19:51:55.701Z","from_sync":false,"order":11,"slug":"live-api","title":"Live API"},"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":"2017-01-10T18:56:06.060Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"curl -X POST -H \"apikey: YOUR_API_KEY\" -H \"Content-Type: application/xml\" -d 'timing_data' \"https://api.triathlon.org/v1/timing\"","language":"curl"}]},"method":"post","results":{"codes":[{"status":200,"language":"json","code":"{\n  \"code\": 200,\n  \"status\": \"success\",\n  \"data\": {\n    \"key\": \"16dab806cd7e4e842c4e568098d54e224f742cfa\"\n  }\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"5898c9627c5f330f00910a31","ref":"","in":"header","required":false,"desc":"Either application/xml or application/json to indicate the message body content type","default":"","type":"string","name":"Content-Type"}],"url":"/timing"},"isReference":true,"order":2,"body":"[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Only approved timers may submit timing data\",\n  \"body\": \"Approved timers will be given the appropriate permissions to submit timing data through the use of their API key.\"\n}\n[/block]\nThe **Create Timing** method allows timers to POST timing data directly to the Triathlon API for delivery to connected clients. Timers should consult the [live timing standard documentation](https://developers.triathlon.org/v1/page/live-timing-standard-v11) for details on implementation.\n\nThis method returns a `key` which is the unique hash of the message. Duplicate timing messages should not be sent and will be discarded.","excerpt":"","slug":"create-timing","type":"endpoint","title":"Create Timing"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Headers

Content-Type:
string
Either application/xml or application/json to indicate the message body content type

Examples


Result Format


Documentation

[block:callout] { "type": "danger", "title": "Only approved timers may submit timing data", "body": "Approved timers will be given the appropriate permissions to submit timing data through the use of their API key." } [/block] The **Create Timing** method allows timers to POST timing data directly to the Triathlon API for delivery to connected clients. Timers should consult the [live timing standard documentation](https://developers.triathlon.org/v1/page/live-timing-standard-v11) for details on implementation. This method returns a `key` which is the unique hash of the message. Duplicate timing messages should not be sent and will be discarded.

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