APIInventory Scripts
Mark a script unauthorized
Records that this script should not be running on a payment page, with the reason why. Any existing justification is cleared and an entry is added to the script's history. This is a record of your decision: it does not block the script, so remove it from the page or from your policy as well.
Requires the analyst 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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
reason*string
Why this script does not belong on a payment page.
Match
\SLength
1 <= length <= 4096Response Body
application/json
curl -X POST "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/compliance/scripts/string/mark-unauthorized" \ -H "Content-Type: application/json" \ -d '{ "reason": "Marketing tag added without review. Removal requested from the growth team." }'{ "id": "string", "websiteId": "string", "subresourceUrl": "https://js.stripe.com/v3/", "status": "unreviewed", "justification": "string", "originId": "string", "origin": "https://js.stripe.com", "tags": [ { "id": "string", "name": "string", "color": "slate" } ], "justifiedHash": "string", "currentHash": "string", "ruleId": "string", "justifiedBy": "string", "justifiedByUser": { "id": "string", "email": "string", "firstName": "string", "lastName": "string", "picture": "string" }, "justifiedAt": "2019-08-24T14:15:22Z", "unauthorizedReason": "string", "unauthorizedBy": "string", "unauthorizedByUser": { "id": "string", "email": "string", "firstName": "string", "lastName": "string", "picture": "string" }, "unauthorizedAt": "2019-08-24T14:15:22Z", "retiredAt": "2019-08-24T14:15:22Z", "firstSeen": "2019-08-24T14:15:22Z", "lastSeen": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}