pyapacheatlas.core.collections.PurviewCollectionsClient.upload_single_entity#

PurviewCollectionsClient.upload_single_entity(entity: Union[pyapacheatlas.core.entity.AtlasEntity, dict], collection: str, api_version: str = '2022-03-01-preview')#

Creates or updates a single atlas entity in a purview collection.

See also https://docs.microsoft.com/en-us/rest/api/purview/catalogdataplane/collection/create-or-update

Parameters
  • entity (Union[AtlasEntity, dict]) – The entity to create or update.

  • collection (str) – Collection ID of the containing purview collection. Typically a 6-letter pseudo-random string such as “xcgw8s” which can be obtained e.g. by visual inspection in the purview web UI (https://web.purview.azure.com/).

  • api_version (str) – The Purview API version to use.

Returns

An entity mutation response.

Return type

dict