POST api/Elections

Request Information

URI Parameters

None.

Body Parameters

Election
NameDescriptionTypeAdditional information
uuid

string

None.

name

string

None.

description

string

None.

local_number

string

None.

type

string

None.

start_date

date

None.

end_date

date

None.

signature_required

boolean

None.

created_by

string

None.

created_on

date

None.

modified_by

string

None.

modified_on

date

None.

rowversion

integer

None.

results

string

None.

Request Formats

application/json, text/json

Sample:
{
  "uuid": "sample string 1",
  "name": "sample string 2",
  "description": "sample string 3",
  "local_number": "sample string 4",
  "type": "sample string 5",
  "start_date": "2024-11-21T17:41:22.8301853+00:00",
  "end_date": "2024-11-21T17:41:22.8301853+00:00",
  "signature_required": true,
  "created_by": "sample string 9",
  "created_on": "2024-11-21T17:41:22.8301853+00:00",
  "modified_by": "sample string 11",
  "modified_on": "2024-11-21T17:41:22.8301853+00:00",
  "rowversion": 12,
  "results": "sample string 13"
}

application/xml, text/xml

Sample:
<Election xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UniteHere.ElectionApp.Entities">
  <CreatedBy>sample string 9</CreatedBy>
  <CreatedOn>2024-11-21T17:41:22.8301853+00:00</CreatedOn>
  <Description>sample string 3</Description>
  <ElectionType>sample string 5</ElectionType>
  <EndDate>2024-11-21T17:41:22.8301853+00:00</EndDate>
  <Id>sample string 1</Id>
  <IsSignRequired>true</IsSignRequired>
  <LocalNumber>sample string 4</LocalNumber>
  <ModifiedBy>sample string 11</ModifiedBy>
  <ModifiedOn>2024-11-21T17:41:22.8301853+00:00</ModifiedOn>
  <Name>sample string 2</Name>
  <Results>sample string 13</Results>
  <RowVersion>12</RowVersion>
  <StartDate>2024-11-21T17:41:22.8301853+00:00</StartDate>
</Election>

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.