product:chat

Delete retention policy

Changed on

Removes a retention policy for the app. Server-side only.

post/retention_policy/delete

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/retention_policy/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

policy'old-messages' | 'inactive-channels' required

Response

Response

durationstring required

Duration of the request in milliseconds

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • breaking

      request property was restricted to a list of enum values

    • breaking

      the request property became required

    • info

      added the new inactive-channels enum value to the request property

    • info

      added the new old-messages enum value to the request property