| 808 | } |
| 809 | |
| 810 | func (c *Client) DeleteWorkspaceACL(ctx context.Context, workspaceID uuid.UUID) error { |
| 811 | res, err := c.Request(ctx, http.MethodDelete, fmt.Sprintf("/api/v2/workspaces/%s/acl", workspaceID), nil) |
| 812 | if err != nil { |
| 813 | return err |
| 814 | } |
| 815 | defer res.Body.Close() |
| 816 | if res.StatusCode != http.StatusNoContent { |
| 817 | return ReadBodyAsError(res) |
| 818 | } |
| 819 | return nil |
| 820 | } |
| 821 | |
| 822 | // ExternalAgentCredentials contains the credentials needed for an external agent to connect to Coder. |
| 823 | type ExternalAgentCredentials struct { |