UpdateChatDesktopEnabled updates the deployment-wide desktop setting.
(ctx context.Context, req UpdateChatDesktopEnabledRequest)
| 2542 | |
| 2543 | // UpdateChatDesktopEnabled updates the deployment-wide desktop setting. |
| 2544 | func (c *ExperimentalClient) UpdateChatDesktopEnabled(ctx context.Context, req UpdateChatDesktopEnabledRequest) error { |
| 2545 | res, err := c.Request(ctx, http.MethodPut, "/api/experimental/chats/config/desktop-enabled", req) |
| 2546 | if err != nil { |
| 2547 | return err |
| 2548 | } |
| 2549 | defer res.Body.Close() |
| 2550 | if res.StatusCode != http.StatusNoContent { |
| 2551 | return ReadBodyAsError(res) |
| 2552 | } |
| 2553 | return nil |
| 2554 | } |
| 2555 | |
| 2556 | // GetChatAdvisorConfig returns the deployment-wide advisor configuration. |
| 2557 | func (c *ExperimentalClient) GetChatAdvisorConfig(ctx context.Context) (AdvisorConfig, error) { |