2024-10-09 04:05:15 -04:00
|
|
|
{
|
|
|
|
"operationId": "updateDeadHost",
|
|
|
|
"summary": "Update a 404 Host",
|
|
|
|
"tags": ["404 Hosts"],
|
|
|
|
"security": [
|
|
|
|
{
|
|
|
|
"BearerAuth": ["dead_hosts"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"in": "path",
|
|
|
|
"name": "hostID",
|
|
|
|
"schema": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1
|
|
|
|
},
|
|
|
|
"required": true,
|
|
|
|
"example": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"requestBody": {
|
|
|
|
"description": "404 Host Payload",
|
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"minProperties": 1,
|
|
|
|
"properties": {
|
|
|
|
"domain_names": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json#/properties/domain_names"
|
|
|
|
},
|
|
|
|
"certificate_id": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json#/properties/certificate_id"
|
|
|
|
},
|
|
|
|
"ssl_forced": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json#/properties/ssl_forced"
|
|
|
|
},
|
|
|
|
"hsts_enabled": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json#/properties/hsts_enabled"
|
|
|
|
},
|
|
|
|
"hsts_subdomains": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json#/properties/hsts_subdomains"
|
|
|
|
},
|
|
|
|
"http2_support": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json#/properties/http2_support"
|
|
|
|
},
|
|
|
|
"advanced_config": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json#/properties/advanced_config"
|
|
|
|
},
|
|
|
|
"meta": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json#/properties/meta"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "200 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": {
|
|
|
|
"id": 1,
|
|
|
|
"created_on": "2024-10-09T01:38:52.000Z",
|
|
|
|
"modified_on": "2024-10-09T01:46:06.000Z",
|
|
|
|
"owner_user_id": 1,
|
|
|
|
"domain_names": ["test.example.com"],
|
|
|
|
"certificate_id": 0,
|
2024-10-10 01:53:11 -04:00
|
|
|
"ssl_forced": false,
|
2024-10-09 04:05:15 -04:00
|
|
|
"advanced_config": "",
|
|
|
|
"meta": {
|
|
|
|
"nginx_online": true,
|
|
|
|
"nginx_err": null
|
|
|
|
},
|
2024-10-10 01:53:11 -04:00
|
|
|
"http2_support": false,
|
|
|
|
"enabled": true,
|
|
|
|
"hsts_enabled": false,
|
|
|
|
"hsts_subdomains": false,
|
2024-10-09 04:05:15 -04:00
|
|
|
"owner": {
|
|
|
|
"id": 1,
|
|
|
|
"created_on": "2024-10-09T00:59:56.000Z",
|
|
|
|
"modified_on": "2024-10-09T00:59:56.000Z",
|
2024-10-10 01:53:11 -04:00
|
|
|
"is_deleted": false,
|
|
|
|
"is_disabled": false,
|
2024-10-09 04:05:15 -04:00
|
|
|
"email": "admin@example.com",
|
|
|
|
"name": "Administrator",
|
|
|
|
"nickname": "Admin",
|
|
|
|
"avatar": "",
|
|
|
|
"roles": ["admin"]
|
|
|
|
},
|
|
|
|
"certificate": null,
|
|
|
|
"use_default_location": true,
|
|
|
|
"ipv6": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"schema": {
|
|
|
|
"$ref": "../../../../components/dead-host-object.json"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|