Updated on July 4, 2024

PII Delete

The Data Scan PII Elements Deletion API allows users to delete user-defined privacy information (PII) details for a specific column within a specified data source, object path, and column name. This document provides details on how to use the API, the required input parameters, and the expected output.

Note: To obtain the <auth token>, please refer to the Step-by-Step Guide to Obtain Your Auth Token.

# Import the ProtectoVault class from the protecto_ai module
from protecto_ai import ProtectoVault
# Create an instance of ProtectoVault with your authentication token
obj = ProtectoVault("<auth_token>")

HTTP Method: PUT

Endpoint: /pi-elements/delete

Code Snippet

{ 
"data_source_name": "Datasource3", 
"object_name": ["db1","schema1","table1"], 
"column_name": "column_1" 
} 

input Parameters :

  • data_source_name:
    • Description: A user-defined identifier for the data source. Users can provide any name for this identifier.
    • Type: String
    • Example: "Datasource3"
  • object_name:
    • Description: The object path indicating the database, schema, and table.
    • Type: Array of Strings
    • Example: ["db1", "schema1", "table1"]
  • column_name:
    • Description: The name of the column for which user-defined privacy information is to be deleted.
    • Type: String
    • Example: "column_1"

Output :

The API response will provide information about the success or failure of the user-defined PII details deletion.

{ 
  "data": { 
"message": "User defined pi_details deleted successfully for object name: ["db1","schema1","table1"] ,column_name: column_1." 
      }, 
  "success": "true", 
  "error": { 
    "message": "" 
  } 
} 

 

What are your feelings?
Scroll to Top