Upserting Assets
By default we will generate a unique asset ID for you, so you do not need to provide one. Should you wish to provide your own ID, you can do so by providing an ID property in the asset object. This could be helpful when updating assets, or tracking assets in your own system.
The above request will return a 200 status code if succesful. If one of the assets in the array failed to be created, none of the assets will have been stored.
You can upsert using the following code snippet:
The following details shows the proeprties you can send in the body in more detail:
Examples: Create Datasets
Imagine you have a database somewhere that is not covered by one of our connectors. You can write a script that extracts the dataset metadata from your database, and then use the dScribe API to create those datasets in our platform.
Datasets are a special type of asset. In your request, you can immediatly specify some DSEs that will be linked to the dataset.
Look at the right for an example of how to create those datasets in our platform.
Examples: Adding Properties
To read more about properties, head over to our documentation.
For every asset you can add properties. Properties are extra metadata that you can configure to organize your assets and make the easier to find. To add properties to your assets you use the properties
value in your request.
This is an array in the following shape:
To get the API handles you will first have to go the portal and navigate to the properties page in the admin panel. You can find the api handle here (click the icon to copy to clipboard):
The api handles of the values can be found once you click the pencil icon:
Important note: If you are updating a multi select property, you have to provide a seperate object for every value you are trying to add like this:
Also note that the properties values will be overwritten. You have to provide all the values you would like to add in the request.
Examples: Adding Rich Text Properties
Within the dScribe platform, you have the possiblity to create Rich Text Input Properties.
To read more about properties, head over to our [documentation](https://documentation.dscribedata.com/configuration/custom-properties)
The simplest way to use them via the API is just providing some text. Behind the scenes we will wrap the text in a JSON structure like this:
If more convenient, you can also pass the above JSON value yourself. Using the JSON format gives you some extra possibilties, like creating a bulleted list complete with links. See a full example to the right.
This will result in the following:
Last updated