Workspaces
Get workspace metadata by user and workspace name
Changed onget/api/v2/users/{user}/workspace/{workspacename}
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v2/users/{user}/workspace/{workspacename}
- AuthAPI key in header Coder-Session-Token
Path parameters
userstring required
User ID, name, or me
workspacenamestring required
Workspace name
Query parameters
include_deletedboolean
Return data instead of HTTP 404 if the workspace is deleted
include_relatedstring
Comma-separated list of related data to include (e.g. template,latest_build.resources.agents.*). Omit to include everything.
Response
OK
Changes
- info
added the new optional
queryrequest parameterinclude_related
- info
- info
endpoint added
- info