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
header
required

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.

Required string length: 3 - 128
Example:

"example_id"

workspace_id
string
required

The repo ID of the workspace.

Required string length: 3 - 128
Example:

"example_id"

Query Parameters

from_ordinal_id
integer
required

Returns all change history above this ordinal ID.

Response

200
application/json
The changes made to this workspace since the commit it's based upon.

A list of modification operations done on the workspace.