{
	"operationId": "createRedirectionHost",
	"summary": "Create a Redirection Host",
	"tags": ["Redirection Hosts"],
	"security": [
		{
			"BearerAuth": ["redirection_hosts"]
		}
	],
	"requestBody": {
		"description": "Redirection Host Payload",
		"required": true,
		"content": {
			"application/json": {
				"schema": {
					"type": "object",
					"additionalProperties": false,
					"required": ["domain_names", "forward_scheme", "forward_http_code", "forward_domain_name"],
					"properties": {
						"domain_names": {
							"$ref": "../../../components/redirection-host-object.json#/properties/domain_names"
						},
						"forward_http_code": {
							"$ref": "../../../components/redirection-host-object.json#/properties/forward_http_code"
						},
						"forward_scheme": {
							"$ref": "../../../components/redirection-host-object.json#/properties/forward_scheme"
						},
						"forward_domain_name": {
							"$ref": "../../../components/redirection-host-object.json#/properties/forward_domain_name"
						},
						"preserve_path": {
							"$ref": "../../../components/redirection-host-object.json#/properties/preserve_path"
						},
						"certificate_id": {
							"$ref": "../../../components/redirection-host-object.json#/properties/certificate_id"
						},
						"ssl_forced": {
							"$ref": "../../../components/redirection-host-object.json#/properties/ssl_forced"
						},
						"hsts_enabled": {
							"$ref": "../../../components/redirection-host-object.json#/properties/hsts_enabled"
						},
						"hsts_subdomains": {
							"$ref": "../../../components/redirection-host-object.json#/properties/hsts_subdomains"
						},
						"http2_support": {
							"$ref": "../../../components/redirection-host-object.json#/properties/http2_support"
						},
						"block_exploits": {
							"$ref": "../../../components/redirection-host-object.json#/properties/block_exploits"
						},
						"advanced_config": {
							"$ref": "../../../components/redirection-host-object.json#/properties/advanced_config"
						},
						"meta": {
							"$ref": "../../../components/redirection-host-object.json#/properties/meta"
						}
					}
				}
			}
		}
	},
	"responses": {
		"201": {
			"description": "201 response",
			"content": {
				"application/json": {
					"examples": {
						"default": {
							"value": {
								"id": 1,
								"created_on": "2024-10-09T01:13:12.000Z",
								"modified_on": "2024-10-09T01:13:12.000Z",
								"owner_user_id": 1,
								"domain_names": ["test.example.com"],
								"forward_domain_name": "something-else.com",
								"preserve_path": false,
								"certificate_id": 0,
								"ssl_forced": false,
								"block_exploits": false,
								"advanced_config": "",
								"meta": {},
								"http2_support": false,
								"enabled": true,
								"hsts_enabled": false,
								"hsts_subdomains": false,
								"forward_scheme": "http",
								"forward_http_code": 301,
								"certificate": null,
								"owner": {
									"id": 1,
									"created_on": "2024-10-09T00:59:56.000Z",
									"modified_on": "2024-10-09T00:59:56.000Z",
									"is_deleted": false,
									"is_disabled": false,
									"email": "admin@example.com",
									"name": "Administrator",
									"nickname": "Admin",
									"avatar": "",
									"roles": ["admin"]
								}
							}
						}
					},
					"schema": {
						"$ref": "../../../components/redirection-host-object.json"
					}
				}
			}
		}
	}
}
