Hi anonymous user-9029,
You can query the document set just like querying folders.
/_api/Web/GetFolderByServerRelativePath(decodedurl='/sites/s01/Nagendra9029DocLib/testdocset01')?$expand=Folders,Files,ListItemAllFields
Best Regards,
Baker Kong
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.