POST api/PNA/OVS/ElectionType

Request Information

URI Parameters

None.

Body Parameters

ElectionTypeCreateUpdateDTO
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

electionDate

date

None.

electionDateEnd

date

None.

positionId

integer

None.

chapterId

integer

None.

regionId

integer

None.

startTime

date

None.

endTime

date

None.

specialElection

string

None.

active

byte

None.

MaximumCandidate

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "electionDate": "2025-12-06T13:20:50.3801919+08:00",
  "electionDateEnd": "2025-12-06T13:20:50.3801919+08:00",
  "positionId": 5,
  "chapterId": 6,
  "regionId": 7,
  "startTime": "2025-12-06T13:20:50.3801919+08:00",
  "endTime": "2025-12-06T13:20:50.3801919+08:00",
  "specialElection": "sample string 10",
  "active": 64,
  "MaximumCandidate": 1
}

application/xml, text/xml

Sample:
<ElectionTypeCreateUpdateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PNA.Controllers.Admin">
  <MaximumCandidate>1</MaximumCandidate>
  <active>64</active>
  <chapterId>6</chapterId>
  <electionDate>2025-12-06T13:20:50.3801919+08:00</electionDate>
  <electionDateEnd>2025-12-06T13:20:50.3801919+08:00</electionDateEnd>
  <endTime>2025-12-06T13:20:50.3801919+08:00</endTime>
  <id>1</id>
  <name>sample string 2</name>
  <positionId>5</positionId>
  <regionId>7</regionId>
  <specialElection>sample string 10</specialElection>
  <startTime>2025-12-06T13:20:50.3801919+08:00</startTime>
</ElectionTypeCreateUpdateDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.