Save Preference
PUT https://api.runningahead.com/rest/users/me/preference
Save the specified user's preference.
Request
The endpoint accepts a
preference object.
Parameter |
Type |
Description |
access_token |
string (required) |
OAuth 2.0 token for the current user. |
Response
If the save exceeds, the response does not contain any user data.
Example
To save the user's preference, PUT the following data to the endpoint:
Data
{
"utcOffset": -5.0,
"distanceUnit": "mi",
"weightUnit": "lb",
"temperatureUnit": "F"
}
Endpoint
https://api.runningahead.com/rest/users/me/preference?access_token=VjU5s4dyhAPO2XiUzaNVeE
Response
{
"code": 0
}