Save Equipment

New equipment:

POST https://api.runningahead.com/rest/logs/me/equipment

Existing equipment:

PUT https://api.runningahead.com/rest/logs/me/equipment/{id}

Request Body

Both endpoints accept a Equipment object.

Response

Parameter Type Description
id string If the save operation is successful, then the equipment's ID will be returned.

Examples

Saving a new equipment

To create a new equipment, post to the following endpoint:

https://api.runningahead.com/rest/logs/me/equipment?
access_token=VjU5s4dyhAPO2XiUzaNVeE

Specify the equipment data in the POST body:

{
    "id": "8qFYJ0l5ZaU3ZANapt2eR0",
    "activityID": 10,
    "brandName": "ASICS",
    "modelName": "2150",
    "serial": "2nd pair",
    "gender": "m",
    "notes": "Great shoes!",
    "ratings": {
      "avgRating": 3.4
    } 
}

Updating an existing course

Assuming the equipment's ID is d4faa3d754ba4dbc8c0517872a89c722, posting to the following endpoint will update the equipment:

https://api.runningahead.com/rest/logs/me/equipment/d4faa3d754ba4dbc8c0517872a89c722?
access_token=VjU5s4dyhAPO2XiUzaNVeE

Specify the equipment data in the POST body:

{
    "id": "8qFYJ0l5ZaU3ZANapt2eR0",
    "activityID": 10,
    "brandName": "ASICS",
    "modelName": "2150",
    "serial": "2nd pair",
    "gender": "m",
    "notes": "Great shoes!",
    "ratings": {
      "avgRating": 3.4
    } 
}