Update detected secret resolution status

PUT {{baseUrl}}/detected-secrets/{{secretId}}

Updates the resolution status of a secret detected in a workspace.

Include the following in the request body:

  • resolution — A string value that contains the secret's updated resolution status:

    • FALSE_POSITIVE — The discovered secret is not an actual secret.
    • REVOKED — The secret is valid, but the user rotated their key to resolve the issue.
    • ACCEPTED_RISK — The Secret Scanner found the secret, but user accepts the risk of publishing it.
  • workspaceId — A string value that contains the ID of the workspace that contains the secret.

Request Body

{"resolution"=>"{{secretResolutionStatus}}", "workspaceId"=>"{{workspaceId}}"}

RESPONSES

status: OK

{"history":[{"actor":12345678,"createdAt":"2023-05-19T12:45:49.000Z","resolution":"FALSE_POSITIVE"},{"actor":12345678,"createdAt":"2023-05-19T12:45:37.000Z","resolution":"REVOKED","secretHash":"002aba6bb52023846544058145f356e0cfb2478de095e5c5145c31f059fbe9b0","workspaceId":"e361eeb4-00dd-4225-9774-6146a2555999"}]}