Upload an image to be used in an image voting entry
Requires verified email; Requires one of the following permissions: ImageVotings.UploadActiveImageVotingEntryImage, ImageVotings.UploadImageVotingEntryImage
Body
-
ImageVotingId
integer(int32) -
File
string(binary)
POST
/Api/ImageVotingEntryImages
curl \
-X POST https://app.lovassy.hu/Api/ImageVotingEntryImages \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: multipart/form-data" \
-F "ImageVotingId=42" \
-F "File=@file"
Response examples (404)
{
"type": "string",
"title": "string",
"status": 42,
"detail": "string",
"instance": "string"
}
Response examples (200)
{
"id": 42,
"filename": "string",
"originalFilename": "string",
"mimeType": "string",
"path": "string",
"userId": "string",
"url": "string"
}