Why can I set statuses in the browser but not with my API key?
Check three things: the key holds files:approve, you are still an owner or
admin of that workspace (or of the organization, for organization folder
files), and your email is verified. Through a credential, setting a status
needs a verified email; in a browser session it does not.