v1

latestOpenAPI 3.0.32026-07-22115106141.4 KB
Repository Workspace Manipulation

Get status of changes in workspace

get/repos/{repo_id}/workspaces/{workspace_id}/status

Query parameters

detail_itemsboolean

Should detail all the changed items in status response

limitinteger
Example:17

Limit the number of entries returned from walk

recurseboolean

Specifies if to recursively iterate file tree to next directory levels

path_prefixstring path
Example:path/to/file

A path prefix in the file tree to walk under

Response

The changes made to this workspace since the commit it's based upon.

changed_items_countnumber required

Number of changed items of all types

changed_files_countnumber required

Number of changed files

incomplete_resultboolean

The result list was trimmed and the counts are a lower bound only

conflictsstring[] nullable

List of conflicted file paths, compared to the base branch, if applicable

Example response

{
  "items": {
    "new": [
      {
        "path": "hello.cc",
        "blob": {
          "storage_uri": "repo_id/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
        }
      }
    ],
    "modified": [
      {
        "path": "hello.cc",
        "blob": {
          "storage_uri": "repo_id/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
        }
      }
    ],
    "deleted": [
      {
        "path": "hello.cc",
        "blob": {
          "storage_uri": "repo_id/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"
        }
      }
    ]
  }
}