Policy Versions

Diff two revisions of a policy.

Changed on

Returns an RFC 6902 JSON Patch array describing what changed between the 'from' revision and the 'to' revision. If from and to are omitted, the two most recent retained revisions are compared. Object-level changes (adds, removes, replaces) are reported per field path; array values that differ are reported as a single replace at the array path. Each replace and remove also carries oldValue, the value before the change, so a client can show both sides; RFC 6902 has a client applying the patch ignore it. Admins may diff another user's policy via owner. Requires the policies:read scope.

get/api/policies/{policyName}/diff

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/policies/{policyName}/diff
  • Auth
    HTTP bearer

Path parameters

policyNamestring required

Query parameters

frominteger
tointeger
ownerstring

Headers

Authorizationstring required

Response

Revision diff; value is omitted for removals.

frominteger
tointeger

Changes

    • info

      added the optional property // to the response with the status

    • breaking

      the response's body type changed from string to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status