(ctx context.Context, appearance UpdateAppearanceConfig)
| 5046 | } |
| 5047 | |
| 5048 | func (c *Client) UpdateAppearance(ctx context.Context, appearance UpdateAppearanceConfig) error { |
| 5049 | res, err := c.Request(ctx, http.MethodPut, "/api/v2/appearance", appearance) |
| 5050 | if err != nil { |
| 5051 | return err |
| 5052 | } |
| 5053 | defer res.Body.Close() |
| 5054 | if res.StatusCode != http.StatusOK { |
| 5055 | return ReadBodyAsError(res) |
| 5056 | } |
| 5057 | return nil |
| 5058 | } |
| 5059 | |
| 5060 | // BuildInfoResponse contains build information for this instance of Coder. |
| 5061 | type BuildInfoResponse struct { |