Delete Course

DELETE https://api.runningahead.com/rest/logs/me/courses/{id}

Delete the course specified by id.

Request

Parameter Type Description
access_token string (required) OAuth 2.0 token for the current user.

Response

The response code is the only returned value. A course cannot be deleted if it is referenced by a workout. In this case, the response code will be 157.

Example

Request

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

Response

{
    "code": 0
}

If the operation succeeded, a response code of 0 is returned. If an error has occurred, the proper code will be returned.