| 3070 | } |
| 3071 | |
| 3072 | func (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 |