Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Enable uploading license file through API #14617

Closed
Devilspayback opened this issue Apr 19, 2024 · 4 comments
Closed

[Feature Request]: Enable uploading license file through API #14617

Devilspayback opened this issue Apr 19, 2024 · 4 comments

Comments

@Devilspayback
Copy link

Is your feature request related to a problem? Please describe.

Hello,

I've been writing some automation for SnipeIT in our company and would like to be able to upload license files through the API.
I've been trying a couple of variations as documented in the API support page, without success.
The code gives me back a positive response saying the license has been updated but the file isn't uploaded. Uploading it manually in the portal works without issue (it's an XML file). Is this a feature that is currently supported or not?

Thanks,

Describe the solution you'd like

I would like to be able to upload License Files through the API for automation purposes.

Describe alternatives you've considered

No response

Additional context

No response

Copy link

welcome bot commented Apr 19, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@snipe
Copy link
Owner

snipe commented Apr 22, 2024

What endpoint are you using? We generally don't allow file uploads via API, since it makes it much harder for us to validate file types and make sure nothing malicious is being uploaded since we have to first store the binary data, then do a bunch of validation on the temp file on the server.

@Devilspayback
Copy link
Author

I've tried both adding them with the POST method on license creation on the "MyEndpoint/licenses" endpoint and using the PUT/PATCH Method on existing licenses using the "MyEndpoint/Licenses/id" endpoint. I didn't see any parameters included in the API documentation to upload a file, so it's very well possible i'm not using the correct code to upload the license. Just wanted to check if this feature is supported or not.

@snipe
Copy link
Owner

snipe commented Apr 23, 2024

It is not supported at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants