Songlist API
Version: 2.0.0
Export
/songs/bulk-update-filteredSet the active state on every song matching the given filters
Sets the active state on every song matching the supplied filters. With no filters set this updates the streamer's entire songlist. Songs already in the target state are not counted.
Authorization
Required scopes
streamer.song.writeWrite streamer songs
Request Bodyrequired
application/json
Schema
UpdateAllSongsParamsBody
A URL to the JSON Schema for this object.
Only update songs with this active state (omit for both)
Only update songs carrying every one of these attributes
Array items:
Only update songs every accepted collab guest also has
Only update songs at most this many seconds long. Songs with no recorded duration are excluded.
Only update songs at least this many seconds long. Songs with no recorded duration are excluded.
Only update the authenticated user's favorited songs
Only update songs with this queue status
Only update songs that are new
Only update songs last played after this date (RFC3339). Excludes never-played songs.
Only update songs last played before this date (RFC3339). Includes never-played songs.
Only update songs matching this title/artist search
Active state to set on every matching song
The streamer's ID. Can be found using the GET /streamers endpoint with the streamer_name and platform parameters
Comparison operator for the times played filter
Value to compare times played against
Example
{
"$schema": "https://example.com",
"active": "true",
"attributes": [
0
],
"collab": "only",
"durationMax": 0,
"durationMin": 0,
"favorites": "only",
"inQueue": "all",
"isNew": true,
"lastPlayedAfter": "2024-01-01T00:00:00Z",
"lastPlayedBefore": "2024-01-01T00:00:00Z",
"search": "string",
"setActive": true,
"streamerId": 1,
"timesPlayedOp": "eq",
"timesPlayedValue": 0
}Responses
200OK
application/json
Schema
UpdateAllSongsResponseBody
A URL to the JSON Schema for this object.
Example
{
"$schema": "https://example.com",
"updatedCount": 0
}400Bad Request
application/problem+json
Schema
ErrorModel
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
Array items:
ErrorDetail
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{
"$schema": "https://example.com",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com",
"status": 0,
"title": "string",
"type": "about:blank"
}401Unauthorized
application/problem+json
Schema
ErrorModel
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
Array items:
ErrorDetail
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{
"$schema": "https://example.com",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com",
"status": 0,
"title": "string",
"type": "about:blank"
}403Forbidden
application/problem+json
Schema
ErrorModel
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
Array items:
ErrorDetail
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{
"$schema": "https://example.com",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com",
"status": 0,
"title": "string",
"type": "about:blank"
}422Unprocessable Entity
application/problem+json
Schema
ErrorModel
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
Array items:
ErrorDetail
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{
"$schema": "https://example.com",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com",
"status": 0,
"title": "string",
"type": "about:blank"
}500Internal Server Error
application/problem+json
Schema
ErrorModel
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
Array items:
ErrorDetail
Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{
"$schema": "https://example.com",
"detail": "string",
"errors": [
{
"location": "string",
"message": "string",
"value": null
}
],
"instance": "https://example.com",
"status": 0,
"title": "string",
"type": "about:blank"
}