PATCH
/
api
/
v1
/
votes
/
{id}
{
  "@context": "<string>",
  "@id": "<string>",
  "@type": "<string>",
  "id": 123,
  "title": "<string>",
  "owner": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "fullName": "<string>"
  },
  "unit": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "name": "<string>"
  },
  "dateStart": "2023-11-07T05:31:56Z",
  "dateEnd": "2023-11-07T05:31:56Z",
  "isPoll": true,
  "isVoteEligible": true,
  "hasVoted": true,
  "hasAvailableResults": "<any>",
  "participationPercentage": "<any>",
  "isFuture": "<any>",
  "status": "<string>",
  "isOpen": "<any>",
  "results": [
    "<string>"
  ],
  "voteOptions": [
    {
      "@context": "<string>",
      "@id": "<string>",
      "@type": "<string>",
      "id": 123,
      "title": "<string>",
      "total": 123
    }
  ],
  "hasPreliminaryResults": true,
  "isGeneral": true,
  "isLocked": true,
  "isEditable": true,
  "totalVoted": 123,
  "totalEligible": 123,
  "event": {
    "@context": "<string>",
    "@id": "<string>",
    "@type": "<string>",
    "id": 123,
    "uuid": "<string>",
    "name": "<string>",
    "isOnline": true,
    "settings": {
      "tenantLogo": true,
      "showTitle": true,
      "colorSelection": null,
      "colorButton": null,
      "disableSubscribe": false,
      "disableRegister": true,
      "lightThemeOnly": false,
      "isThankYouSingular": false,
      "fieldName": true,
      "fieldEmail": true,
      "fieldPhone": false,
      "fieldOrganisation": false,
      "fieldRole": false,
      "fieldTown": false,
      "fieldLinkedin": false,
      "fieldX": false,
      "fieldInstagram": false
    }
  },
  "isDraft": true,
  "timezone": "<string>"
}

Path Parameters

id
string
required

Vote identifier

Body

application/merge-patch+json

The updated Vote resource

title
string
required
unit
string<iri-reference> | null
Example:

"https://example.com/"

dateStart
string<date-time> | null
dateEnd
string<date-time> | null
isPoll
boolean | null
hasPreliminaryResults
boolean | null
isGeneral
boolean | null
default:true
Example:

true

event
string<iri-reference> | null
Example:

"https://example.com/"

timezone
string | null

Response

Vote resource updated

title
string
required
@context
@id
string
@type
string
id
integer
owner
object | null
unit
object | null
dateStart
string<date-time> | null
dateEnd
string<date-time> | null
isPoll
boolean | null
isVoteEligible
boolean
hasVoted
boolean
hasAvailableResults
any
participationPercentage
any
isFuture
any
status
string | null
isOpen
any
results
string[] | null
voteOptions
object[]
hasPreliminaryResults
boolean | null
isGeneral
boolean | null
default:true
Example:

true

isLocked
boolean | null
isEditable
boolean
totalVoted
integer
totalEligible
integer
event
object | null
isDraft
boolean | null
default:true
Example:

true

timezone
string | null