UpdateChatAutoArchiveDays updates the chat auto-archive period.
(ctx context.Context, req UpdateChatAutoArchiveDaysRequest)
| 2706 | |
| 2707 | // UpdateChatAutoArchiveDays updates the chat auto-archive period. |
| 2708 | func (c *ExperimentalClient) UpdateChatAutoArchiveDays(ctx context.Context, req UpdateChatAutoArchiveDaysRequest) error { |
| 2709 | res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/auto-archive-days", req) |
| 2710 | if err != nil { |
| 2711 | return err |
| 2712 | } |
| 2713 | defer res.Body.Close() |
| 2714 | if res.StatusCode != http.StatusNoContent { |
| 2715 | return ReadBodyAsError(res) |
| 2716 | } |
| 2717 | return nil |
| 2718 | } |
| 2719 | |
| 2720 | // GetChatTemplateAllowlist returns the deployment-wide chat template allowlist. |
| 2721 | func (c *ExperimentalClient) GetChatTemplateAllowlist(ctx context.Context) (ChatTemplateAllowlist, error) { |