curl --request POST \
--url http://localhost:8080/polls \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"questions": [
{
"text": "<string>",
"options": [
{
"text": "<string>"
}
]
}
],
"description": "<string>",
"reward_enabled": false,
"reward_amount_kopeks": 0
}
'{
"id": 123,
"title": "<string>",
"description": "<string>",
"reward_enabled": true,
"reward_amount_kopeks": 123,
"reward_amount_rubles": 123,
"questions": [
{
"id": 123,
"text": "<string>",
"order": 123,
"options": [
{
"id": 123,
"text": "<string>",
"order": 123
}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}curl --request POST \
--url http://localhost:8080/polls \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"questions": [
{
"text": "<string>",
"options": [
{
"text": "<string>"
}
]
}
],
"description": "<string>",
"reward_enabled": false,
"reward_amount_kopeks": 0
}
'{
"id": 123,
"title": "<string>",
"description": "<string>",
"reward_enabled": true,
"reward_amount_kopeks": 123,
"reward_amount_rubles": 123,
"questions": [
{
"id": 123,
"text": "<string>",
"order": 123,
"options": [
{
"id": 123,
"text": "<string>",
"order": 123
}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}1 - 2551Show child attributes
40000 <= x <= 1000000000Successful Response
Show child attributes