<?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 Re: API Method to Set Categorization Attribute in Upchain Forum</title>
    <link>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14030400#M784</link>
    <description>&lt;P&gt;Update on this - I think I've confirmed my suspicion. The "CompanyName" category has several attributes - one of which is a string which defaults to empty. If I just make a call to set it empty explicitly, the categories now show in the webapp with my previous update to the attribute I actually wanted to target..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the safer flow would be to check if it has that attribute set already and only write blank if it's not set..? Or is there a better way to do this that I'm missing? It just seems that the child category won't show until I set *something* on the parent category.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Feb 2026 14:43:08 GMT</pubDate>
    <dc:creator>imckenzieY7CGY</dc:creator>
    <dc:date>2026-02-24T14:43:08Z</dc:date>
    <item>
      <title>API Method to Set Categorization Attribute</title>
      <link>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14025069#M781</link>
      <description>&lt;P&gt;Looking for guidance on how to call the Upchain API to set a categorization attribute.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Say I have categoryId: 20 with attribute id: 1807, value type LOV - the list of values includes item indexes 1 thru 18.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a particular item, which does not have any category information yet, I want to set this attribute to a specific value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I call&lt;/P&gt;&lt;LI-CODE lang="general"&gt;/api/bom/v1/part_version/{partVersionId}/category_attribute&lt;/LI-CODE&gt;&lt;P&gt;to accomplish this, passing the target&amp;nbsp;&lt;SPAN&gt;partVersionId as a header&lt;/SPAN&gt; - and do I have to do a POST to set versus a PATCH to change it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does the body of the request include to accomplish what I want to do? Am I missing any information if I have the output of the following call already:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;/api/category_attribute/v1/20&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2026 21:00:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14025069#M781</guid>
      <dc:creator>imckenzieY7CGY</dc:creator>
      <dc:date>2026-02-19T21:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: API Method to Set Categorization Attribute</title>
      <link>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14029994#M782</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes, for setting specific attribute LOV value to an item you can call that PATCH endpoint&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample line-numbers language-general" tabindex="0"&gt;&lt;CODE&gt;/api/bom/v1/part_version/{partVersionId}/category_attribute&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to provide &lt;STRONG&gt;partVersionID&lt;/STRONG&gt; as url param and &lt;STRONG&gt;Upc-Selected-Company&lt;/STRONG&gt; (ID of your tenant).&lt;/P&gt;
&lt;P&gt;In the request body you need to provide:&lt;/P&gt;
&lt;P&gt;- &lt;STRONG&gt;attributeID&lt;/STRONG&gt; - ID of you category attribute (you can find it by calling&amp;nbsp;&lt;SPAN class="opblock-summary-method"&gt;GET&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="opblock-summary-path" data-path="/api/category_attribute/v1/{categoryId}"&gt;&lt;A class="nostyle" href="https://kelvin.upchain.build/swagger-ui/index.html#/category%20attribute/findAllCategoryAttribute" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;/api&lt;WBR /&gt;/category_attribute&lt;WBR /&gt;/v1&lt;WBR /&gt;/{categoryId&lt;/SPAN&gt;&lt;/A&gt;}&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;- &lt;STRONG&gt;categoryID&lt;/STRONG&gt; - ID of the category (you can find it by calling&amp;nbsp;&lt;SPAN class="opblock-summary-method"&gt;GET&lt;/SPAN&gt;&lt;SPAN class="opblock-summary-path" data-path="/api/category/v1/categories"&gt;&lt;A class="nostyle" href="https://kelvin.upchain.build/swagger-ui/index.html#/category/findAllCategories" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;/api&lt;WBR /&gt;/category&lt;WBR /&gt;/v1&lt;WBR /&gt;/categories&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="opblock-summary-path" data-path="/api/category_attribute/v1/{categoryId}"&gt;&lt;A class="nostyle" href="https://kelvin.upchain.build/swagger-ui/index.html#/category%20attribute/findAllCategoryAttribute" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;- &lt;STRONG&gt;itemID&lt;/STRONG&gt; - same ID as for&amp;nbsp;partVersionID&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- &lt;STRONG&gt;valueLov&lt;/STRONG&gt; -&amp;nbsp;ID of you LOV category attribute (you can also find it by calling&amp;nbsp;&lt;SPAN class="opblock-summary-method"&gt;GET&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="opblock-summary-path" data-path="/api/category_attribute/v1/{categoryId}"&gt;&lt;A class="nostyle" href="https://kelvin.upchain.build/swagger-ui/index.html#/category%20attribute/findAllCategoryAttribute" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;/api&lt;WBR /&gt;/category_attribute&lt;WBR /&gt;/v1&lt;WBR /&gt;/{categoryId&lt;/SPAN&gt;&lt;/A&gt;}&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Video example attached, please let me know if you have any additional question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mario Hoblaj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 10:00:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14029994#M782</guid>
      <dc:creator>mario_hoblaj</dc:creator>
      <dc:date>2026-02-24T10:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: API Method to Set Categorization Attribute</title>
      <link>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14030373#M783</link>
      <description>&lt;P&gt;Thanks for the reply - just tested this out and it seems to partially work, but I'm seeing slightly different behaviour in the webapp.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I make the patch call, I get a 200 OK response indicating it went through, but when I view the categories tab as you show in your video, nothing is shown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I then click the '+' and go through the category selection, once I add the category and get to the view where I could set the attribute, I see that it is already set. So it seems like a step is missing for my setup..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess is that this is maybe related to our category hierarchy - the attribute I'm trying to set is for a nested category.. So we have category "CompanyName" with subcategory "DivisionName" that then has the LOV attribute I can set. Calling&amp;nbsp;&lt;SPAN&gt;/api/category/v1/categories shows the parent category as id 17, with a 'children' array, which includes category id 20 and then&amp;nbsp;/api/category_attribute/v1/20 returns the attribute I want to set.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there some kind of step where I need to set an attribute on the parent category to show the child category?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 14:22:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14030373#M783</guid>
      <dc:creator>imckenzieY7CGY</dc:creator>
      <dc:date>2026-02-24T14:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: API Method to Set Categorization Attribute</title>
      <link>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14030400#M784</link>
      <description>&lt;P&gt;Update on this - I think I've confirmed my suspicion. The "CompanyName" category has several attributes - one of which is a string which defaults to empty. If I just make a call to set it empty explicitly, the categories now show in the webapp with my previous update to the attribute I actually wanted to target..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the safer flow would be to check if it has that attribute set already and only write blank if it's not set..? Or is there a better way to do this that I'm missing? It just seems that the child category won't show until I set *something* on the parent category.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 14:43:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/upchain-forum/api-method-to-set-categorization-attribute/m-p/14030400#M784</guid>
      <dc:creator>imckenzieY7CGY</dc:creator>
      <dc:date>2026-02-24T14:43:08Z</dc:date>
    </item>
  </channel>
</rss>

