MCPcopy Index your code
hub / github.com/coder/coder / UpdateChatDebugRetentionDays

Method UpdateChatDebugRetentionDays

codersdk/chats.go:2681–2691  ·  view source on GitHub ↗

UpdateChatDebugRetentionDays updates the chat debug run retention period.

(ctx context.Context, req UpdateChatDebugRetentionDaysRequest)

Source from the content-addressed store, hash-verified

2679
2680// UpdateChatDebugRetentionDays updates the chat debug run retention period.
2681func (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.
2694func (c *ExperimentalClient) GetChatAutoArchiveDays(ctx context.Context) (ChatAutoArchiveDaysResponse, error) {

Callers 1

Calls 3

ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65
RequestMethod · 0.45

Tested by 1