POST api/elections/{election_id}/locations

Request Information

URI Parameters

NameDescriptionTypeAdditional information
election_id

string

Required

Body Parameters

Location
NameDescriptionTypeAdditional information
uuid

string

None.

election_id

string

None.

name

string

None.

description

string

None.

local_number

string

None.

street_address

string

None.

supplementary_address

string

None.

city

string

None.

state

string

None.

postal_code

string

None.

country

string

None.

connected

boolean

None.

union_house_id

string

None.

house_name

string

None.

created_by

string

None.

created_on

date

None.

modified_by

string

None.

modified_on

date

None.

rowversion

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "uuid": "sample string 1",
  "election_id": "sample string 2",
  "name": "sample string 3",
  "description": "sample string 4",
  "local_number": "sample string 5",
  "street_address": "sample string 6",
  "supplementary_address": "sample string 7",
  "city": "sample string 8",
  "state": "sample string 9",
  "postal_code": "sample string 10",
  "country": "sample string 11",
  "connected": true,
  "union_house_id": "sample string 13",
  "house_name": "sample string 14",
  "created_by": "sample string 15",
  "created_on": "2024-11-21T18:10:20.3024607+00:00",
  "modified_by": "sample string 17",
  "modified_on": "2024-11-21T18:10:20.3024607+00:00",
  "rowversion": 18
}

application/xml, text/xml

Sample:
<Location xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UniteHere.ElectionApp.Entities">
  <City>sample string 8</City>
  <Country>sample string 11</Country>
  <CreatedBy>sample string 15</CreatedBy>
  <CreatedOn>2024-11-21T18:10:20.3024607+00:00</CreatedOn>
  <Description>sample string 4</Description>
  <Election>
    <CreatedBy>sample string 9</CreatedBy>
    <CreatedOn>2024-11-21T18:10:20.3024607+00:00</CreatedOn>
    <Description>sample string 3</Description>
    <ElectionType>sample string 5</ElectionType>
    <EndDate>2024-11-21T18:10:20.3024607+00:00</EndDate>
    <Id>sample string 1</Id>
    <IsSignRequired>true</IsSignRequired>
    <LocalNumber>sample string 4</LocalNumber>
    <ModifiedBy>sample string 11</ModifiedBy>
    <ModifiedOn>2024-11-21T18:10:20.3024607+00:00</ModifiedOn>
    <Name>sample string 2</Name>
    <Results>sample string 13</Results>
    <RowVersion>12</RowVersion>
    <StartDate>2024-11-21T18:10:20.3024607+00:00</StartDate>
  </Election>
  <ElectionId>sample string 2</ElectionId>
  <HouseName>sample string 14</HouseName>
  <Id>sample string 1</Id>
  <IsConnected>true</IsConnected>
  <LocalNumber>sample string 5</LocalNumber>
  <ModifiedBy>sample string 17</ModifiedBy>
  <ModifiedOn>2024-11-21T18:10:20.3024607+00:00</ModifiedOn>
  <Name>sample string 3</Name>
  <PostalCode>sample string 10</PostalCode>
  <RowVersion>18</RowVersion>
  <State>sample string 9</State>
  <StreetAddress>sample string 6</StreetAddress>
  <SupplementaryAddress>sample string 7</SupplementaryAddress>
  <UnionHouseId>sample string 13</UnionHouseId>
</Location>

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.