Discussions

Ask a Question
Back to All

admin.file and admin.files API calls no longer accessible

We have a feature in our software that uses the admin.file and admin.files API calls for uploading files onto employee accounts. I have been informed that those API calls have been blocked/removed from the API, and testing it out I do get a permission error (see bottom of this post for a sample).

Previously, we worked with your team to get it up and running correctly. That was discussed in the old forum, when you were still Shiftplanning. The link to the original forum post is ( https://www.shiftplanning.com/forums/viewtopic.php?pid=1030175#p1030175 ). I don't know if you still have told forum accessible internally or not, but it's the only reference I have.

If admin.file and admin.files are no longer available, how can I upload files to employee accounts through the API?

URL
https://www.shiftplanning.com/api/

Post Data
data={"output": "json","request": {"filedata": "","filelength": 51782,"filename": "TicketWorkorder_25971.pdf","method": "CREATE","mimetype": "application/pdf","module": "admin.file","users": "184374"},"token": "e1c5c1d709aa433fb71963e6330802a7bdaf3934"}

Post Response
{"status":20,"data":"Incorrect Permissions - You don't have the proper permissions to access this","error":null,"token":"e1c5c1d709aa433fb71963e6330802a7bdaf3934"}