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

Method UpdateChatACL

codersdk/chats.go:3072–3082  ·  view source on GitHub ↗
(ctx context.Context, chatID uuid.UUID, req UpdateChatACL)

Source from the content-addressed store, hash-verified

3070}
3071
3072func (c *ExperimentalClient) UpdateChatACL(ctx context.Context, chatID uuid.UUID, req UpdateChatACL) error {
3073 res, err := c.Request(ctx, http.MethodPatch, fmt.Sprintf("/api/experimental/chats/%s/acl", chatID), req)
3074 if err != nil {
3075 return err
3076 }
3077 defer res.Body.Close()
3078 if res.StatusCode != http.StatusNoContent {
3079 return ReadBodyAsError(res)
3080 }
3081 return nil
3082}
3083
3084// GetChatMessages returns the messages and queued messages for a chat.
3085// ChatMessagesPaginationOptions are optional pagination params for

Calls 3

ReadBodyAsErrorFunction · 0.85
CloseMethod · 0.65
RequestMethod · 0.45

Tested by 6

TestChatACLValidationFunction · 0.64
TestChatSharingDisabledFunction · 0.64