Create a new image voting

POST /Api/ImageVotings

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

Body

Responses

curl \
 -X POST https://app.lovassy.hu/Api/ImageVotings \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","description":"string","type":"string","aspects":[{"key":"string","name":"string","description":"string"}],"active":true,"showUploaderInfo":true,"uploaderUserGroupId":42,"bannedUserGroupId":42,"maxUploadsPerUser":42,"superIncrementAllowed":true,"superIncrementValue":42}'
curl \
 -X POST https://app.lovassy.hu/Api/ImageVotings \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X POST https://app.lovassy.hu/Api/ImageVotings \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/*+json"
Request examples
{
  "name": "string",
  "description": "string",
  "type": "string",
  "aspects": [
    {
      "key": "string",
      "name": "string",
      "description": "string"
    }
  ],
  "active": true,
  "showUploaderInfo": true,
  "uploaderUserGroupId": 42,
  "bannedUserGroupId": 42,
  "maxUploadsPerUser": 42,
  "superIncrementAllowed": true,
  "superIncrementValue": 42
}
Response examples (201)
{
  "id": 42,
  "name": "string",
  "description": "string",
  "type": "string",
  "aspects": [
    {
      "key": "string",
      "name": "string",
      "description": "string"
    }
  ],
  "active": true,
  "showUploaderInfo": true,
  "uploaderUserGroupId": 42,
  "bannedUserGroupId": 42,
  "maxUploadsPerUser": 42,
  "superIncrementAllowed": true,
  "superIncrementValue": 42,
  "createdAt": "2024-05-04T09:42:00+00:00",
  "updatedAt": "2024-05-04T09:42:00+00:00"
}