Semantic type update using rest API on prem

Highlighted
Seven Stars

Semantic type update using rest API on prem

Hello,

 

I tried to update my semantic type using the rest api.

I have done a job that do the authentication get the bearer token and then call this url ( i tried both)

 

http://myserver:19999/semanticservice/documents/upload?category=XXXXXXX&overwrite=true

http://myserver:8187/documents/upload?category=XXXXXXX&overwrite=true

I got a 202 response but my semantic type is not updated.

I use a text file with one value per row.

 

is that the way to go?

Do i need to republish the semantic type after?

 

Thank you for your help

Guillaume

Highlighted
Employee

Re: Semantic type update using rest API on prem

Hello Guillaume,

First, it's highly recommended to use the UI or the batch or sh commands files to create and update the semantic types.

The creation and update of semantic type work with a sandbox, you need to create one:

PUT https://xxxxxxx/semanticservice/categories/xxxxxxx/sandbox

Then you patch the semantic type:

PATCH https://xxxxxx/semanticservice/categories/xxxxxxx

Set the semantic type to draft:

PATCH https://xxxx/semanticservice/categories/xxxxxxx/draft

And finally publish it if needed:

POST https://xxxxx/semanticservice/categories/xxxxxxx/publish

 

I hope it helps you.

 

Regards,

Nadia.

Highlighted
Seven Stars

Re: Semantic type update using rest API on prem

Hello Nadia,

Thank you for this answer, what do you mean by the batch? I understood the command line to update semantic type is deprecated, am i wrong?

I want to avoid manual intervention, what do you advice in this case.

 

Thank you

 

 

Highlighted
Employee

Re: Semantic type update using rest API on prem

Hi Guillaume,

Yes, the command line is no longer available in 7.3 release. Please find attached documentation on API for semantic type. I hope it help you.

Regards,

Nadia.

Highlighted
Seven Stars

Re: Semantic type update using rest API on prem

Hello,

 

I want to update the available values in the dictionary to use the drop-down list in validation.

But i am a bit confused. If i don't want to use the UI to update the semantic type  because i want to automate this part, what is the best and easy way to do so?

 

Regarding the messages in this topic API is not recommended and it is better to use batch or sh command (my understanding is that sh command is deprecated, am i right?)

 

So what is the best option?

Thank you

Guillaume

Highlighted
Employee

Re: Semantic type update using rest API on prem

Hello,

We recommend using the UI to update the semantic types. If you want to automatize this action, you have to use the APIs, because the sh command is deprecated and going to be removed in the next version 7.3.1.

Regards,

Nadia. 

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Creating a Stewardship Campaign and Data Model

In this video, you will see how to create a new campaign and enable team members to address curation tasks assigned to them within an approval workflow process

Watch Now

Managing a Stewardship Campaign

In this video, you will see how to assign your best team members specific tasks to reconcile, correct, merge, arbitrate or group pre-determined data and achieve quality, clean data in a limited time

Watch Now

Talend Data Stewardship – What does it have to offer?

In this short series, you will see how Talend Data Stewardship transforms your employees into data citizens and enables them with self-service capabilities to control their quality data

Watch Now