Retrieve objects by parentId

I’m new to pimcore so I may be missing something fundamental. But I’m trying to retrieve a list of objects by parentId via the web service - I’m being provided the parent ID and I need to get all the objects within it, then eventually all the assets within those objects.

I don’t have the option to use the php api unfortunately and have to use the web service.

I assumed it would be something as simple as
http://serverURL/webservice/rest/object-list?limit=50&condition=parentId=[parent id] but this redirects me to the web interface. What am I missing, and is there more web service documentation beyond https://pimcore.com/docs/4.6.x/Web_Services/index.html ?

Thanks

2 Likes

Same question here! Hopefully, there is a undocumented trick, to get the whole object-tree. :cry:

Could you show the code and the screenshot from the admin page of your class object?

Got it! You have to use the keyword “o_parentId” in the condition string.

…&limit=50&condition=o_parentId%3D[yourParentId]

1 Like

THANK YOU.

This should be mentioned in https://pimcore.com/docs/6.x/Development_Documentation/Objects/Working_with_PHP_API.html and https://pimcore.com/docs/6.x/Development_Documentation/Development_Tools_and_Details/Database_Model.html