APIInventory Scripts
List a script's history
Returns the full history of one script, newest first: when it was first seen, every time its contents changed, and every decision made about it, with who made it. The history is append-only and is kept even after the script stops being reported.
Requires the viewer role on the website and the compliance plan feature.
AuthorizationBearer <token>
An OpenID Connect access token issued by Keycloak, acting as the signed-in user.
In: header
Path Parameters
workspaceId*string
websiteId*string
inventoryId*string
Query Parameters
cursor?string
The nextCursor of the previous page. Omit it to start from the beginning. A cursor encodes a position and is not meant to be built by hand.
limit*|
How many items to return, from 1 to 200.
Range
1 <= value <= 200Default
50Response Body
application/json
curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/compliance/scripts/string/ledger?limit=50"{ "data": [ { "id": "string", "subresourceUrl": "string", "event": "hash_changed", "hash": "string", "justification": "string", "reason": "string", "ruleId": "string", "actorId": "string", "actor": { "id": "string", "email": "string", "firstName": "string", "lastName": "string", "picture": "string" }, "createdAt": "2019-08-24T14:15:22Z" } ], "pagination": { "nextCursor": "string", "hasMore": true, "total": 0 }}