purviewcli icon indicating copy to clipboard operation
purviewcli copied to clipboard

Issue for updating businessmetadata for entity

Open yifan-zhou922 opened this issue 1 year ago • 1 comments

Payload bug for calling POST atlas/v2/entity/guid/{guid}/businessmetadata The cli tool will call the service API with the following wrong payload

{
  "entity": {
    "businessAttributes": {
      "businessMetadataGroupExample": {
        "businessMetadataAttributeExample1": [
          "1"
        ],
        "businessMetadataAttributeExample2": "5"
      }
    }
  }
}

while the correct payload should be

{
 "businessMetadataGroupExample": {
        "businessMetadataAttributeExample1": [
          "1"
        ],
        "businessMetadataAttributeExample2": "5"
      }
} 

More details for this API https://learn.microsoft.com/en-us/rest/api/purview/datamapdataplane/entity/add-or-update-business-metadata?view=rest-purview-datamapdataplane-2023-09-01&tabs=HTTP

Customers reported that they have used the correct payload however getting the error.

yifan-zhou922 avatar Apr 25 '24 02:04 yifan-zhou922

Please feel free to close the issue if it is a false alarm report. Thanks.

yifan-zhou922 avatar Apr 25 '24 02:04 yifan-zhou922