Skip to content

Latest commit

 

History

History
61 lines (53 loc) · 1.59 KB

putTypeDefs.md

File metadata and controls

61 lines (53 loc) · 1.59 KB

pv types putTypeDefs

Command Reference > types > putTypeDefs

Description

Update all types in bulk, changes detected in the type definitions would be persisted.

Syntax

pv types putTypeDefs --payloadFile=<val>

Required Arguments

--payloadFile (string)
File path to a valid JSON document.

Optional Arguments

None

API Mapping

Catalog Data Plane > Types > Update Atlas Type Definitions

PUT https://{accountName}.purview.azure.com/catalog/api/atlas/v2/types/typedefs

Examples

Update type definitions in bulk.

pv types putTypeDefs --payloadFile "/path/to/file.json"
Example payload.

{
    "classificationDefs": [
        {
            "category": "CLASSIFICATION",
            "name": "CUSTOM.PII.PATIENT.IDENTITY.CARD",
            "description": "Positively identifying patients ensures intended patient receives the intended care.",
            "options": {
                "displayName": "Patient Identity Card Number"
            }
        },
        {
            "category": "CLASSIFICATION",
            "name": "CUSTOM.PII.PATIENT.POLICY.NUMBER",
            "description": "The number of the insurance policy as assigned by the Insurer.",
            "options": {
                "displayName": "Patient Policy Number"
            }
        }
    ],
    "entityDefs": [],
    "enumDefs": [],
    "relationshipDefs": [],
    "structDefs": []
}