Help!!!! Fail to create catalogGroup with parent

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
Alantod17
Posts: 57
Joined: Thu Sep 26, 2019 12:50 am

Help!!!! Fail to create catalogGroup with parent

Post by Alantod17 » Fri Apr 19, 2024 5:52 am

Hi

I am trying to create and catalog group with an parant group id but got following error.

could you pls let me know how to create a catalogGroup with parent pls

{
"errors": [
{
"path": null,
"message": "Group 2977 is already at 4th level and cannot be a parent.",
"value": null
}
]
}


EndPoint: /api/v1.0/companies/0/catalogGroups/
Body: {"Name":"Switches","ParentGroup":2977}
AidenTew
Posts: 25
Joined: Fri Mar 01, 2024 4:15 am

Re: Help!!!! Fail to create catalogGroup with parent

Post by AidenTew » Mon Apr 22, 2024 12:50 am

Hi Alantod17,

As per the error you are getting. Simpro only allows for 4 levels of groups for Catalog.

what you've entered to create catalogue groups is correct.
Aiden
API Developer | Simpro Software Group
Alantod17
Posts: 57
Joined: Thu Sep 26, 2019 12:50 am

Re: Help!!!! Fail to create catalogGroup with parent

Post by Alantod17 » Mon Apr 22, 2024 3:21 am

AidenTew wrote: Mon Apr 22, 2024 12:50 am Hi Alantod17,

As per the error you are getting. Simpro only allows for 4 levels of groups for Catalog.

what you've entered to create catalogue groups is correct.
Thanks for the reply. The problem is more related to how can I create an group that is not in 4th level?

the parent group I used in the request is created by me as well by post the name only.

How can I create parent group and its children?
AidenTew
Posts: 25
Joined: Fri Mar 01, 2024 4:15 am

Re: Help!!!! Fail to create catalogGroup with parent

Post by AidenTew » Tue Apr 23, 2024 12:55 am

Hi Alantod17,

At the moment there's no way to tell which level the group belongs to through the API.

This is something we're looking into improving in the future.

https://developer.simprogroup.com/apido ... d17c6fa45d

so if a ParentGroup is not mentioned in the request when trying to create a group, it will just create the group at the first level ( group without any parent )

and if you want to add a child group for the parent, just make sure to mention the catalog group on the ParentGroup during the request.

Hope that helps.
Aiden
API Developer | Simpro Software Group
Post Reply