Update script status

Update the status of a script with the given script keys.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
scriptKeyslist of stringsRequired
An array of script keys whose statuses should be modified.
statusenumRequired
The status that the script should be updated to.
Allowed values:
justificationstringOptional

The reason why the status was updated. Updates the Script justification field in PCS DSS. Defaults to the vendor description if it exists.

notestringOptional
Additional information about the authorization.
applyJustificationToAllbooleanOptionalDefaults to false
If true, will update all specified scripts with the justification. If false, will only update scripts that do not already have a justification.

Response

Success
updated_scripts_countinteger or null

Errors