Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.09 KB

changeCollection.md

File metadata and controls

45 lines (37 loc) · 1.09 KB

pv entity changeCollection

Command Reference > entity > changeCollection

Description

Move existing entities to the target collection.

Syntax

pv entity changeCollection --collection=<val> --payloadFile=<val>

Required Arguments

--collection (string)
The collection unique name.

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

Optional Arguments

None

API Mapping

Catalog Data Plane > Collection > Move Entities To Collection

POST https://{accountName}.purview.azure.com/catalog/api/collections/{collection}/entity/moveHere

Examples

Move a list of existing entities to a target collection.

pv entity changeCollection --collection "tdumy6" --payloadFile "/path/to/file.json"
Example payload.

{
    "entityGuids": [
      "8409533f-698b-405e-8e99-40f6f6f60000",
      "893c32e2-cfdb-4c25-bfec-d19610465d50"
    ]
}