Exercise Logs
add exercise log
Creates a new exercise log
For custom components:
RaiselyComponents.api.all('exercise-logs').post(data = {}, params = {}, headers = {}) => Promise<{result}>
:fa-gears: See Restie Response Data for a more detailed overview of responses through the client wrapper
post/exercise-logs
Query parameters
privateboolean
Returns the full record when authenticated
Headers
Authorizationstring
A valid HTTP Bearer token, required to access private records.
Request body
Example request
{
"data": {
"activity": "RUNNING",
"data": {},
"date": "2020-12-03T06:52:46.330Z",
"distance": 12345,
"measure": 12345,
"rawDistance": 12345,
"time": 12345
}
}Response
The newly created exercise log
Example response
{
"data": {
"activity": "RUNNING",
"activityId": 12345,
"data": {},
"date": "2020-12-03T06:52:46.330Z",
"distance": 12345,
"measure": 12345,
"rawDistance": 12345,
"time": 12345,
"uuid": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
}
}