API - Upload a picture
Hello, sorry, I begin my utilisation of Immich. I try some things with the API, and now I try to import a picture. I'm working with python and my response is "{"statusCode":400,"message":"Multipart: Boundary not found","error":"Bad Request"}". I know that error 400 corresponds with a bad request, but I don't know what I should change... Someone, more experimented than me, can help me ?
9 Replies
Can you pass files as a dictionary instead?
And no data/payload
By the way, we have a swagger spec file (open API spec json) you can use to auto generate python code:
https://openapi-generator.tech/#try
Hello from OpenAPI Generator | OpenAPI Generator
Description will go into a meta tag in
I'm not sure. Like that ? Can you make me an example ?
I just try to import a photo, whatever the way to do it.
Try remove the content type header? I'm not 100% sure, but that's what basic googling tells me
What are you trying to make?
To tell you the truth, I'm exploring the API a bit, and I'm trying to import a photo from my computer to Immich, then put it in an album. I know a bit about python so I started there.
Hello, the current uploadAsset doesn't work? I want to upload an image via node js and I always get an error message.
data: {
message: 'Invalid share key',
error: 'Unauthorized',
statusCode: 401,
correlationId: '0ikytt67'
}
Please don't revive ancient topics.
@Sonorc I'm not accepting any DM's for support stuff, feel free to make your own thread here though 🙂