<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic API TDS Semantic Service - Update dictionary entries of a semantic type in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204371#M736</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;we need to automate updating semantic types used in Data Stewardship. Most of the time, we use semantic types of type dictionary. I'm trying to use the REST API for this. &lt;/P&gt;&lt;P&gt;Using endpoint /categories does work (&lt;A href="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#" alt="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#" target="_blank"&gt;https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#&lt;/A&gt; /categories-controller/list), I get the information of the specific semantic type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the /documents endpoint to ge the list of documents / entries for a specific semantic type (&lt;A href="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#" alt="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#" target="_blank"&gt;https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#&lt;/A&gt; /documents-controller/list_1), but I cannot get it working. I always get a 415 - Unsupported media type code back. Here is an example request I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl&amp;nbsp;--location&amp;nbsp;--request&amp;nbsp;GET&amp;nbsp;&lt;/P&gt;&lt;P&gt;'&lt;A href="https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7" alt="https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7" target="_blank"&gt;https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7&lt;/A&gt;' --header&amp;nbsp;'Authorization:&amp;nbsp;Bearer&amp;nbsp;XXX' --header&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Cookie:&amp;nbsp;XSRF-TOKEN=XXX'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried all kind of combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end, I need to have an API endpoint where I can overwrite all existing entries in the dictionary of a semantic type. The job will call system A to receive a list of values and I need to send these values to a specific semantic type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:52:35 GMT</pubDate>
    <dc:creator>cimt_mk</dc:creator>
    <dc:date>2024-11-16T00:52:35Z</dc:date>
    <item>
      <title>API TDS Semantic Service - Update dictionary entries of a semantic type</title>
      <link>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204371#M736</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;we need to automate updating semantic types used in Data Stewardship. Most of the time, we use semantic types of type dictionary. I'm trying to use the REST API for this. &lt;/P&gt;&lt;P&gt;Using endpoint /categories does work (&lt;A href="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#" alt="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#" target="_blank"&gt;https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#&lt;/A&gt; /categories-controller/list), I get the information of the specific semantic type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the /documents endpoint to ge the list of documents / entries for a specific semantic type (&lt;A href="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#" alt="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#" target="_blank"&gt;https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#&lt;/A&gt; /documents-controller/list_1), but I cannot get it working. I always get a 415 - Unsupported media type code back. Here is an example request I used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl&amp;nbsp;--location&amp;nbsp;--request&amp;nbsp;GET&amp;nbsp;&lt;/P&gt;&lt;P&gt;'&lt;A href="https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7" alt="https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7" target="_blank"&gt;https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7&lt;/A&gt;' --header&amp;nbsp;'Authorization:&amp;nbsp;Bearer&amp;nbsp;XXX' --header&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Cookie:&amp;nbsp;XSRF-TOKEN=XXX'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried all kind of combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end, I need to have an API endpoint where I can overwrite all existing entries in the dictionary of a semantic type. The job will call system A to receive a list of values and I need to send these values to a specific semantic type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204371#M736</guid>
      <dc:creator>cimt_mk</dc:creator>
      <dc:date>2024-11-16T00:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: API TDS Semantic Service - Update dictionary entries of a semantic type</title>
      <link>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204372#M737</link>
      <description>&lt;P&gt;Hello @Mirco Kriesten​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you try to add the content type in your API requests? Your request will then look like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl&amp;nbsp;--location&amp;nbsp;--request&amp;nbsp;GET&amp;nbsp;&lt;/P&gt;&lt;P&gt;'&lt;A href="https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7" alt="https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7" target="_blank"&gt;https://tds.eu.cloud.talend.com//semanticservice/documents/?category=4e508870c04b091057ad70a7&lt;/A&gt;' --header&amp;nbsp;'Authorization:&amp;nbsp;Bearer&amp;nbsp;XXX' --header&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Cookie:&amp;nbsp;XSRF-TOKEN=XXX'&lt;B&gt; --header 'content-type: application/json' &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that our API documentation for semantic types is missing this header when you try out an API. I will enter a bug about it. &lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 15:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204372#M737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-04T15:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: API TDS Semantic Service - Update dictionary entries of a semantic type</title>
      <link>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204373#M738</link>
      <description>&lt;P&gt;Hi @Aurelien Fourmi​,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, setting content-type to application/json works! Now, I tried to update the documents with this &lt;A href="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#/documents-controller/upload_1" alt="https://tds.eu.cloud.talend.com/docs/api/swagger-ui.html?urls.primaryName=Semantic%20Service#/documents-controller/upload_1" target="_blank"&gt;endpoint&lt;/A&gt;. I always get the an &lt;B&gt;410 &lt;/B&gt;error ("&lt;B&gt;Gone&lt;/B&gt;" - "&lt;B&gt;Your&amp;nbsp;changes&amp;nbsp;were&amp;nbsp;discarded.&amp;nbsp;Another&amp;nbsp;user&amp;nbsp;edited&amp;nbsp;this&amp;nbsp;semantic&amp;nbsp;type&amp;nbsp;in&amp;nbsp;the&amp;nbsp;meantime&lt;/B&gt;"). I can rule out that any modifications actually happenend in the meantime. I tried the request within the API documentation as well as with Postman. The request looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl&amp;nbsp;--location&amp;nbsp;--request&amp;nbsp;POST&amp;nbsp;'https://tds.eu.cloud.talend.com//semanticservice/documents/upload?category=5ff30a4144783e6a986f6d31&amp;amp;overwrite=true'&amp;nbsp;\&lt;/P&gt;&lt;P&gt;--header&amp;nbsp;'Authorization:&amp;nbsp;Bearer&amp;nbsp;XXX'&amp;nbsp;\&lt;/P&gt;&lt;P&gt;--header&amp;nbsp;'Cookie:&amp;nbsp;XSRF-TOKEN=XXX'&amp;nbsp;\&lt;/P&gt;&lt;P&gt;--form&amp;nbsp;'file=@"/C:/tmp/test.txt"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 06:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204373#M738</guid>
      <dc:creator>cimt_mk</dc:creator>
      <dc:date>2021-01-05T06:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: API TDS Semantic Service - Update dictionary entries of a semantic type</title>
      <link>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204374#M739</link>
      <description>&lt;P&gt;Any idea? Do I need to create a ticket?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 08:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204374#M739</guid>
      <dc:creator>cimt_mk</dc:creator>
      <dc:date>2021-02-03T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: API TDS Semantic Service - Update dictionary entries of a semantic type</title>
      <link>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204375#M740</link>
      <description>&lt;P&gt;Hello @Mirco Kriesten​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the late answer.&lt;/P&gt;&lt;P&gt;Have you already read this documentation: &lt;A href="https://help.talend.com/r/39NzetoCUZMHcAnJtQuxxg/6G~ai40wIZ3PLlemIcTIPQ" alt="https://help.talend.com/r/39NzetoCUZMHcAnJtQuxxg/6G~ai40wIZ3PLlemIcTIPQ" target="_blank"&gt;https://help.talend.com/r/39NzetoCUZMHcAnJtQuxxg/6G~ai40wIZ3PLlemIcTIPQ&lt;/A&gt; ? &lt;/P&gt;&lt;P&gt;It explains how to create or edit a semantic type. In fact, you have to create a 'sandbox' for a semantic type before updating it.&lt;/P&gt;&lt;P&gt;Can you try and tell me if it works for you?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 08:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/API-TDS-Semantic-Service-Update-dictionary-entries-of-a-semantic/m-p/2204375#M740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-09T08:30:00Z</dc:date>
    </item>
  </channel>
</rss>

