Upload an image to be used in an image voting entry

POST /Api/ImageVotingEntryImages

Requires verified email; Requires one of the following permissions: ImageVotings.UploadActiveImageVotingEntryImage, ImageVotings.UploadImageVotingEntryImage

multipart/form-data

Body

  • ImageVotingId integer(int32)
  • File string(binary)

Responses

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
    • Additional properties:
  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • id integer(int32)
    • filename string | null
    • originalFilename string | null
    • mimeType string | null
    • path string | null
    • userId string(uuid)
    • url string | null
    • Additional properties are NOT allowed
  • 401

    Unauthorized

  • 403

    Forbidden

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"
}