curl --request PATCH \
--url http://localhost:8080/servers/{server_id} \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"originalName": "<string>",
"countryCode": "<string>",
"priceKopeks": 123,
"description": "<string>",
"maxUsers": 123,
"isAvailable": true,
"isTrialEligible": true,
"sortOrder": 123,
"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 PATCH \
--url http://localhost:8080/servers/{server_id} \
--header 'Content-Type: application/json' \
--data '
{
"displayName": "<string>",
"originalName": "<string>",
"countryCode": "<string>",
"priceKopeks": 123,
"description": "<string>",
"maxUsers": 123,
"isAvailable": true,
"isTrialEligible": true,
"sortOrder": 123,
"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