PUT api/Poll/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
Poll| Name | Description | Type | Additional information |
|---|---|---|---|
| PollID | integer |
None. |
|
| Question | string |
None. |
|
| Polldate | date |
None. |
|
| Active | boolean |
None. |
|
| options | string |
None. |
|
| PollOptions | Collection of PollOption |
None. |
Request Formats
application/json, text/json
Sample:
{
"PollID": 1,
"Question": "sample string 2",
"Polldate": "2026-02-04T07:46:47.8562656+05:30",
"Active": true,
"options": "sample string 5",
"PollOptions": [
{
"PollOptionID": 1,
"PollID": 2,
"Answers": "sample string 3",
"Vote": 4
},
{
"PollOptionID": 1,
"PollID": 2,
"Answers": "sample string 3",
"Vote": 4
}
]
}
text/html
Sample:
{"PollID":1,"Question":"sample string 2","Polldate":"2026-02-04T07:46:47.8562656+05:30","Active":true,"options":"sample string 5","PollOptions":[{"PollOptionID":1,"PollID":2,"Answers":"sample string 3","Vote":4},{"PollOptionID":1,"PollID":2,"Answers":"sample string 3","Vote":4}]}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.