PatchAppStatus updates the status of a workspace app. Deprecated: use the DRPCAgentClient.UpdateAppStatus instead
(ctx context.Context, req PatchAppStatus)
| 659 | // PatchAppStatus updates the status of a workspace app. |
| 660 | // Deprecated: use the DRPCAgentClient.UpdateAppStatus instead |
| 661 | func (c *Client) PatchAppStatus(ctx context.Context, req PatchAppStatus) error { |
| 662 | res, err := c.SDK.Request(ctx, http.MethodPatch, "/api/v2/workspaceagents/me/app-status", req) |
| 663 | if err != nil { |
| 664 | return err |
| 665 | } |
| 666 | defer res.Body.Close() |
| 667 | if res.StatusCode != http.StatusOK { |
| 668 | return codersdk.ReadBodyAsError(res) |
| 669 | } |
| 670 | return nil |
| 671 | } |
| 672 | |
| 673 | type PostLogSourceRequest struct { |
| 674 | // ID is a unique identifier for the log source. |