Workspaces

Post Workspace Usage by ID

Changed on
post/api/v2/workspaces/{workspace}/usage

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/workspaces/{workspace}/usage
  • Auth
    API key in header Coder-Session-Token

Path parameters

workspacestring uuid required

Workspace ID

Request body

agent_idstring uuid
app_namestring

AppName is any name for the app reporting usage. The server normalizes it at ingestion, so a new app needs no server change. The UsageAppName constants are the well-known names.

Response

No Content

Changes