POST api/PollResults

Request Information

URI Parameters

None.

Body Parameters

PollResult
NameDescriptionTypeAdditional information
Vote

string

None.

PollOptionId

integer

None.

PollOption

PollOption

None.

UserId

string

None.

User

User

None.

Id

integer

None.

IsActive

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedById

string

None.

ModifiedById

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Vote": "sample string 1",
  "PollOptionId": 2,
  "PollOption": {
    "Label": "sample string 1",
    "HasRightOne": true,
    "PollId": 3,
    "Poll": {
      "Title": "sample string 1",
      "PollOptions": [],
      "Id": 2,
      "IsActive": true,
      "CreatedDate": "2024-10-03T21:04:43.7759534+05:30",
      "ModifiedDate": "2024-10-03T21:04:43.7759534+05:30",
      "CreatedById": "sample string 4",
      "ModifiedById": "sample string 5"
    },
    "PollResults": [],
    "Id": 4,
    "IsActive": true,
    "CreatedDate": "2024-10-03T21:04:43.7759534+05:30",
    "ModifiedDate": "2024-10-03T21:04:43.7759534+05:30",
    "CreatedById": "sample string 6",
    "ModifiedById": "sample string 7"
  },
  "UserId": "sample string 3",
  "User": {
    "FirstName": "sample string 1",
    "LastName": "sample string 2",
    "PhoneNo": "sample string 3",
    "MobileNo": "sample string 4",
    "State": "sample string 5",
    "PFNo": "sample string 6",
    "Address": "sample string 7",
    "ProfileImage": "sample string 8",
    "BirthDate": "2024-10-03T21:04:43.7759534+05:30",
    "CreatedDate": "2024-10-03T21:04:43.7759534+05:30",
    "ModifiedDate": "2024-10-03T21:04:43.7759534+05:30",
    "IsDeleted": true,
    "IsActive": true,
    "IsApproved": true,
    "IsAdmin": true,
    "CircleId": 1,
    "Circle": {
      "Title": "sample string 1",
      "Email": "sample string 2",
      "Description": "sample string 3",
      "IsHeadOffice": true,
      "Users": [],
      "Id": 5,
      "IsActive": true,
      "CreatedDate": "2024-10-03T21:04:43.7759534+05:30",
      "ModifiedDate": "2024-10-03T21:04:43.7759534+05:30",
      "CreatedById": "sample string 7",
      "ModifiedById": "sample string 8"
    },
    "Email": "sample string 15",
    "EmailConfirmed": true,
    "PasswordHash": "sample string 17",
    "SecurityStamp": "sample string 18",
    "PhoneNumber": "sample string 19",
    "PhoneNumberConfirmed": true,
    "TwoFactorEnabled": true,
    "LockoutEndDateUtc": "2024-10-03T21:04:43.7759534+05:30",
    "LockoutEnabled": true,
    "AccessFailedCount": 23,
    "Roles": [],
    "Claims": [],
    "Logins": [],
    "Id": "sample string 24",
    "UserName": "sample string 25"
  },
  "Id": 4,
  "IsActive": true,
  "CreatedDate": "2024-10-03T21:04:43.7759534+05:30",
  "ModifiedDate": "2024-10-03T21:04:43.7759534+05:30",
  "CreatedById": "sample string 6",
  "ModifiedById": "sample string 7"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PollResult'.

Response Information

Resource Description

PollResult
NameDescriptionTypeAdditional information
Vote

string

None.

PollOptionId

integer

None.

PollOption

PollOption

None.

UserId

string

None.

User

User

None.

Id

integer

None.

IsActive

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedById

string

None.

ModifiedById

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Vote": "sample string 1",
  "PollOptionId": 2,
  "PollOption": {
    "Label": "sample string 1",
    "HasRightOne": true,
    "PollId": 3,
    "Poll": {
      "Title": "sample string 1",
      "PollOptions": [],
      "Id": 2,
      "IsActive": true,
      "CreatedDate": "2024-10-03T21:04:43.7917864+05:30",
      "ModifiedDate": "2024-10-03T21:04:43.7917864+05:30",
      "CreatedById": "sample string 4",
      "ModifiedById": "sample string 5"
    },
    "PollResults": [],
    "Id": 4,
    "IsActive": true,
    "CreatedDate": "2024-10-03T21:04:43.7917864+05:30",
    "ModifiedDate": "2024-10-03T21:04:43.7917864+05:30",
    "CreatedById": "sample string 6",
    "ModifiedById": "sample string 7"
  },
  "UserId": "sample string 3",
  "User": {
    "FirstName": "sample string 1",
    "LastName": "sample string 2",
    "PhoneNo": "sample string 3",
    "MobileNo": "sample string 4",
    "State": "sample string 5",
    "PFNo": "sample string 6",
    "Address": "sample string 7",
    "ProfileImage": "sample string 8",
    "BirthDate": "2024-10-03T21:04:43.7917864+05:30",
    "CreatedDate": "2024-10-03T21:04:43.7917864+05:30",
    "ModifiedDate": "2024-10-03T21:04:43.7917864+05:30",
    "IsDeleted": true,
    "IsActive": true,
    "IsApproved": true,
    "IsAdmin": true,
    "CircleId": 1,
    "Circle": {
      "Title": "sample string 1",
      "Email": "sample string 2",
      "Description": "sample string 3",
      "IsHeadOffice": true,
      "Users": [],
      "Id": 5,
      "IsActive": true,
      "CreatedDate": "2024-10-03T21:04:43.7917864+05:30",
      "ModifiedDate": "2024-10-03T21:04:43.7917864+05:30",
      "CreatedById": "sample string 7",
      "ModifiedById": "sample string 8"
    },
    "Email": "sample string 15",
    "EmailConfirmed": true,
    "PasswordHash": "sample string 17",
    "SecurityStamp": "sample string 18",
    "PhoneNumber": "sample string 19",
    "PhoneNumberConfirmed": true,
    "TwoFactorEnabled": true,
    "LockoutEndDateUtc": "2024-10-03T21:04:43.7917864+05:30",
    "LockoutEnabled": true,
    "AccessFailedCount": 23,
    "Roles": [],
    "Claims": [],
    "Logins": [],
    "Id": "sample string 24",
    "UserName": "sample string 25"
  },
  "Id": 4,
  "IsActive": true,
  "CreatedDate": "2024-10-03T21:04:43.7917864+05:30",
  "ModifiedDate": "2024-10-03T21:04:43.7917864+05:30",
  "CreatedById": "sample string 6",
  "ModifiedById": "sample string 7"
}