Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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.
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
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.
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
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.