Create an image voting entry

POST /Api/ImageVotingEntries

Requires verified email; Requires one of the following permissions: ImageVotings.ChooseImageVotingEntry, ImageVotings.CreateActiveImageVotingEntry; Requires the following features to be enabled: ImageVotings

Body

Responses

POST /Api/ImageVotingEntries
curl \
 -X POST https://app.lovassy.hu/Api/ImageVotingEntries \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"imageVotingId":42,"title":"string","imageUrl":"string"}'
curl \
 -X POST https://app.lovassy.hu/Api/ImageVotingEntries \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X POST https://app.lovassy.hu/Api/ImageVotingEntries \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/*+json"
Request examples
{
  "imageVotingId": 42,
  "title": "string",
  "imageUrl": "string"
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (201)
{
  "id": 42,
  "title": "string",
  "imageUrl": "string",
  "userId": "string",
  "imageVotingId": 42,
  "createdAt": "2024-05-04T09:42:00+00:00",
  "updatedAt": "2024-05-04T09:42:00+00:00"
}