2 Replies Latest reply on Sep 15, 2021 2:18 PM by Gabriel Wallace

    Delete Custom Lineage with API

    Gabriel Wallace New Member

      I followed this KB Article to create custom lineage links between two objects in the catalog and it works as expected. However, I can't seem to find a way to delete a particular link. Is there a way to do this via the API?

        • 1. Re: Delete Custom Lineage with API
          Darren Wrigley Guru

          you can use deleteSourceLinks or deleteDestinationLinks to remove lineage links.

          personally i think it is easier to create a custom lineage resource and then re-load or purge the resource.

           

          if you want to use deleteSourceLinks - the format is (from the swagger ui/spec)

             "deleteSourceLinks": [
            
          {
                    "associationId": "string",
                   
          "objectId": "string",
                   
          "properties": [
                      
          {
                           
          "attrUuid": "string",
                           
          "value": "string"
                      
          }
                 
          ]
            
          }
           
          ]
          • 2. Re: Delete Custom Lineage with API
            Gabriel Wallace New Member

            Hi Darren. Thanks for the information. I'm currently working on automating putting custom lineage into EDC using the EDC API. In this case, would you recommend using the update objects call to add/remove source and destination links or use a custom lineage resource? What are the pros and cons of each approach?