UpdateChatDebugLogging updates the runtime admin setting that allows users to opt into chat debug logging.
(ctx context.Context, req UpdateChatDebugLoggingAllowUsersRequest)
| 2973 | // UpdateChatDebugLogging updates the runtime admin setting that allows |
| 2974 | // users to opt into chat debug logging. |
| 2975 | func (c *ExperimentalClient) UpdateChatDebugLogging(ctx context.Context, req UpdateChatDebugLoggingAllowUsersRequest) error { |
| 2976 | res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/debug-logging", req) |
| 2977 | if err != nil { |
| 2978 | return err |
| 2979 | } |
| 2980 | defer res.Body.Close() |
| 2981 | if res.StatusCode != http.StatusNoContent { |
| 2982 | return ReadBodyAsError(res) |
| 2983 | } |
| 2984 | return nil |
| 2985 | } |
| 2986 | |
| 2987 | // GetUserChatDebugLogging returns whether chat debug logging is active |
| 2988 | // for the current user and whether the user may change it. |