PUT v1/{Client}/VoteTypes/{VoteTypeId}

Updates one Vote Type.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Client

The code of the Client database to connect to.

string

Required

VoteTypeId

The Id of the Vote Type.

integer

Required

Body Parameters

GranicusVoteType object to be updated. Note that VoteTypeId is not required to be set.

GranicusVoteType
NameDescriptionTypeAdditional information
VoteTypeId

integer

None.

VoteTypeGuid

string

None.

VoteTypeLastModifiedUtc

date

None.

VoteTypeRowVersion

Collection of byte

None.

VoteTypeName

string

Required

VoteTypePluralName

string

Required

VoteTypeUsedFor

integer

None.

VoteTypeResult

integer

None.

VoteTypeSort

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "VoteTypeId": 1,
  "VoteTypeGuid": "sample string 2",
  "VoteTypeLastModifiedUtc": "2024-12-21T10:54:07.618158-05:00",
  "VoteTypeRowVersion": "QEA=",
  "VoteTypeName": "sample string 4",
  "VoteTypePluralName": "sample string 5",
  "VoteTypeUsedFor": 6,
  "VoteTypeResult": 7,
  "VoteTypeSort": 8
}

application/xml, text/xml

Sample:
<GranicusVoteType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LegistarWebAPI.Models.v1">
  <VoteTypeGuid>sample string 2</VoteTypeGuid>
  <VoteTypeId>1</VoteTypeId>
  <VoteTypeLastModifiedUtc>2024-12-21T10:54:07.618158-05:00</VoteTypeLastModifiedUtc>
  <VoteTypeName>sample string 4</VoteTypeName>
  <VoteTypePluralName>sample string 5</VoteTypePluralName>
  <VoteTypeResult>7</VoteTypeResult>
  <VoteTypeRowVersion>QEA=</VoteTypeRowVersion>
  <VoteTypeSort>8</VoteTypeSort>
  <VoteTypeUsedFor>6</VoteTypeUsedFor>
</GranicusVoteType>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns Id of the updated Vote Type as a string value when Accept header is "text/plain"; otherwise returns updated Vote Type 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.