UpdateChatDebugRetentionDays updates the chat debug run retention period.
(ctx context.Context, req UpdateChatDebugRetentionDaysRequest)
| 2679 | |
| 2680 | // UpdateChatDebugRetentionDays updates the chat debug run retention period. |
| 2681 | func (c *ExperimentalClient) UpdateChatDebugRetentionDays(ctx context.Context, req UpdateChatDebugRetentionDaysRequest) error { |
| 2682 | res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/debug-retention-days", req) |
| 2683 | if err != nil { |
| 2684 | return err |
| 2685 | } |
| 2686 | defer res.Body.Close() |
| 2687 | if res.StatusCode != http.StatusNoContent { |
| 2688 | return ReadBodyAsError(res) |
| 2689 | } |
| 2690 | return nil |
| 2691 | } |
| 2692 | |
| 2693 | // GetChatAutoArchiveDays returns the configured chat auto-archive period. |
| 2694 | func (c *ExperimentalClient) GetChatAutoArchiveDays(ctx context.Context) (ChatAutoArchiveDaysResponse, error) { |