Agent Versioning - Drafts
Get draft diff
Changed onDeprecated. Kept working during the v1 coexistence window (~1 month). Migrate to GET /agent/{id}/diff?a=<branchId>:draft&b=<revisionId>. Will be removed at the sunset date.
Compare a draft against its source version or another specified version.
get/agent/{id}/drafts/{draftId}/diff
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/agent/{id}/drafts/{draftId}/diff
- AuthHTTP bearer
Path parameters
idstring required
The agent ID.
draftIdstring required
The draft ID
Query parameters
compareTostring
Version ID to compare against. If omitted, compares against the source version.
Response
Diff returned successfully
Example response
{
"status": true
}Changes
- breaking
added the pattern
^[a-f\d]{24}$to thepathrequest parameterid - info
endpoint deprecated
- breaking
- info
endpoint reactivated
- info