Unable to add attachments to tickets through Desk API

Unable to add attachments to tickets through Desk API

I able to use the Desk API to generate tickets.
However when I try to use the  tickets/{ticketId}/attachments endpoint, I always get an Unauthorized error. My app has Desk.Tickets.ALL included in its scope so this should not be an issue