PUT api/elections/{election_id}/assignments/{uuid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
election_id

string

Required

uuid

string

Required

Body Parameters

UserLocation
NameDescriptionTypeAdditional information
uuid

string

None.

user_id

string

None.

election_id

string

None.

location_id

string

None.

local_number

string

None.

username

string

None.

user_full_name

string

None.

election_name

string

None.

start_date

date

None.

end_date

date

None.

Location

Location

None.

Request Formats

application/json, text/json

Sample:
{
  "uuid": "sample string 1",
  "user_id": "sample string 2",
  "election_id": "sample string 3",
  "location_id": "sample string 4",
  "local_number": "sample string 4",
  "username": "sample string 15",
  "user_full_name": "sample string 2 sample string 1",
  "election_name": "sample string 2",
  "start_date": "2024-11-21T17:22:32.176666+00:00",
  "end_date": "2024-11-21T17:22:32.176666+00:00",
  "Location": {
    "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-21T17:22:32.176666+00:00",
    "modified_by": "sample string 17",
    "modified_on": "2024-11-21T17:22:32.176666+00:00",
    "rowversion": 18
  }
}

application/xml, text/xml

Sample:
<UserLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UniteHere.ElectionApp.Entities">
  <Election>
    <CreatedBy>sample string 9</CreatedBy>
    <CreatedOn>2024-11-21T17:22:32.176666+00:00</CreatedOn>
    <Description>sample string 3</Description>
    <ElectionType>sample string 5</ElectionType>
    <EndDate>2024-11-21T17:22:32.176666+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:22:32.176666+00:00</ModifiedOn>
    <Name>sample string 2</Name>
    <Results>sample string 13</Results>
    <RowVersion>12</RowVersion>
    <StartDate>2024-11-21T17:22:32.176666+00:00</StartDate>
  </Election>
  <ElectionId>sample string 3</ElectionId>
  <Id>sample string 1</Id>
  <Location>
    <City>sample string 8</City>
    <Country>sample string 11</Country>
    <CreatedBy>sample string 15</CreatedBy>
    <CreatedOn>2024-11-21T17:22:32.176666+00:00</CreatedOn>
    <Description>sample string 4</Description>
    <Election>
      <CreatedBy>sample string 9</CreatedBy>
      <CreatedOn>2024-11-21T17:22:32.176666+00:00</CreatedOn>
      <Description>sample string 3</Description>
      <ElectionType>sample string 5</ElectionType>
      <EndDate>2024-11-21T17:22:32.176666+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:22:32.176666+00:00</ModifiedOn>
      <Name>sample string 2</Name>
      <Results>sample string 13</Results>
      <RowVersion>12</RowVersion>
      <StartDate>2024-11-21T17:22:32.176666+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:22:32.176666+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 4</LocationId>
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/UniteHere.ElectionApp.Models">
    <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">13</AccessFailedCount>
    <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 5</Email>
    <EmailConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</EmailConfirmed>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 14</Id>
    <LockoutEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</LockoutEnabled>
    <LockoutEndDateUtc xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2024-11-21T17:22:32.1610608+00:00</LockoutEndDateUtc>
    <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 7</PasswordHash>
    <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 9</PhoneNumber>
    <PhoneNumberConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</PhoneNumberConfirmed>
    <SecurityStamp xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</SecurityStamp>
    <TwoFactorEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</TwoFactorEnabled>
    <UserName xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 15</UserName>
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:LastName>sample string 2</d2p1:LastName>
    <d2p1:LocalNumber>sample string 3</d2p1:LocalNumber>
    <d2p1:Role>sample string 4</d2p1:Role>
  </User>
  <UserId>sample string 2</UserId>
</UserLocation>

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.