POST v1/{Client}/VoteTypes
Adds one Vote Type.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Client |
The code of the Client database to connect to. |
string |
Required |
Body Parameters
GranicusVoteType object to be inserted. Note that VoteTypeId is not required to be set.
GranicusVoteType| Name | Description | Type | Additional 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": "2025-11-01T09:43:24.3387319-04: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>2025-11-01T09:43:24.3387319-04: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 a created Vote Type as a string value when Accept header is "text/plain"; otherwise returns created Vote Type as an object.
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |