Am using below Smartsheet API to get all the attachments. It brings the attachments from attachments and attachment available under Discussion. No problem in that.
smartsheetclient.Attachments.get_attachment(sheet_id, attachment_id)
While deleting the attachments using the below API. Here the problem is attachments section delete works fine and attachment under discussion give permission error. Am using admin user token to get and delete this file.
smartsheetclient.Attachments.delete_attachment(sheet_id, attachment_id)
Am not able to get attachment under discussion objects. Below is the reference and used the same code. However there is no attachments under discussions -> Array objects.
https://smartsheet.redoc.ly/tag/discussionsObjects