POST api/votacion/CreateVotacion?personaID={personaID}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| personaID | integer |
Required |
Body Parameters
Votacion| Name | Description | Type | Additional information |
|---|---|---|---|
| VotacionID | integer |
Required |
|
| CerradaID | integer |
Required |
|
| Titulo | string |
Required String length: inclusive between 0 and 200 |
|
| NombreCorto | string |
Required String length: inclusive between 0 and 100 |
|
| Descripcion | string |
Required String length: inclusive between 0 and 2000 |
|
| StatusNombre | string |
Required String length: inclusive between 0 and 50 |
|
| EsAnonima | boolean |
None. |
|
| PermiteMultiple | boolean |
None. |
|
| RequierePruebaResidencia | boolean |
None. |
|
| FechaInicio | date |
None. |
|
| FechaFin | date |
None. |
|
| TotalVotantes | integer |
None. |
|
| FechaCreacion | date |
Required |
|
| FechaModificacion | date |
None. |
|
| FechaPublicacion | date |
None. |
|
| UsrCreacion | string |
Required String length: inclusive between 0 and 100 |
|
| UsrModificacion | string |
String length: inclusive between 0 and 100 |
|
| Opciones | Collection of VotacionOpcion |
None. |
|
| Votos | Collection of Voto |
None. |
Request Formats
application/json, text/json
Sample:
{
"votacionID": 1,
"cerradaID": 2,
"titulo": "sample string 3",
"nombreCorto": "sample string 4",
"descripcion": "sample string 5",
"statusNombre": "sample string 6",
"esAnonima": true,
"permiteMultiple": true,
"requierePruebaResidencia": true,
"fechaInicio": "2026-01-14T21:15:38.899137-07:00",
"fechaFin": "2026-01-14T21:15:38.899137-07:00",
"totalVotantes": 12,
"fechaCreacion": "2026-01-14T21:15:38.899137-07:00",
"fechaModificacion": "2026-01-14T21:15:38.899137-07:00",
"fechaPublicacion": "2026-01-14T21:15:38.899137-07:00",
"usrCreacion": "sample string 16",
"usrModificacion": "sample string 17",
"opciones": [
{
"opcionID": 1,
"votacionID": 2,
"texto": "sample string 3",
"orden": 4,
"totalVotos": 5,
"fechaCreacion": "2026-01-14T21:15:38.899137-07:00",
"fechaModificacion": "2026-01-14T21:15:38.899137-07:00",
"votos": [
{
"votoID": 1,
"votacionID": 2,
"opcionID": 3,
"casaID": 4,
"usuarioID": "sample string 5",
"deviceID": "sample string 6",
"fechaVoto": "2026-01-14T21:15:38.899137-07:00",
"direccionIP": "sample string 8"
},
{
"votoID": 1,
"votacionID": 2,
"opcionID": 3,
"casaID": 4,
"usuarioID": "sample string 5",
"deviceID": "sample string 6",
"fechaVoto": "2026-01-14T21:15:38.899137-07:00",
"direccionIP": "sample string 8"
}
]
},
{
"opcionID": 1,
"votacionID": 2,
"texto": "sample string 3",
"orden": 4,
"totalVotos": 5,
"fechaCreacion": "2026-01-14T21:15:38.899137-07:00",
"fechaModificacion": "2026-01-14T21:15:38.899137-07:00",
"votos": [
{
"votoID": 1,
"votacionID": 2,
"opcionID": 3,
"casaID": 4,
"usuarioID": "sample string 5",
"deviceID": "sample string 6",
"fechaVoto": "2026-01-14T21:15:38.899137-07:00",
"direccionIP": "sample string 8"
},
{
"votoID": 1,
"votacionID": 2,
"opcionID": 3,
"casaID": 4,
"usuarioID": "sample string 5",
"deviceID": "sample string 6",
"fechaVoto": "2026-01-14T21:15:38.899137-07:00",
"direccionIP": "sample string 8"
}
]
}
],
"votos": [
{
"votoID": 1,
"votacionID": 2,
"opcionID": 3,
"casaID": 4,
"usuarioID": "sample string 5",
"deviceID": "sample string 6",
"fechaVoto": "2026-01-14T21:15:38.899137-07:00",
"direccionIP": "sample string 8"
},
{
"votoID": 1,
"votacionID": 2,
"opcionID": 3,
"casaID": 4,
"usuarioID": "sample string 5",
"deviceID": "sample string 6",
"fechaVoto": "2026-01-14T21:15:38.899137-07:00",
"direccionIP": "sample string 8"
}
]
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.