How to create a Asset and its relationship using Collibra POST API
Hi @spring-team.collibra.com ,
Can you please guide us how we can create an asset and its relationship with another asset in Collibra post request. We are using simple java code base to hit the API If you can share a template that would be great.
Thanks,
Pratik
pratikmori
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
3 comments
springboot_team
·4 years ago · EditedHello Pratik,
Regarding your request, can you please confirm whether you would like to upsert the assets directly to the Collibra Platform using its APIs – i.e., without using the Collibra Integration Library please?
The Spring Boot Collibra Integration Library contains several methods and POJOs that assist in building and upserting the assets, without having to manually build the import command and monitoring the import job. It also contains other features such as upserting in batches, generating statistics (based on the asset type) on what was imported and providing functionality to automatically mark assets that were not part of the respective import (i.e. old assets) as obsolete.
pratikmori
OP4 years ago · EditedHi Team,
I am aware about spring boot library, we can use it for asset creation , but i just want to learn more about api. if you can guide me how can i create an asset with the relationship or if you have any other documentation which can help us.
Thanks,
Pratik
springboot_team
·4 years ago · EditedHi Pratik,
You can use the Import API to bulk create or edit assets, attributes and relations. This is a tutorial to get you started. More details can be found in the Import API documentation.
Note that you can also use /assets REST Core API endpoints to perform simple asset creation and updates. However, you’d need to use other REST Core API endpoints to add attributes and relations , whereas with the Import API you are able to do so in a single import payload.