Hikka Docs Hikka Docs
EndpointsUpload

Upload Image

PUT
/upload/{upload_type}

Path Parameters

upload_type*string
Value in"attachment" | "avatar" | "cover"

Header Parameters

auth?|
auth?|

Request Body

multipart/form-data

file*file
Formatbinary

Response Body

application/json

application/json

curl -X PUT "https://api.hikka.io/upload/attachment" \  -F file="string"
{
  "url": "string"
}
{
  "message": "Example error message",
  "code": "example_error"
}