I am trying to delete and attach files using the PHP client and app authorization.
In the docs, these operations are listed as possible, but I get the following type of error:
The app with id ..... does not have the right add_file on item with id .....
The app with id ..... does not have the right delete on file with id .....
I have re-checked all the IDs: app, item & file. In fact for the delete operation, I authenticate using app authentication, get the item and list it's files, then try to delete the file using the file ID directly. I have checked that it is using a valid file ID and that the file is attached to the specified item and that the item is in the specified app.
The only possibility I can see is that the item was originally created using server-side authentication. The file I am trying to delete was uploaded and attached in the same way. Is this the problem? If so, is there any way to work around it?
The goal is to have an automated update system, so app authorization is what I need.
Please sign in to leave a comment.