Trying to change the image of an Application in Gotify reddit / selfhosted ---------------------------------------------------------------------- FattyPoutine · 2023-12-18 06:15 Hey all! Can anybody share a working curl command using the image upload endpoint for a specific application to the Gotify API? [https://gotify.net/api- docs#/application/uploadAppImage](https://gotify.net/api- docs#/application/uploadAppImage) Docs say one should pass a **file** as ***formData,*** so this is my curl: **curl "**[**https://push.example.com/application/6/image?token=XXXXXX XX**](https://push.example.com/application/6/image?token=XXXXXXXX)**" -F "file=../gotify-icons/myappicon.png"** Running that, I get: {"error":"Unauthorized","errorCode":401,"errorDescription":"you need to provide a valid access token or user credentials to access this api"} For the record, the application id (6) exists, and i've checked that token, it's fine. Running this works fine: curl "[https://push.example.com/application/6/image?token=XXXXXXXX](ht tps://push.example.com/application/6/image?token=XXXXXXXX)" -F "title=subject" -F "message=message" What am I missing? ---------------------------------------------------------------------- arcadianarcadian · 2023-12-18 11:11 curl --form "file=@icon.jpg;type=multipart/form-data" "https://gotify.example.com/application/1/image?token=" ---------------------------------------------------------------------- FattyPoutine · 2023-12-18 15:00 Thank you! Works great. Cheers!