POST api/elections/{election_id}/members
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
election_id | string |
Required |
Body Parameters
MemberName | Description | Type | Additional information |
---|---|---|---|
uuid | string |
None. |
|
election_id | string |
None. |
|
union_id | string |
None. |
|
name | string |
None. |
|
last_name | string |
None. |
|
middle_name | string |
None. |
|
first_name | string |
None. |
|
member_status | string |
None. |
|
last_4_ssn | string |
None. |
|
birth_date | date |
None. |
|
street_address | string |
None. |
|
supplementary_address | string |
None. |
|
city | string |
None. |
|
state | string |
None. |
|
postal_code | string |
None. |
|
country | string |
None. |
|
has_invalid_address | boolean |
None. |
|
phone | string |
None. |
|
voting_location_id | string |
None. |
|
ballot_color | string |
None. |
|
eligible_to_vote | boolean |
None. |
|
union_employer_id | string |
None. |
|
employer_name | string |
None. |
|
Department | string |
None. |
|
Classification | string |
None. |
|
Craft | string |
None. |
|
EncryptedSSN | string |
None. |
|
EmployerID | string |
None. |
|
newly_added_flag | boolean |
None. |
|
created_by | string |
None. |
|
created_on | date |
None. |
|
modified_by | string |
None. |
|
modified_on | date |
None. |
|
rowversion | integer |
None. |
|
DuesHistory | Collection of DuesHistory |
None. |
|
election_name | string |
None. |
|
location_name | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "uuid": "sample string 1", "election_id": "sample string 2", "union_id": "sample string 3", "name": "sample string 4", "last_name": "sample string 5", "middle_name": "sample string 6", "first_name": "sample string 7", "member_status": "sample string 8", "last_4_ssn": "sample string 9", "birth_date": "2024-11-21T17:48:42.7984469+00:00", "street_address": "sample string 10", "supplementary_address": "sample string 11", "city": "sample string 12", "state": "sample string 13", "postal_code": "sample string 14", "country": "sample string 15", "has_invalid_address": true, "phone": "sample string 17", "voting_location_id": "sample string 18", "ballot_color": "sample string 19", "eligible_to_vote": true, "union_employer_id": "sample string 21", "employer_name": "sample string 22", "Department": "sample string 23", "Classification": "sample string 24", "Craft": "sample string 25", "EncryptedSSN": "sample string 26", "EmployerID": "sample string 27", "newly_added_flag": true, "created_by": "sample string 29", "created_on": "2024-11-21T17:48:42.7984469+00:00", "modified_by": "sample string 31", "modified_on": "2024-11-21T17:48:42.7984469+00:00", "rowversion": 32, "DuesHistory": [ { "uuid": "sample string 1", "member_id": "sample string 2", "history_date": "2024-11-21T17:48:42.7984469+00:00", "amount_owed": 4.0, "amount_paid": 5.0, "balance": 6.0 }, { "uuid": "sample string 1", "member_id": "sample string 2", "history_date": "2024-11-21T17:48:42.7984469+00:00", "amount_owed": 4.0, "amount_paid": 5.0, "balance": 6.0 } ], "election_name": "sample string 2", "location_name": "sample string 3" }
application/xml, text/xml
Sample:
<Member xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UniteHere.ElectionApp.Entities"> <BallotColor>sample string 19</BallotColor> <BirthDate>2024-11-21T17:48:42.7984469+00:00</BirthDate> <City>sample string 12</City> <Classification>sample string 24</Classification> <Country>sample string 15</Country> <Craft>sample string 25</Craft> <CreatedBy>sample string 29</CreatedBy> <CreatedOn>2024-11-21T17:48:42.7984469+00:00</CreatedOn> <Department>sample string 23</Department> <DuesHistory> <DuesHistory> <AmountOwed>4</AmountOwed> <AmountPaid>5</AmountPaid> <Balance>6</Balance> <HistoryDate>2024-11-21T17:48:42.7984469+00:00</HistoryDate> <Id>sample string 1</Id> <MemberId>sample string 2</MemberId> </DuesHistory> <DuesHistory> <AmountOwed>4</AmountOwed> <AmountPaid>5</AmountPaid> <Balance>6</Balance> <HistoryDate>2024-11-21T17:48:42.7984469+00:00</HistoryDate> <Id>sample string 1</Id> <MemberId>sample string 2</MemberId> </DuesHistory> </DuesHistory> <Election> <CreatedBy>sample string 9</CreatedBy> <CreatedOn>2024-11-21T17:48:42.7984469+00:00</CreatedOn> <Description>sample string 3</Description> <ElectionType>sample string 5</ElectionType> <EndDate>2024-11-21T17:48:42.7984469+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:48:42.7984469+00:00</ModifiedOn> <Name>sample string 2</Name> <Results>sample string 13</Results> <RowVersion>12</RowVersion> <StartDate>2024-11-21T17:48:42.7984469+00:00</StartDate> </Election> <ElectionId>sample string 2</ElectionId> <EmployerID>sample string 27</EmployerID> <EmployerName>sample string 22</EmployerName> <EncryptedSSN>sample string 26</EncryptedSSN> <FirstName>sample string 7</FirstName> <HasInvalidAddress>true</HasInvalidAddress> <Id>sample string 1</Id> <IsEligibleVoter>true</IsEligibleVoter> <IsNewlyAdded>true</IsNewlyAdded> <LastFourSsn>sample string 9</LastFourSsn> <LastName>sample string 5</LastName> <Location> <City>sample string 8</City> <Country>sample string 11</Country> <CreatedBy>sample string 15</CreatedBy> <CreatedOn>2024-11-21T17:48:42.7984469+00:00</CreatedOn> <Description>sample string 4</Description> <Election> <CreatedBy>sample string 9</CreatedBy> <CreatedOn>2024-11-21T17:48:42.7984469+00:00</CreatedOn> <Description>sample string 3</Description> <ElectionType>sample string 5</ElectionType> <EndDate>2024-11-21T17:48:42.7984469+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:48:42.7984469+00:00</ModifiedOn> <Name>sample string 2</Name> <Results>sample string 13</Results> <RowVersion>12</RowVersion> <StartDate>2024-11-21T17:48:42.7984469+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-21T17:48:42.7984469+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> <LocationId>sample string 18</LocationId> <MemberName>sample string 4</MemberName> <MemberStatus>sample string 8</MemberStatus> <MiddleName>sample string 6</MiddleName> <ModifiedBy>sample string 31</ModifiedBy> <ModifiedOn>2024-11-21T17:48:42.7984469+00:00</ModifiedOn> <Phone>sample string 17</Phone> <PostalCode>sample string 14</PostalCode> <RowVersion>32</RowVersion> <State>sample string 13</State> <StreetAddress>sample string 10</StreetAddress> <SupplementaryAddress>sample string 11</SupplementaryAddress> <UnionEmployerId>sample string 21</UnionEmployerId> <UnionId>sample string 3</UnionId> </Member>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.