Update an image voting

PATCH /Api/ImageVotings/{id}

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

Path parameters

  • id integer(int32) Required

Body

Responses

PATCH /Api/ImageVotings/{id}
curl \
 -X PATCH https://app.lovassy.hu/Api/ImageVotings/{id} \
 -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 PATCH https://app.lovassy.hu/Api/ImageVotings/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X PATCH https://app.lovassy.hu/Api/ImageVotings/{id} \
 -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 (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}