[
https://issues.apache.org/jira/browse/ATLAS-5299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18082761#comment-18082761
]
Brijesh Bhalala commented on ATLAS-5299:
----------------------------------------
Findings:
1)Creating the category from Dashboard page the sub-category doesnt get created
due to parentCategoryID issue from UI side
2)If we create the category from category detail page then it gets created
because it gets the parentcategoryID from URL search params.
> Atlas React UI: Create Subcategory API Fails Due to Missing parentCategoryId
> in UI Payload
> ------------------------------------------------------------------------------------------
>
> Key: ATLAS-5299
> URL: https://issues.apache.org/jira/browse/ATLAS-5299
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Reporter: Brijesh Bhalala
> Assignee: Brijesh Bhalala
> Priority: Major
> Labels: atlas-react
> Fix For: 2.5.0
>
> Attachments: Screenshot from 2026-05-20 17-01-59.png
>
>
> !Screenshot from 2026-05-20 17-01-59.png|width=486,height=231!
> While creating a subcategory from the UI, the backend API is returning an
> error because the {{parentCategoryId}} field is not being included in the
> request payload.
> h3. Issue Details
> * Subcategory creation flow fails on submit.
> * Backend expects {{parentCategoryId}} as a mandatory field.
> * UI payload currently does not send this field.
> h3. Expected Behavior
> UI should include the selected parent category ID in the payload while
> creating a subcategory.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)