POST v1/{Client}/EventItems/{EventItemId}/Votes

Adds one Vote Item.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Client

The code of the Client database to connect to.

string

Required

EventItemId

The Id of the Event Item.

integer

Required

Body Parameters

GranicusVote object to be inserted. Note that VoteId is not required to be set.

GranicusVote
NameDescriptionTypeAdditional information
VoteId

integer

None.

VoteGuid

string

None.

VoteLastModifiedUtc

date

None.

VoteRowVersion

Collection of byte

None.

VotePersonId

integer

Required

VotePersonName

string

None.

VoteValueId

integer

Required

VoteValueName

string

None.

VoteSort

integer

None.

VoteResult

integer

None.

VoteEventItemId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VoteId": 1,
  "VoteGuid": "sample string 2",
  "VoteLastModifiedUtc": "2024-11-21T04:01:58.347773-05:00",
  "VoteRowVersion": "QEA=",
  "VotePersonId": 4,
  "VotePersonName": "sample string 5",
  "VoteValueId": 1,
  "VoteValueName": "sample string 6",
  "VoteSort": 7,
  "VoteResult": 1,
  "VoteEventItemId": 8
}

application/xml, text/xml

Sample:
<GranicusVote xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1">
  <VoteEventItemId>8</VoteEventItemId>
  <VoteGuid>sample string 2</VoteGuid>
  <VoteId>1</VoteId>
  <VoteLastModifiedUtc>2024-11-21T04:01:58.347773-05:00</VoteLastModifiedUtc>
  <VotePersonId>4</VotePersonId>
  <VotePersonName>sample string 5</VotePersonName>
  <VoteResult>1</VoteResult>
  <VoteRowVersion>QEA=</VoteRowVersion>
  <VoteSort>7</VoteSort>
  <VoteValueId>1</VoteValueId>
  <VoteValueName>sample string 6</VoteValueName>
</GranicusVote>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns Id of a created Vote item as a string value when Accept header is "text/plain"; otherwise returns created Vote item as an object.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.