pyapacheatlas.core.client.PurviewClient.update_businessMetadata#

PurviewClient.update_businessMetadata(guid, businessMetadata, force_update=False)#

Update the business metadata. Provide a businessMetadata dictionary that has a key for the businessmetadata type def name and the value is a dictionary with keys of each attribute you want to add/update.

If I have a business metadata typedef of ‘operations`, with attributes ‘expenseCode’ and ‘criticality’, my businessMetadata might be:

{
    'operations': {
        'expenseCode': '123',
        'criticality': 'low'
    }
}
Parameters
  • guid (str) – The guid for the entity that you want to update business metadata.

  • businessMetadata (dict(str, dict)) – The business metadata you want to update with key of the businessMetadata type def and value of a dictionary with keys for each attribute you want removed and value

  • force_update (bool) – Defaults to False where you are only overwriting the business attributes you specify in businessMetadata. Set to True to overwrite all existing business metadata attributes with the value you provided.

Returns

A dict containing a message indicating success. Otherwise it will raise an AtlasException.

Return type

dict(str, str)