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

Method UpdateAppearance

codersdk/deployment.go:5048–5058  ·  view source on GitHub ↗
(ctx context.Context, appearance UpdateAppearanceConfig)

Source from the content-addressed store, hash-verified

5046}
5047
5048func (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.
5061type BuildInfoResponse struct {

Callers 2

TestAnnouncementBannersFunction · 0.80

Calls 3

RequestMethod · 0.95
ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65

Tested by 2

TestAnnouncementBannersFunction · 0.64