A unified data governance solution that helps manage, protect, and discover data across your organization
Hi Rob Lancashire,
it looks like when you published your CDE in the preview portal, the “Owner” (internally the contacts attribute) got cleared out. Because contacts is a required property on every CDE, any attempt to move it back to Draft/Expired fails with that 400 (“Property ‘contacts’ is required.”).
Unfortunately the preview UI doesn’t let you re-add an owner on a Published CDE, so you’ll need to use the REST API (or PowerShell/CLI) to inject the missing contacts before you can unpublish. Here’s a high-level walkthrough:
- Grab your CDE’s GUID • In the portal URL or via the GET entities API.
- Fetch the existing entity definition (optional, but good for context) GET
https://<your-account>.catalog.purview.azure.com/purview/catalog/api/atlas/v2/entity/guid/<CDE-GUID>?minExtInfo=true - Patch in your contacts (AAD object IDs of the owner(s)) PATCH
https://<your-account>.catalog.purview.azure.com/purview/catalog/api/atlas/v2/entity Content-Type: application/json { "entities": [ { "typeName": "critical_data_element", "guid": "<CDE-GUID>", "attributes": { "contacts": [ "<user-object-id-1>", "<user-object-id-2>" // add as many as you need ] } } ] } - Now move it back to Draft (or Expired) PUT
(orhttps://<your-account>.catalog.purview.azure.com/purview/catalog/api/atlas/v2/entity/guid/<CDE-GUID>/status?status=DRAFT?status=EXPIREDif you prefer)
Once the contacts attribute is populated, the request should succeed and your CDE will revert to Draft/Expired. From there you can update columns/metadata and re-publish as desired.
Hope that unblocks you! Let me know if you hit any snags.
References
- Critical data elements REST API overview https://learn.microsoft.com/azure/purview/catalog-critical-data-elements-apis
- Purview Catalog REST API reference https://learn.microsoft.com/azure/purview/catalog-rest-api-overview
- Manage CDE lifecycle (Draft → Published → Expired) https://learn.microsoft.com/azure/purview/catalog-critical-data-elements-manage