2024-10-09 04:05:15 -04:00
|
|
|
{
|
|
|
|
"operationId": "enableProxyHost",
|
|
|
|
"summary": "Enable a Proxy Host",
|
|
|
|
"tags": ["Proxy Hosts"],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"BearerAuth": ["proxy_hosts"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"in": "path",
|
|
|
|
"name": "hostID",
|
|
|
|
"schema": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1
|
|
|
|
},
|
|
|
|
"required": true,
|
|
|
|
"example": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "200 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"schema": {
|
|
|
|
"type": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"400": {
|
|
|
|
"description": "400 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": {
|
|
|
|
"error": {
|
|
|
|
"code": 400,
|
|
|
|
"message": "Host is already enabled"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"schema": {
|
2024-10-10 21:21:22 -04:00
|
|
|
"$ref": "../../../../../components/error.json"
|
2024-10-09 04:05:15 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|