curl --request POST \
--url http://localhost:8080/servers \
--header 'Content-Type: application/json' \
--data '
{
"squadUuid": "<string>",
"displayName": "<string>",
"originalName": "<string>",
"countryCode": "<string>",
"priceKopeks": 0,
"description": "<string>",
"maxUsers": 123,
"isAvailable": true,
"isTrialEligible": false,
"sortOrder": 0,
"promoGroupIds": [
123
]
}
'{
"id": 123,
"squadUuid": "<string>",
"displayName": "<string>",
"isAvailable": true,
"priceKopeks": 123,
"priceRubles": 123,
"originalName": "<string>",
"countryCode": "<string>",
"isTrialEligible": false,
"description": "<string>",
"sortOrder": 0,
"maxUsers": 123,
"currentUsers": 0,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"promoGroups": [
{
"id": 123,
"name": "<string>",
"server_discount_percent": 123,
"traffic_discount_percent": 123,
"device_discount_percent": 123,
"apply_discounts_to_addons": true
}
]
}curl --request POST \
--url http://localhost:8080/servers \
--header 'Content-Type: application/json' \
--data '
{
"squadUuid": "<string>",
"displayName": "<string>",
"originalName": "<string>",
"countryCode": "<string>",
"priceKopeks": 0,
"description": "<string>",
"maxUsers": 123,
"isAvailable": true,
"isTrialEligible": false,
"sortOrder": 0,
"promoGroupIds": [
123
]
}
'{
"id": 123,
"squadUuid": "<string>",
"displayName": "<string>",
"isAvailable": true,
"priceKopeks": 123,
"priceRubles": 123,
"originalName": "<string>",
"countryCode": "<string>",
"isTrialEligible": false,
"description": "<string>",
"sortOrder": 0,
"maxUsers": 123,
"currentUsers": 0,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"promoGroups": [
{
"id": 123,
"name": "<string>",
"server_discount_percent": 123,
"traffic_discount_percent": 123,
"device_discount_percent": 123,
"apply_discounts_to_addons": true
}
]
}Запрос на создание сервера.
Список идентификаторов промогрупп, доступных на сервере.
Successful Response
Полная информация о сервере.
Show child attributes