Skip to content

Commit 2913aeb

Browse files
authored
Automated update of Spotify's OpenAPI definition (#482)
1 parent fa9f3ac commit 2913aeb

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

fixed-spotify-open-api.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,26 @@ paths:
13111311
A JSON array of the [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids). For example: `["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]`<br/>A maximum of 50 items can be specified in one request. _**Note**: if the `ids` parameter is present in the query string, any IDs listed here in the body will be ignored._
13121312
items:
13131313
type: string
1314+
timestamped_ids:
1315+
type: array
1316+
description: |
1317+
A JSON array of objects containing track IDs with their corresponding timestamps. Each object must include a track ID and an `added_at` timestamp. This allows you to specify when tracks were added to maintain a specific chronological order in the user's library.<br/>A maximum of 50 items can be specified in one request. _**Note**: if the `timestamped_ids` is present in the body, any IDs listed in the query parameters or the `ids` field in the body will be ignored._
1318+
items:
1319+
type: object
1320+
required:
1321+
- id
1322+
- added_at
1323+
properties:
1324+
id:
1325+
type: string
1326+
description: |
1327+
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the track.
1328+
added_at:
1329+
type: string
1330+
format: date-time
1331+
x-spotify-docs-type: Timestamp
1332+
description: |
1333+
The timestamp when the track was added to the library. Use ISO 8601 format with UTC timezone (e.g., `2023-01-15T14:30:00Z`). You can specify past timestamps to insert tracks at specific positions in the library's chronological order. The API uses minute-level granularity for ordering, though the timestamp supports millisecond precision.
13141334
responses:
13151335
"200":
13161336
description: Track saved

official-spotify-open-api.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,6 +1348,26 @@ paths:
13481348
A JSON array of the [Spotify IDs](/documentation/web-api/concepts/spotify-uris-ids). For example: `["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]`<br/>A maximum of 50 items can be specified in one request. _**Note**: if the `ids` parameter is present in the query string, any IDs listed here in the body will be ignored._
13491349
items:
13501350
type: string
1351+
timestamped_ids:
1352+
type: array
1353+
description: |
1354+
A JSON array of objects containing track IDs with their corresponding timestamps. Each object must include a track ID and an `added_at` timestamp. This allows you to specify when tracks were added to maintain a specific chronological order in the user's library.<br/>A maximum of 50 items can be specified in one request. _**Note**: if the `timestamped_ids` is present in the body, any IDs listed in the query parameters or the `ids` field in the body will be ignored._
1355+
items:
1356+
type: object
1357+
required:
1358+
- id
1359+
- added_at
1360+
properties:
1361+
id:
1362+
type: string
1363+
description: |
1364+
The [Spotify ID](/documentation/web-api/concepts/spotify-uris-ids) for the track.
1365+
added_at:
1366+
type: string
1367+
format: date-time
1368+
x-spotify-docs-type: Timestamp
1369+
description: |
1370+
The timestamp when the track was added to the library. Use ISO 8601 format with UTC timezone (e.g., `2023-01-15T14:30:00Z`). You can specify past timestamps to insert tracks at specific positions in the library's chronological order. The API uses minute-level granularity for ordering, though the timestamp supports millisecond precision.
13511371
responses:
13521372
'200':
13531373
description: Track saved

0 commit comments

Comments
 (0)