product:chat

Delete history window teams

Changed on

Puts up to ten teams back on the app's default history window. Only for apps with the history window enabled; other apps get 403. Server-side only.

post/history_window/teams/delete

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/history_window/teams/delete
  • Auth
    • API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
    • or API key in query parameter api_key and API key in header Stream-Auth-Type

Request body

teamsstring[] required

Teams to put back on the app's default history window, 1 to 10, each listed once. A team without full history is ignored

Response

Successful response

durationstring required

Duration of the request in milliseconds

teamsstring[] required

The teams of the request that had full history and are now back on the default window

Changes