AI Chat

Both sides of one changed file: as last committed, and as it is now.

Changed on
get/ai/conversations/{public_id}/sandbox/changes/diff

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/conversations/{public_id}/sandbox/changes/diff
  • Auth: HTTP bearer

Path parameters

public_idstring required

Conversation public id

Query parameters

repostring required

The repository root, absolute or relative to the work directory.

pathstring required

The file, relative to the repository root.

old_pathstring nullable

The path before a rename, relative to the repository root.

Response

Both sides of the diff

binaryboolean required

True when either side is binary; both sides are then None.

modifiedstring nullable

The file as it is now. None when it was deleted.

originalstring nullable

The file as last committed. None when it is new.

pathstring required

Path relative to the repository root.

repostring required

Absolute path of the repository root.

truncatedboolean required

True when either side was cut at [MAX_VIEW_BYTES].

Changes