Trying to upload a file using the API

mcsoftc

New Member
Sep 8, 2025
1
0
1
Hi, I'm trying to upload a snippet to my local storage using an API call but I keep getting this error no matter what method I try.

Response status code does not indicate success: 500 (upload failed at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1365.).


I've already tried using differents API Tokens, username and password.

The error itself is not that descriptive. Any suggestions?
 
snippets are not uploadable over the API at the moment.
 
I'm also looking to be able to do this! I was just learning about cloud-init and setting that up via API when I ran into this issue. For now I will use SSH/SFTP, which seems like the only alternative.