POST api/elections/{election_id}/assignments
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
election_id | string |
Required |
Body Parameters
UserAssignmentViewModelName | Description | Type | Additional information |
---|---|---|---|
user_id | string |
None. |
|
election_id | string |
None. |
|
location_id | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "user_id": "sample string 1", "election_id": "sample string 2", "location_id": "sample string 3" }
application/xml, text/xml
Sample:
<UserAssignmentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UniteHere.ElectionApp.ViewModels"> <ElectionId>sample string 2</ElectionId> <LocationId>sample string 3</LocationId> <UserId>sample string 1</UserId> </UserAssignmentViewModel>
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.