From a47ec3c2b8cd61d1173a16b0d53a9125eface4ab Mon Sep 17 00:00:00 2001 From: Iain Hamilton Date: Fri, 19 Feb 2021 14:24:03 +0000 Subject: [PATCH] Add Remove Bookmark endpoint listing --- peloton-api.json | 35 +++++++++++++++++++++++++++++++++++ peloton-api.yaml | 22 ++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/peloton-api.json b/peloton-api.json index 26b34cf..cccf636 100644 --- a/peloton-api.json +++ b/peloton-api.json @@ -1091,6 +1091,41 @@ "tags" : [ "favorites" ] } }, + "/api/favorites/delete" : { + "post" : { + "description" : "Remove Bookmark from a workout/ride", + "security" : [ { + "sessionCookie" : [ ] + }, { + "pelotonPlatform" : [ ] + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "type" : "object", + "properties" : { + "ride_id" : { + "type" : "string" + } + } + }, + "examples" : { + "0" : { + "value" : "{\"ride_id\":\"55214456a1984c5885a087021e3f67b7\"}" + } + } + } + } + }, + "responses" : { + "200" : { + "description" : "empty response means this was successful" + } + }, + "tags" : [ "favorites" ] + } + }, "/api/v2/user/subscriptions" : { "get" : { "description" : "Get My Subscriptions", diff --git a/peloton-api.yaml b/peloton-api.yaml index 8182823..45c211a 100644 --- a/peloton-api.yaml +++ b/peloton-api.yaml @@ -851,6 +851,28 @@ paths: description: empty response means this was successful tags: - favorites + /api/favorites/delete: + post: + description: Remove Bookmark from a workout/ride + security: + - sessionCookie: [] + - pelotonPlatform: [] + requestBody: + content: + application/json: + schema: + type: object + properties: + ride_id: + type: string + examples: + "0": + value: '{"ride_id":"55214456a1984c5885a087021e3f67b7"}' + responses: + "200": + description: empty response means this was successful + tags: + - favorites /api/v2/user/subscriptions: get: description: Get My Subscriptions