The Create Program Result method creates a program result provided by the results
object. You may pass a single result object or an array of objects to create multiple results. A basic result object is returned or an array of basic results objects where multiple results are sent.
The body of a request for a single result should be of the following form. The splits
array should contain the split data in the form of the results headers. In the future in addition to splits
a timing
object will contain all split data recorded by the timer.
{
"athlete_id":12345,
"position":1,
"total_time":"01:56:59",
"splits":[
"00:19:25",
"00:00:28",
"01:03:06",
"00:00:26",
"00:33:35"
]
}
The method validates that the athlete_id
is valid and an existing program entry exists for the athlete else a validation error will be thrown. All validation checks are handled before any results are processed.