<?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>question Re: API request to make a child tag/classification in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-request-to-make-a-child-tag-classification/m-p/197163#M73841</link>
    <description>&lt;P&gt;Thank you for your patience. Attached is a sample from one of the internal environments. The attached zip (&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/60449-tag0.zip"&gt;tag0.zip&lt;/A&gt;) has 2 files:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;tag0.json&lt;/EM&gt;: Top-level tag containing 1000+ sub-types.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;tag0_207.json&lt;/EM&gt;: One of the child tags that do not have sub-types, but has &lt;EM&gt;tag0&lt;/EM&gt; as parent.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can use entity creation APIs to add these types to the Atlas server.&lt;/P&gt;&lt;P&gt;Bulk APIs can be used to add multiple type definitions at the same time. Note that the bulk APIs takes &lt;EM&gt;AtlasTypesDef&lt;/EM&gt; as input, ensure that the posted JSON is in that format.&lt;/P&gt;&lt;PRE&gt;curl -X POST -u admin:admin -H 'Content-Type: application/json' -d @tags.json &lt;A href="http://localhost:21000/api/atlas/v2/types/typedefs" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typedefs&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 07:38:03 GMT</pubDate>
    <dc:creator>amestry</dc:creator>
    <dc:date>2018-02-08T07:38:03Z</dc:date>
    <item>
      <title>API request to make a child tag/classification</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-request-to-make-a-child-tag-classification/m-p/197162#M73840</link>
      <description>&lt;P&gt;There's documentation for creating a child/parent relationship for classifications in the UI. What would be the equivalent script for creating the same relationship in the API? &lt;/P&gt;&lt;P&gt;Let's say I have a parent classification named 'security_protection'. I want to create child classifications via API request named 'disk_encryption' and field_encryption'. What would be the v2 API request to do this?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Version 2.6.3&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 23:48:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-request-to-make-a-child-tag-classification/m-p/197162#M73840</guid>
      <dc:creator>laura_ngo</dc:creator>
      <dc:date>2018-01-24T23:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: API request to make a child tag/classification</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-request-to-make-a-child-tag-classification/m-p/197163#M73841</link>
      <description>&lt;P&gt;Thank you for your patience. Attached is a sample from one of the internal environments. The attached zip (&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/60449-tag0.zip"&gt;tag0.zip&lt;/A&gt;) has 2 files:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;tag0.json&lt;/EM&gt;: Top-level tag containing 1000+ sub-types.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;tag0_207.json&lt;/EM&gt;: One of the child tags that do not have sub-types, but has &lt;EM&gt;tag0&lt;/EM&gt; as parent.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can use entity creation APIs to add these types to the Atlas server.&lt;/P&gt;&lt;P&gt;Bulk APIs can be used to add multiple type definitions at the same time. Note that the bulk APIs takes &lt;EM&gt;AtlasTypesDef&lt;/EM&gt; as input, ensure that the posted JSON is in that format.&lt;/P&gt;&lt;PRE&gt;curl -X POST -u admin:admin -H 'Content-Type: application/json' -d @tags.json &lt;A href="http://localhost:21000/api/atlas/v2/types/typedefs" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typedefs&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 07:38:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-request-to-make-a-child-tag-classification/m-p/197163#M73841</guid>
      <dc:creator>amestry</dc:creator>
      <dc:date>2018-02-08T07:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: API request to make a child tag/classification</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-request-to-make-a-child-tag-classification/m-p/197164#M73842</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3758/laurango.html" nodeid="3758"&gt;@Laura Ngo&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Once you have the super tag "security_protection"created , following can be POSTed to API to create Types REST v2 API sub classifications. Note that the superTypes list contains the security_protection classification.&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://localhost:21000/api/atlas/v2/types/typedefs?type=classification" target="_blank"&gt;http://localhost:21000/api/atlas/v2/types/typedefs?type=classification&lt;/A&gt;&lt;/PRE&gt;&lt;PRE&gt;{ 
    "classificationDefs":[    
    	{          
	 "name":"disk_encryption",         
	 "description":"",        
	 "superTypes":["security_protection" ],        
	 "attributeDefs":[]      
        },
        {          
	 "name":"field_encryption",         
	 "description":"",        
	 "superTypes":["security_protection" ],        
	 "attributeDefs":[]      
        }
 ]
}

&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Feb 2018 21:31:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/API-request-to-make-a-child-tag-classification/m-p/197164#M73842</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2018-02-19T21:31:00Z</dc:date>
    </item>
  </channel>
</rss>

