GET
/
repos
/
{repo_id}
/
workspaces
/
{workspace_id}
/
updates
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/workspaces/{workspace_id}/updates \
  --header 'Authorization: Bearer <token>' \
  --header 'X-DV-Client-ID: <x-dv-client-id>'
{
  "journal": [
    {
      "entry": {
        "path": "hello.cc",
        "prev_path": "<string>",
        "status": 1,
        "mode": 16877,
        "mtime": "2023-11-07T05:31:56Z",
        "blob": {
          "storage_uri": "repo_id/2aae6c35c94fcfb415dbe95f408b9ce91ee846ed",
          "storage_backend": 1,
          "size": 123,
          "sha": "<string>"
        }
      },
      "ordinal_id": 123
    }
  ],
  "commit_id": "<string>",
  "branch_id": "<string>",
  "base_commit_id": "<string>",
  "incomplete_response": true
}

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Headers

X-DV-Client-ID
string
required

The unique id of the client making this request

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

workspace_id
string
required

The repo ID of the workspace.

Query Parameters

from_ordinal_id
integer
required

Returns all change history above this ordinal ID.

Response

200 - application/json
journal
object[]
required
commit_id
string

Latest commit the workspace is checkout out on

branch_id
string

Which branch the workspace is checked out on, or none if detached

base_commit_id
string
required

The commit ID the workspace is based on, whether checket out on branch or commit

incomplete_response
boolean
required

More results are available, call the endpoint again with the latest revision from this response