Diff two revisions or drafts

View as Markdown

Compare any two references on this agent and return per-section diffs. Each side (a and b) is either a revisionId or the string <branchId>:draft to reference the open draft on a branch. Sides may cross branches. Both references must resolve to configs on the same agent.

Authentication

AuthorizationBearer

API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.

Path parameters

idstringRequiredformat: "^[a-f\d]{24}$"
The agent ID.

Query parameters

astringRequired1-64 characters

Left-hand side. Either a revisionId (24-hex ObjectId) or the token <branchId>:draft.

bstringRequired1-64 characters

Right-hand side. Either a revisionId (24-hex ObjectId) or the token <branchId>:draft.

Response

Successful response.
statusboolean
dataobject

Returned by GET /agent/{id}/diff.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error