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
400ifstream_idsis missing. - HTTP
403if the key lacks access to the team or to any requested Stream assignment. The assignment list stays as it was. - HTTP
404if the team does not exist in the account.
Use the list operation again to verify the intended assignments.
Path Parameters
- idintegerREQUIRED
The unique identifier of the team.
Body Parameters
- stream_idsarrayREQUIRED
The complete list of Stream IDs to assign to the team. Pass an empty array to remove every Stream assignment from this team.
Returns
- dataobject
The result of the assignment update.
- successboolean
True when the assignment update succeeds.
- errorstring | null
Null on success. For Console API errors, this field contains the error message.
1{2"data": {3"success": true4},5"error": null6}
1{2"data": {3"success": true4},5"error": null6}