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

  • imageVotingId integer(int32)
  • title string Required

    Minimum length is 1, maximum length is 255.

  • imageUrl string Required

    Minimum length is 1, maximum length is 255.

  • Additional properties are NOT allowed

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:
  • 201 application/json

    Created

    Hide response attributes Show response attributes object
    • id integer(int32)
    • title string | null
    • imageUrl string | null
    • userId string(uuid)
    • imageVotingId integer(int32)
    • createdAt string(date-time)
    • updatedAt string(date-time)
    • Additional properties are NOT allowed
  • 401

    Unauthorized

  • 403

    Forbidden

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