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

  • name string Required

    Minimum length is 1, maximum length is 255.

  • description string Required

    Minimum length is 1, maximum length is 255.

  • type string Required

    Minimum length is 1.

  • aspects array[object] Required
    Hide aspects attributes Show aspects attributes object
    • key string Required

      Minimum length is 1. Format should match the following pattern: ^[a-zA-Z][a-zA-Z0-9_]*$.

    • name string Required

      Minimum length is 1, maximum length is 255.

    • description string Required

      Minimum length is 1, maximum length is 255.

    • Additional properties are NOT allowed
  • active boolean Required
  • showUploaderInfo boolean Required
  • uploaderUserGroupId integer(int32) Required
  • bannedUserGroupId integer(int32) | null
  • maxUploadsPerUser integer(int32) Required

    Minimum value is 1.

  • superIncrementAllowed boolean Required
  • superIncrementValue integer(int32) Required

    Minimum value is 2.

  • Additional properties are NOT allowed

Responses

  • 204

    No Content

  • 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:
  • 401

    Unauthorized

  • 403

    Forbidden

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