Skip to content

Commit 0c7247c

Browse files
committed
deprecation notice
1 parent 17b25b9 commit 0c7247c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codersdk/workspaces.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ func (c *Client) PostWorkspaceUsageWithBody(ctx context.Context, id uuid.UUID, r
352352
}
353353

354354
// PostWorkspaceUsage marks the workspace as having been used recently.
355+
// Deprecated: use PostWorkspaceUsageWithBody instead
355356
func (c *Client) PostWorkspaceUsage(ctx context.Context, id uuid.UUID) error {
356357
path := fmt.Sprintf("/api/v2/workspaces/%s/usage", id.String())
357358
res, err := c.Request(ctx, http.MethodPost, path, nil)

0 commit comments

Comments
 (0)