forked from bogdandm/json2python-models
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspotify-swagger.yaml
More file actions
2004 lines (2004 loc) · 67.3 KB
/
spotify-swagger.yaml
File metadata and controls
2004 lines (2004 loc) · 67.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: '2.0'
schemes:
- https
host: api.spotify.com
basePath: /v1
info:
title: Spotify
version: v1
x-apisguru-categories:
- media
x-origin:
- format: raml
url: 'https://raw.githubusercontent.com/spotify/web-api/master/specifications/raml/api.raml'
version: '0.8'
x-providerName: spotify.com
x-logo:
url: https://logo-core.clearbit.com/spotify.com
externalDocs:
url: 'https://developer.spotify.com/'
consumes:
- application/json
produces:
- application/json
securityDefinitions:
oauth_2_0_accessCode:
authorizationUrl: 'https://accounts.spotify.com/authorize'
description: |
Spotify supports OAuth 2.0 for authenticating all API requests.
flow: accessCode
scopes:
playlist-modify-private: ''
playlist-modify-public: ''
playlist-read-collaborative: ''
playlist-read-private: ''
user-follow-modify: ''
user-follow-read: ''
user-library-modify: ''
user-library-read: ''
user-read-birthdate: ''
user-read-email: ''
user-read-private: ''
tokenUrl: 'https://accounts.spotify.com/api/token'
type: oauth2
oauth_2_0_implicit:
authorizationUrl: 'https://accounts.spotify.com/authorize'
description: |
Spotify supports OAuth 2.0 for authenticating all API requests.
flow: implicit
scopes:
playlist-modify-private: ''
playlist-modify-public: ''
playlist-read-collaborative: ''
playlist-read-private: ''
user-follow-modify: ''
user-follow-read: ''
user-library-modify: ''
user-library-read: ''
user-read-birthdate: ''
user-read-email: ''
user-read-private: ''
type: oauth2
paths:
/albums:
get:
description: |
[Get Several Albums](https://developer.spotify.com/web-api/get-several-albums/)
parameters:
- description: A comma-separated list of IDs
in: query
name: ids
required: true
type: string
- description: The market (an ISO 3166-1 alpha-2 country code)
in: query
name: market
required: false
type: string
responses:
'200':
description: OK
schema:
properties:
albums:
items:
$ref: '#/definitions/album'
type: array
type: object
'/albums/{id}':
get:
description: |
[Get an Album](https://developer.spotify.com/web-api/get-album/)
parameters:
- description: The Spotify ID for the album
in: path
name: id
required: true
type: string
- description: The market (an ISO 3166-1 alpha-2 country code)
in: query
name: market
required: false
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/album'
'/albums/{id}/tracks':
get:
description: |
[Get an Album's Tracks](https://developer.spotify.com/web-api/get-albums-tracks/)
parameters:
- description: The Spotify ID for the album
in: path
name: id
required: true
type: string
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: The market (an ISO 3166-1 alpha-2 country code)
in: query
name: market
required: false
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/track-simple-page'
/artists:
get:
description: |
[Get Several Artists](https://developer.spotify.com/web-api/get-several-artists/)
parameters:
- description: A comma-separated list of IDs
in: query
name: ids
required: true
type: string
responses:
'200':
description: OK
schema:
properties:
artists:
items:
$ref: '#/definitions/artist'
type: array
type: object
'/artists/{id}':
get:
description: |
[Get an Artist](https://developer.spotify.com/web-api/get-artist/)
parameters:
- description: The Spotify ID for the artist
in: path
name: id
required: true
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/artist'
'/artists/{id}/albums':
get:
description: |
[Get an Artist's Albums](https://developer.spotify.com/web-api/get-artists-albums/)
parameters:
- description: The Spotify ID for the artist
in: path
name: id
required: true
type: string
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: Filter by album types
in: query
name: album_type
required: false
type: string
- description: The market (an ISO 3166-1 alpha-2 country code)
in: query
name: market
required: false
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/album-simple-page'
'/artists/{id}/related-artists':
get:
description: |
[Get an Artist's Related Artists](https://developer.spotify.com/web-api/get-related-artists/)
parameters:
- description: The Spotify ID for the artist
in: path
name: id
required: true
type: string
responses:
'200':
description: OK
schema:
properties:
artists:
items:
$ref: '#/definitions/artist'
type: array
type: object
'/artists/{id}/top-tracks':
get:
description: |
[Get an Artist's Top Tracks](https://developer.spotify.com/web-api/get-artists-top-tracks/)
parameters:
- description: The Spotify ID for the artist
in: path
name: id
required: true
type: string
- description: The country (an ISO 3166-1 alpha-2 country code)
in: query
name: country
required: true
type: string
responses:
'200':
description: OK
schema:
properties:
tracks:
items:
$ref: '#/definitions/track'
type: array
type: object
/browse/categories:
get:
description: |
[Get a List of Browse Categories](https://developer.spotify.com/web-api/get-list-categories/)
parameters:
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: The country (an ISO 3166-1 alpha-2 country code)
in: query
name: country
required: false
type: string
- description: |
The desired language, consisting of an ISO 639 language code and an ISO 3166-1 alpha-2 country code, joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
in: query
name: locale
required: false
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/category-page'
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
'/browse/categories/{category_id}':
get:
description: |
[Get a Single Browse Category](https://developer.spotify.com/web-api/get-category/)
parameters:
- description: The Spotify ID of the category you wish to fetch.
in: path
name: category_id
required: true
type: string
- description: The country (an ISO 3166-1 alpha-2 country code)
in: query
name: country
required: false
type: string
- description: |
The desired language, consisting of an ISO 639 language code and an ISO 3166-1 alpha-2 country code, joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
in: query
name: locale
required: false
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/category'
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
'/browse/categories/{category_id}/playlists':
get:
description: |
[Get a Category's playlists](https://developer.spotify.com/web-api/get-categorys-playlists/)
parameters:
- description: The Spotify ID of the category you wish to fetch.
in: path
name: category_id
required: true
type: string
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: The country (an ISO 3166-1 alpha-2 country code)
in: query
name: country
required: false
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
responses:
'200':
description: OK
schema:
properties:
playlists:
$ref: '#/definitions/playlist-simple-page'
type: object
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
/browse/featured-playlists:
get:
description: |
[Get a List of Featured Playlists](https://developer.spotify.com/web-api/get-list-featured-playlists/)
parameters:
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: The country (an ISO 3166-1 alpha-2 country code)
in: query
name: country
required: false
type: string
- description: |
The desired language, consisting of an ISO 639 language code and an ISO 3166-1 alpha-2 country code, joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
in: query
name: locale
required: false
type: string
- description: |
A timestamp in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss) with the user's local time to get results tailored to a specific date and time in the day. If not provided, it defaults to the current UTC time. Example: "2014-10-23T09:00:00" for a user whose local time is 9AM.
in: query
name: timestamp
required: false
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/featured-playlists'
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
/browse/new-releases:
get:
description: |
[Get a List of New Releases](https://developer.spotify.com/web-api/get-list-new-releases/)
parameters:
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: The country (an ISO 3166-1 alpha-2 country code)
in: query
name: country
required: false
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/album-simple-page'
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
/me:
get:
description: |
[Get Current User's Profile](https://developer.spotify.com/web-api/get-current-users-profile/)
responses:
'200':
description: OK
schema:
$ref: '#/definitions/current-user-profile'
/me/following:
delete:
description: |
[Unfollow Artists or Users](https://developer.spotify.com/web-api/unfollow-artists-users/)
parameters:
- description: The type to unfollow.
enum:
- artist
- user
in: query
name: type
required: true
type: string
- description: A comma-separated list of the artists or users ids
in: query
name: ids
required: true
type: string
responses:
'204':
description: No Content
get:
description: |
[Get User's Followed Artists](https://developer.spotify.com/web-api/get-followed-artists/)
parameters:
- description: 'The ID type, currently only artist is supported.'
enum:
- artist
in: query
name: type
required: true
type: string
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- description: The last artist ID retrieved from the previous request.
in: query
name: after
required: false
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/user-followed'
put:
description: |
[Follow Artists or Users](https://developer.spotify.com/web-api/follow-artists-users/)
parameters:
- description: The type to follow.
enum:
- artist
- user
in: query
name: type
required: true
type: string
- description: A comma-separated list of the artists or users ids
in: query
name: ids
required: true
type: string
responses:
'204':
description: No Content
/me/following/contains:
get:
description: |
[Check if Current User Follows Artists or Users](https://developer.spotify.com/web-api/check-current-user-follows/)
parameters:
- description: The type to follow.
enum:
- artist
- user
in: query
name: type
required: true
type: string
- description: A comma-separated string of the artists or users ids.
in: query
name: ids
required: true
type: string
responses:
'200':
description: OK
schema:
items:
description: 'True if the user follows the artist/user, false otherwise'
type: boolean
type: array
/me/tracks:
delete:
description: |
[Remove Tracks for Current User](https://developer.spotify.com/web-api/remove-tracks-user/)
parameters:
- description: A comma-separated list of IDs
in: query
name: ids
required: true
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
produces:
- text/plain
responses:
'200':
description: OK
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
get:
description: |
[Get Current User's Saved Tracks](https://developer.spotify.com/web-api/get-users-saved-tracks/)
parameters:
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: The market (an ISO 3166-1 alpha-2 country code)
in: query
name: market
required: false
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/saved-track-page'
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
put:
description: |
[Save Tracks for Current User](https://developer.spotify.com/web-api/save-tracks-user/)
parameters:
- description: A comma-separated list of IDs
in: query
name: ids
required: true
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
produces:
- text/plain
responses:
'200':
description: OK
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
/me/tracks/contains:
get:
description: |
[Check Current User's Saved Tracks](https://developer.spotify.com/web-api/check-users-saved-tracks/)
parameters:
- description: A comma-separated list of IDs
in: query
name: ids
required: true
type: string
responses:
'200':
description: OK
schema:
items:
description: 'True if the track is in user''s Your Music library, false otherwise'
type: boolean
type: array
/search:
get:
description: |
[Search for an Item](https://developer.spotify.com/web-api/search-item/)
parameters:
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: 'The search query''s keywords (and optional field filters). The search is not case-sensitive: ''roadhouse'' will match ''Roadhouse'', ''roadHouse'', etc. Keywords will be matched in any order unless surrounded by quotes, thus q=roadhouse&20blues will match both ''Blues Roadhouse'' and ''Roadhouse of the Blues''. Quotation marks can be used to limit the match to a phrase: q=roadhouse&20blues will match ''My Roadhouse Blues'' but not ''Roadhouse of the Blues''. By default, results are returned when a match is found in any field of the target object type. Searches can be made more specific by specifying an album, artist or track field filter. For example q=album:gold%20artist:abba&type=album will search for albums with the text ''gold'' in the album name and the text ''abba'' in an artist name. Other possible field filters, depending on object types being searched, include year, genre, upc, and isrc. For example, q=damian%20genre:reggae-pop&type=artist. The asterisk (*) character can, with some limitations, be used as a wildcard (maximum: 2 per query). It will match a variable number of non-white-space characters. It cannot be used in a quoted phrase, in a field filter, or as the first character of the keyword string. Searching for playlists will return results matching the playlist''s name and/or description.'
in: query
name: q
required: true
type: string
- description: 'A comma-separated list of item types to search across. Search results will include hits from all the specified item types; for example q=name:abacab&type=album,track will return both albums and tracks with "abacab" in their name.'
in: query
name: type
required: true
type: string
- description: 'The market (an ISO 3166-1 alpha-2 country code). If given, only items with content playable in that market will be returned.'
in: query
name: market
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/search'
/tracks:
get:
description: |
[Get Several Tracks](https://developer.spotify.com/web-api/get-several-tracks/)
parameters:
- description: A comma-separated list of IDs
in: query
name: ids
required: true
type: string
- description: The market (an ISO 3166-1 alpha-2 country code)
in: query
name: market
required: false
type: string
responses:
'200':
description: OK
schema:
properties:
tracks:
items:
$ref: '#/definitions/track'
type: array
type: object
'/tracks/{id}':
get:
description: |
[Get a Track](https://developer.spotify.com/web-api/get-track/)
parameters:
- in: path
name: id
required: true
type: string
- description: The market (an ISO 3166-1 alpha-2 country code)
in: query
name: market
required: false
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/track'
'/users/{user_id}':
get:
description: |
[Get a User's Profile](https://developer.spotify.com/web-api/get-users-profile/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/user-profile'
'/users/{user_id}/playlists':
get:
description: |
[Get a List of a User's Playlists](https://developer.spotify.com/web-api/get-list-users-playlists/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
- default: 20
description: The maximum number of items to return
in: query
maximum: 50
minimum: 0
name: limit
required: false
type: integer
- default: 0
description: The index of the first item to return
in: query
name: offset
required: false
type: integer
- description: It is used to set specified media type.
in: header
name: Accept
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/playlist-simple-page'
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
post:
description: |
[Create a Playlist](https://developer.spotify.com/web-api/create-playlist/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
- in: body
name: body
required: true
schema:
properties:
name:
type: string
public:
type: boolean
required:
- name
type: object
responses:
'201':
description: Created
schema:
$ref: '#/definitions/playlist'
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
'/users/{user_id}/playlists/{playlist_id}':
get:
description: |
[Get a Playlist](https://developer.spotify.com/web-api/get-playlist/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
- description: The Spotify playlist ID.
in: path
name: playlist_id
required: true
type: string
- description: A comma-separated list of fields to filter query
in: query
name: fields
type: string
- description: The market (an ISO 3166-1 alpha-2 country code)
in: query
name: market
required: false
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
responses:
'200':
description: OK
schema:
$ref: '#/definitions/playlist'
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
put:
description: |
[Change a Playlist's Details](https://developer.spotify.com/web-api/change-playlist-details/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
- description: The Spotify playlist ID.
in: path
name: playlist_id
required: true
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
- in: body
name: body
required: true
schema:
properties:
name:
type: string
public:
type: boolean
type: object
produces:
- text/plain
responses:
'200':
description: OK
'429':
description: |
API rate limit exceeded. See http://developer.spotify.com/web-api/user-guide/#rate-limiting for details.
'/users/{user_id}/playlists/{playlist_id}/followers':
delete:
description: |
[Unfollow a Playlist](https://developer.spotify.com/web-api/unfollow-playlist/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
- description: The Spotify playlist ID.
in: path
name: playlist_id
required: true
type: string
produces:
- text/plain
responses:
'200':
description: OK
put:
description: |
[Follow a Playlist](https://developer.spotify.com/web-api/follow-playlist/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
- description: The Spotify playlist ID.
in: path
name: playlist_id
required: true
type: string
- in: body
name: body
required: true
schema:
properties:
public:
type: boolean
type: object
produces:
- text/plain
responses:
'200':
description: OK
'/users/{user_id}/playlists/{playlist_id}/followers/contains':
get:
description: |
[Check if Users Follow a Playlist](https://developer.spotify.com/web-api/check-user-following-playlist/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
- description: The Spotify playlist ID.
in: path
name: playlist_id
required: true
type: string
- description: A comma-separated list of users ids
in: query
name: ids
required: true
type: string
responses:
'200':
description: OK
schema:
items:
description: 'True if the user follows the playlist, false otherwise'
type: boolean
type: array
'/users/{user_id}/playlists/{playlist_id}/tracks':
delete:
description: |
[Remove Tracks from a Playlist](https://developer.spotify.com/web-api/remove-tracks-playlist/)
parameters:
- description: The user's Spotify user ID.
in: path
name: user_id
required: true
type: string
- description: The Spotify playlist ID.
in: path
name: playlist_id
required: true
type: string
- description: It is used to set specified media type.
in: header
name: Accept
type: string
- in: body
name: body
required: true
schema: