Command Reference > account > putCollection
Creates or updates a collection entity.
pv account putCollection --friendlyName=<val> --parentCollection=<val>
--friendlyName
(string)
The friendly name of the collection.
--parentCollection
(string)
This is the unique name of the parent collection (not the friendly name).
None
Account Data Plane > Collections > Create Or Update Collection
PUT https://{accountName}.purview.azure.com/account/collections/{collectionName}
Create or update a collection.
pv account putCollection --friendlyName "hello world" --parentCollection "w0kfma"
Sample response.
{
"collectionProvisioningState": "Succeeded",
"friendlyName": "hello world",
"name": "qW48hl",
"parentCollection": {
"referenceName": "w0kfma",
"type": "CollectionReference"
},
"systemData": {
"createdAt": "2022-02-27T13:04:36.9095861Z",
"createdBy": "095354ff-cae8-44ff-8120-22ec5a941b40",
"createdByType": "User",
"lastModifiedAt": "2022-02-27T13:04:36.9095862Z",
"lastModifiedBy": "095354ff-cae8-44ff-8120-22ec5a941b40",
"lastModifiedByType": "User"
}
}