Docs
API 1.39
Status
Programs

RFC 6902 JSON Patch between two versions

GET /v1/programs/{id}/versions/{n}/diff: RFC 6902 JSON Patch between two versions

GET /v1/programs/{id}/versions/{n}/diff
Operation iddiffProgramVersion
Key scoperead: every key
SectionPrograms

#Parameters

NameInTypeRequiredDescription
idpathstringyesmin length 1
npathintegeryes≥ 1
againstqueryintegeryes≥ 1

#Example request

curl -X GET "https://api.kaab.ist/v1/programs/{id}/versions/{n}/diff" \
  -H "Authorization: Bearer $KAAB_API_KEY"

#Responses

#200

Patch

FieldTypeRequiredDescription
patchobjectyes
patch[].op"add", "remove", "replace", "move", "copy", "test"yes
patch[].pathstringyes
patch[].fromstring
patch[].valueany

#Errors

Every error answers with the error envelope; its code is one of the error codes.

StatusWhen
400request_invalid: request validation failed
401Missing or invalid API key
403The key's scope does not cover this operation
404Resource not found
429Rate limited; see Retry-After
500internal: unexpected server error

Was this page helpful?