Skip to main content

v0/teams/{id}/streams REST API Endpoint

Replace the full list of Streams assigned to a team.

Updated on
Nov 24, 2026

Replace the full list of Streams assigned to a team. Send every Stream ID the team should retain in the stream_ids array. Omitted IDs are unassigned from this team. Send {"stream_ids":[]} to clear all of this team's assignments. Streams retain their assignments to other teams.

To add a Stream while keeping existing assignments, list the team's current Streams first. Include the existing IDs and the new ID in stream_ids. Use string IDs from the Streams API because this operation does not check whether the IDs exist in the Streams service.

Authenticate with an Admin API key with the Admin role and access to the target team. If a key is assigned to teams, it can add a Stream that has no team or is assigned to at least one of the key's teams.

  • HTTP 400 if stream_ids is missing.
  • HTTP 403 if the key lacks access to the team or to any requested Stream assignment. The assignment list stays as it was.
  • HTTP 404 if the team does not exist in the account.

Use the list operation again to verify the intended assignments.

Path Parameters

id
integer
REQUIRED

The unique identifier of the team.

Body Parameters

stream_ids
array
REQUIRED

The complete list of Stream IDs to assign to the team. Pass an empty array to remove every Stream assignment from this team.

Returns

data
object

The result of the assignment update.

success
boolean

True when the assignment update succeeds.

error
string | null

Null on success. For Console API errors, this field contains the error message.

Request
Response
1
{
2
"data": {
3
"success": true
4
},
5
"error": null
6
}
1
{
2
"data": {
3
"success": true
4
},
5
"error": null
6
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free