{
  "openapi": "3.0.1",
  "info": {
    "title": "Zoner REST API Documentation",
    "description": "Documentation for the ZONER REST API",
    "termsOfService": "https://www.czechia.com/podminky-rest-api",
    "version": "v1"
  },
  "paths": {
    "/api/Customer/Credit": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Returns credit info data.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get credit info",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreditDTO"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditDTO"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditDTO"
                }
              }
            }
          },
          "400": {
            "description": "Error text"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Customer/AllowedIP": {
      "get": {
        "tags": [
          "Customer"
        ],
        "summary": "Returns IP addresses allowed to connect to RESTAPI servers.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of allowed IP addresses",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Error text"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "put": {
        "tags": [
          "Customer"
        ],
        "summary": "Updates IP addresses allowed to connect to RESTAPI servers.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Allowed IP addresses",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Updates allowed IP"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/DNS/{domainName}": {
      "get": {
        "tags": [
          "DNS"
        ],
        "summary": "Returns a list of DNS records for the domain.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Zone",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DnsZONERecord"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsZONERecord"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DnsZONERecord"
                }
              }
            }
          },
          "404": {
            "description": "Domain name not found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Error text"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/DNS/{domainName}/Publish": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Publishing zone to DNS server.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Zone published"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/Clear": {
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes DNS records from the database.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Zone deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{sourceDomainName}/CopyZone/{targetDomainName}": {
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Copying DNS zone between domains.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceDomainName",
            "in": "path",
            "description": "Source domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetDomainName",
            "in": "path",
            "description": "Target domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Copy Zone Data Params",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCopyZone"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCopyZone"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCopyZone"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Zone copied"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/A": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Creates new A record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record created"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Updates A record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecordUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecordUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record updated"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes A record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for delete",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsARecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/AAAA": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Creates new AAAA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record created"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Updates AAAA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecordUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecordUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record updated"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes AAAA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for delete",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsAAAARecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/CNAME": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Creates new CNAME record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record created"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Updates CNAME record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecordUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecordUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record updated"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes CNAME record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for delete",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCNAMERecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/MX": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Creates new MX record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record created"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Updates MX record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecordUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecordUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record updated"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes MX record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for delete",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsMXRecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/TXT": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Creates new TXT record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record created"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Updates TXT record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecordUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecordUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record updated"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes TXT record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for delete",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTXTRecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/SRV": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Creates a new SRV record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record created"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Updates SRV record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecordUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecordUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record updated"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes SRV record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for delete",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsSRVRecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/CAA": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Creates new CAA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record created"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Updates CAA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecordUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecordUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record updated"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes CAA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for delete",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsCAARecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DNS/{domainName}/TLSA": {
      "post": {
        "tags": [
          "DNS"
        ],
        "summary": "Creates new TLSA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record created"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "put": {
        "tags": [
          "DNS"
        ],
        "summary": "Updates TLSA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for update",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecordUpdate"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecordUpdate"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecordUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record updated"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      },
      "delete": {
        "tags": [
          "DNS"
        ],
        "summary": "Deletes TLSA record.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Record Data for delete",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecord"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecord"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnsTLSARecord"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Record deleted"
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/DomainContacts": {
      "get": {
        "tags": [
          "DomainContacts"
        ],
        "summary": "Returns the list contacts of the given user",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list all contacts of the given user",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainContactDTO"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainContactDTO"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainContactDTO"
                  }
                }
              }
            }
          },
          "404": {
            "description": "If the list is null"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "post": {
        "tags": [
          "DomainContacts"
        ],
        "summary": "Creates a new contact",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Contact data for create",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainContactCreateDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainContactCreateDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainContactCreateDTO"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns new ZonerHandle",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Create contact failed"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/DomainContacts/{zonerHandle}": {
      "get": {
        "tags": [
          "DomainContacts"
        ],
        "summary": "Returns contact details for the specified handle, including Registrar handles",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zonerHandle",
            "in": "path",
            "description": "Given contact handle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the contact data of the given handle",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DomainContactDTO"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainContactDTO"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainContactDTO"
                }
              }
            }
          },
          "404": {
            "description": "ZonerHandle not exist"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "delete": {
        "tags": [
          "DomainContacts"
        ],
        "summary": "Removes a contact from the user list",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zonerHandle",
            "in": "path",
            "description": "Contact handle for remove",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "ZonerHandle is removed"
          },
          "404": {
            "description": "ZonerHandle not exists"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/DomainContacts/Default": {
      "get": {
        "tags": [
          "DomainContacts"
        ],
        "summary": "Returns the default contact data",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the contact data of default contact",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DomainContactDTO"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainContactDTO"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainContactDTO"
                }
              }
            }
          },
          "404": {
            "description": "Default contact not exist"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/DomainContacts/{zonerHandle}/AsDefault": {
      "put": {
        "tags": [
          "DomainContacts"
        ],
        "summary": "Sets the default contact",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zonerHandle",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "ZonerHandle sets as default contact"
          },
          "404": {
            "description": "ZonerHandle not exists"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/DomainContacts/{zonerHandle}/SetNote": {
      "put": {
        "tags": [
          "DomainContacts"
        ],
        "summary": "Edit contact note",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zonerHandle",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Text note",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contact note is set"
          },
          "404": {
            "description": "ZonerHandle not exists"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/DomainKeysets": {
      "post": {
        "tags": [
          "DomainKeysets"
        ],
        "summary": "Creates Keyset (CZNIC)",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Keyset data for create",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainKeysetDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainKeysetDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainKeysetDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Returns new ZonerHandle",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Create contact failed"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/DomainNssets": {
      "post": {
        "tags": [
          "DomainNssets"
        ],
        "summary": "Creates Nsset (CZNIC)",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Nsset data for create",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainNssetDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainNssetDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainNssetDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Returns new NssetHandle",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Create Nsset failed"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains": {
      "get": {
        "tags": [
          "Domains"
        ],
        "summary": "Returns the list of domains of the given user",
        "description": "Only where the Zoner registrar is",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string",
              "default": "ACCESS_TOKEN"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the all domains of the given user (list domainDTO)",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDTO"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDTO"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "If the list is null"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/Filter/{tld}": {
      "get": {
        "tags": [
          "Domains"
        ],
        "summary": "Returns the list of domains of a given TLD",
        "description": "Only where the Zoner registrar is",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string",
              "default": "ACCESS_TOKEN"
            }
          },
          {
            "name": "tld",
            "in": "path",
            "description": "Domain TLD",
            "required": true,
            "schema": {
              "type": "string",
              "default": "cz"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of domains of a given TLD (list domainDTO)",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDTO"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDTO"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DomainDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "If the list is null"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}": {
      "get": {
        "tags": [
          "Domains"
        ],
        "summary": "Returns current domain",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string",
              "default": "ACCESS_TOKEN"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns curent domain (domainDTO)",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DomainDTO"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainDTO"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DomainDTO"
                }
              }
            }
          },
          "400": {
            "description": "Domain name not exists"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}/Register": {
      "post": {
        "tags": [
          "Domains"
        ],
        "summary": "Registers a domain name",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Data for registers a domain name",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRegisterDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRegisterDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainRegisterDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Register domain started (Order ID)",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}/Register/{period}": {
      "put": {
        "tags": [
          "Domains"
        ],
        "summary": "Register domain name from default data.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "path",
            "description": "Years to Register",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Register started (Order ID)",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Defaut contact not found"
          }
        }
      }
    },
    "/api/Domains/{domainName}/Renew/{period}": {
      "put": {
        "tags": [
          "Domains"
        ],
        "summary": "Renew domain name",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "path",
            "description": "Years to renew",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "201": {
            "description": "Renew started (Order ID)"
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/Domains/{domainName}/OwnerChange/{newOwnerHandle}": {
      "put": {
        "tags": [
          "Domains"
        ],
        "summary": "Changes the domain owner.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "newOwnerHandle",
            "in": "path",
            "description": "New Owner ZonerHandle",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Ownew change started",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}/NSChange": {
      "put": {
        "tags": [
          "Domains"
        ],
        "summary": "Updates nameservers.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "new NsSetDTO",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NsSetChangeDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/NsSetChangeDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/NsSetChangeDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Updates nameservers started",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}/NSChangeToZoner": {
      "put": {
        "tags": [
          "Domains"
        ],
        "summary": "Change of nameservers to Zoner.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Updates nameservers started",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}/DNSSECChange": {
      "put": {
        "tags": [
          "Domains"
        ],
        "summary": "Updates DNSSEC.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "DNSSEC data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnssecDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DnssecDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DnssecDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Updates DNSSEC started",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}/DNSSECRemove": {
      "put": {
        "tags": [
          "Domains"
        ],
        "summary": "Remove DNSSEC.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Remove DNSSEC started",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}/SetNote": {
      "put": {
        "tags": [
          "Domains"
        ],
        "summary": "Edit domain note",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Text note (max 255)",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Domain note is set"
          },
          "404": {
            "description": "Domain name not exists"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Domains/{domainName}/TransferIn": {
      "post": {
        "tags": [
          "Domains"
        ],
        "summary": "Transfer domain name to Zoner",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Data for transfer",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainTransferDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainTransferDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DomainTransferDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Transret started (Order ID)",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "400": {
            "description": "Order Error"
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Domain name not exists"
          }
        }
      }
    },
    "/api/Services": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Returns the list of services of the given user",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string",
              "default": "ACCESS_TOKEN"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the all services of the given user (list serviceDTO)",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceDTO"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceDTO"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServiceDTO"
                  }
                }
              }
            }
          },
          "400": {
            "description": "If the list is null"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Services/{serviceName}/SetNote": {
      "put": {
        "tags": [
          "Services"
        ],
        "summary": "Edit service note",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "serviceName",
            "in": "path",
            "description": "Service name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Text note (max 255)",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Service note is set"
          },
          "404": {
            "description": "service not exists"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes": {
      "get": {
        "tags": [
          "Zmail"
        ],
        "summary": "Returns domain mailbox information, including a list of mailboxes.",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Domain Mailbox data (ZmailDomainDTO)",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ZmailDomainDTO"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ZmailDomainDTO"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ZmailDomainDTO"
                }
              }
            }
          },
          "400": {
            "description": "Error text",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "post": {
        "tags": [
          "Zmail"
        ],
        "summary": "Creates Mailbox",
        "description": "Mailbox name has to be entered without @ and domain name - for example just 'info'\r\n\r\n### Password requirements\r\n- at least 12 characters\r\n- at least 1 Uppercase character\r\n- at least 1 Lowercase character\r\n- at least 1 number",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Mailbox data for create",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MailCreateDTO"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MailCreateDTO"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MailCreateDTO"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Mailbox created"
          },
          "400": {
            "description": "Create Mailbox failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes/{mailboxName}/pwd": {
      "put": {
        "tags": [
          "Zmail"
        ],
        "summary": "Sets the mailbox password",
        "description": "Mailbox name has to be entered without @ and domain name - for example just 'info'\r\n\r\n### Password requirements\r\n- at least 12 characters\r\n- at least 1 Uppercase character\r\n- at least 1 Lowercase character\r\n- at least 1 number",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "New Mailbox password",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Mailbox password updated"
          },
          "400": {
            "description": "Update Mailbox password failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes/{mailboxName}/size": {
      "put": {
        "tags": [
          "Zmail"
        ],
        "summary": "Sets mailbox size in MB",
        "description": "Mailbox name has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "New Mailbox size in MB  (MailboxQuotaMin-MailboxQuotaMax)",
          "content": {
            "application/json": {
              "schema": {
                "type": "integer",
                "format": "int32"
              }
            },
            "text/json": {
              "schema": {
                "type": "integer",
                "format": "int32"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Mailbox size updated"
          },
          "400": {
            "description": "Update Mailbox failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes/{mailboxName}": {
      "delete": {
        "tags": [
          "Zmail"
        ],
        "summary": "Deletes Mailbox",
        "description": "Mailbox name has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mailbox deleted"
          },
          "400": {
            "description": "Delete Mailbox failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes/{mailboxName}/aliases": {
      "get": {
        "tags": [
          "Zmail"
        ],
        "summary": "Get a list of mailbox aliases",
        "description": "Mailbox and Alias name has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Mailbox aliases",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "400": {
            "description": "If the list is null"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "post": {
        "tags": [
          "Zmail"
        ],
        "summary": "Creates Mailbox Alias",
        "description": "Mailbox and Alias name has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Mailbox Alias name",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Mailbox Alias created"
          },
          "400": {
            "description": "Create Mailbox Alias failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes/{mailboxName}/aliases/{aliasName}": {
      "delete": {
        "tags": [
          "Zmail"
        ],
        "summary": "Deletes Mailbox Alias",
        "description": "Mailbox and Alias name has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "aliasName",
            "in": "path",
            "description": "Mailbox Alias name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mailbox Alias deleted"
          },
          "400": {
            "description": "Delete Mailbox Alias failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes/{mailboxName}/forwards": {
      "get": {
        "tags": [
          "Zmail"
        ],
        "summary": "Get a list of mailbox forwards",
        "description": "Mailbox has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Get Mailbox forwards",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ZmailMailboxForwardsDTO"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ZmailMailboxForwardsDTO"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ZmailMailboxForwardsDTO"
                }
              }
            }
          },
          "400": {
            "description": "If the list is null"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "post": {
        "tags": [
          "Zmail"
        ],
        "summary": "Creates Mailbox Forward",
        "description": "Mailbox name has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Mailbox Forward name",
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Mailbox Forward created"
          },
          "400": {
            "description": "Create Mailbox Forward failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes/{mailboxName}/forwards/localcopy": {
      "put": {
        "tags": [
          "Zmail"
        ],
        "summary": "Sets Mailbox Forward local copy",
        "description": "Mailbox name has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Set Mailbox Forward local copy (0=No/1=Yes  )",
          "content": {
            "application/json": {
              "schema": {
                "type": "integer",
                "format": "int32"
              }
            },
            "text/json": {
              "schema": {
                "type": "integer",
                "format": "int32"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Mailbox Forward updated"
          },
          "400": {
            "description": "Update Mailbox Forward failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/Zmail/{domainName}/mailboxes/{mailboxName}/forwards/{forwardName}": {
      "delete": {
        "tags": [
          "Zmail"
        ],
        "summary": "Deletes Mailbox Forward",
        "description": "Mailbox name has to be entered without @ and domain name - for example just 'info'",
        "parameters": [
          {
            "name": "authorizationToken",
            "in": "header",
            "description": "AuthCode some text",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domainName",
            "in": "path",
            "description": "Domain name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mailboxName",
            "in": "path",
            "description": "Mailbox name",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "forwardName",
            "in": "path",
            "description": "Forward name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Mailbox Forward deleted"
          },
          "400": {
            "description": "Delete Mailbox Forward failed",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CreditDTO": {
        "type": "object",
        "properties": {
          "baseCreditAmount": {
            "type": "number",
            "description": "Current available balance on the credit account, excluding VAT",
            "format": "double"
          },
          "fullCreditAmount": {
            "type": "number",
            "description": "Conversion of the available balance to an amount including VAT",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "description": "Currency (CZK, EUR, …)",
            "nullable": true
          },
          "permanentVS": {
            "type": "string",
            "description": "Permanent variable symbol of the given credit account",
            "nullable": true
          },
          "bankAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "bankCode": {
            "type": "string",
            "nullable": true
          },
          "iban": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DnsAAAARecord": {
        "required": [
          "hostName",
          "iPv6"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "iPv6": {
            "minLength": 1,
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsAAAARecordUpdate": {
        "required": [
          "hostName",
          "iPv6",
          "newTTL"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "iPv6": {
            "minLength": 1,
            "type": "string"
          },
          "newIPv6": {
            "type": "string",
            "nullable": true
          },
          "newTTL": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsARecord": {
        "required": [
          "hostName",
          "iPv4"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "iPv4": {
            "minLength": 1,
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsARecordUpdate": {
        "required": [
          "hostName",
          "iPv4",
          "newTTL"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "iPv4": {
            "minLength": 1,
            "type": "string"
          },
          "newIPv4": {
            "type": "string",
            "nullable": true
          },
          "newTTL": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsCAARecord": {
        "required": [
          "name",
          "tag",
          "value"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          },
          "tag": {
            "minLength": 1,
            "type": "string",
            "description": "Tag: (issue, issuewild, iodef)"
          },
          "flag": {
            "type": "integer",
            "format": "int32"
          },
          "ttl": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsCAARecordUpdate": {
        "required": [
          "name",
          "newFlag",
          "newTag",
          "newTTL",
          "newValue",
          "tag",
          "value"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          },
          "tag": {
            "minLength": 1,
            "type": "string"
          },
          "newValue": {
            "minLength": 1,
            "type": "string"
          },
          "newFlag": {
            "type": "integer",
            "format": "int32"
          },
          "newTag": {
            "minLength": 1,
            "type": "string"
          },
          "newTTL": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsCNAMERecord": {
        "required": [
          "hostName",
          "target"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "target": {
            "minLength": 1,
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsCNAMERecordUpdate": {
        "required": [
          "hostName",
          "newTTL",
          "target"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "target": {
            "minLength": 1,
            "type": "string"
          },
          "newTarget": {
            "type": "string",
            "nullable": true
          },
          "newTTL": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsCopyZone": {
        "type": "object",
        "properties": {
          "records": {
            "type": "string",
            "description": "[All | A | AAAA | CNAME | MX | SRV | TXT | CAA | TLSA]  Recods group",
            "nullable": true
          },
          "mode": {
            "type": "string",
            "description": "[Overwrite | Add]  determines whether DNS records for the target domain are deleted or kept",
            "nullable": true
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsKeyDTO": {
        "required": [
          "algorithm",
          "flags",
          "protocol",
          "pubKey"
        ],
        "type": "object",
        "properties": {
          "flags": {
            "type": "integer",
            "description": "default: 257",
            "format": "int32",
            "example": 257
          },
          "algorithm": {
            "type": "integer",
            "description": "default: 13",
            "format": "int32",
            "example": 13
          },
          "protocol": {
            "type": "integer",
            "description": "default: 3",
            "format": "int32",
            "example": 3
          },
          "pubKey": {
            "minLength": 1,
            "type": "string",
            "example": "W/NrulFNg+bHVHYugA1lqNgL/EjnGrsoCxGicOCZ3j/fgjlBcnOKahpnWQhkYe9qf8dmWfg=="
          }
        },
        "additionalProperties": false,
        "description": "Dnskeys struct (CZNIC)"
      },
      "DnsMXRecord": {
        "required": [
          "hostName",
          "mailServerName"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "mailServerName": {
            "minLength": 1,
            "type": "string"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "ttl": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsMXRecordUpdate": {
        "required": [
          "hostName",
          "mailServerName",
          "newPriority",
          "newTTL"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "mailServerName": {
            "minLength": 1,
            "type": "string"
          },
          "newMailServerName": {
            "type": "string",
            "nullable": true
          },
          "newPriority": {
            "type": "integer",
            "format": "int32"
          },
          "newTTL": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsSRVRecord": {
        "required": [
          "name",
          "target"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "target": {
            "minLength": 1,
            "type": "string"
          },
          "priority": {
            "type": "integer",
            "format": "int32"
          },
          "weight": {
            "type": "integer",
            "format": "int32"
          },
          "port": {
            "type": "integer",
            "format": "int32"
          },
          "ttl": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsSRVRecordUpdate": {
        "required": [
          "name",
          "newPort",
          "newPriority",
          "newTTL",
          "newWeight",
          "target"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "target": {
            "minLength": 1,
            "type": "string"
          },
          "newTarget": {
            "type": "string",
            "nullable": true
          },
          "newPriority": {
            "type": "integer",
            "format": "int32"
          },
          "newWeight": {
            "type": "integer",
            "format": "int32"
          },
          "newPort": {
            "type": "integer",
            "format": "int32"
          },
          "newTTL": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsTLSARecord": {
        "required": [
          "certUsage",
          "data",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "certUsage": {
            "type": "integer",
            "format": "int32"
          },
          "certSel": {
            "type": "integer",
            "format": "int32"
          },
          "matchType": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "minLength": 1,
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsTLSARecordUpdate": {
        "required": [
          "certUsage",
          "data",
          "name",
          "newCertSel",
          "newMatchType",
          "newTTL"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "certUsage": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "minLength": 1,
            "type": "string"
          },
          "newCertUsage": {
            "type": "integer",
            "format": "int32"
          },
          "newCertSel": {
            "type": "integer",
            "format": "int32"
          },
          "newMatchType": {
            "type": "integer",
            "format": "int32"
          },
          "newData": {
            "type": "string",
            "nullable": true
          },
          "newTTL": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsTXTRecord": {
        "required": [
          "hostName",
          "text"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "text": {
            "minLength": 1,
            "type": "string"
          },
          "ttl": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsTXTRecordUpdate": {
        "required": [
          "hostName",
          "newTTL",
          "text"
        ],
        "type": "object",
        "properties": {
          "hostName": {
            "minLength": 1,
            "type": "string"
          },
          "text": {
            "minLength": 1,
            "type": "string"
          },
          "newText": {
            "type": "string",
            "nullable": true
          },
          "newTTL": {
            "type": "integer",
            "description": "Time to live in seconds (120-172800).",
            "format": "int32"
          },
          "publishZone": {
            "type": "integer",
            "description": "If PublishZone == 1  Transfer changes immediately to DNS server",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DnsZONERecord": {
        "type": "object",
        "properties": {
          "aRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsARecord"
            },
            "nullable": true
          },
          "aaaaRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsAAAARecord"
            },
            "nullable": true
          },
          "cnameRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsCNAMERecord"
            },
            "nullable": true
          },
          "mxRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsMXRecord"
            },
            "nullable": true
          },
          "txtRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsTXTRecord"
            },
            "nullable": true
          },
          "srvRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsSRVRecord"
            },
            "nullable": true
          },
          "caaRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsCAARecord"
            },
            "nullable": true
          },
          "tlsaRecords": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsTLSARecord"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DnssecDTO": {
        "required": [
          "czNicKeySetHandle"
        ],
        "type": "object",
        "properties": {
          "keyTag": {
            "type": "string",
            "description": "default: 0",
            "nullable": true,
            "example": "18150"
          },
          "algorithm": {
            "type": "integer",
            "description": "default: 13",
            "format": "int32",
            "example": 13
          },
          "digestTyp": {
            "type": "integer",
            "description": "default: 2",
            "format": "int32",
            "example": 2
          },
          "digest": {
            "type": "string",
            "nullable": true,
            "example": "AB7E5567B89853FE39710EFFA3AD869E0EAB57E10F7ED44B1B44E69294C01AE6"
          },
          "flags": {
            "type": "integer",
            "description": "default: 257",
            "format": "int32",
            "example": 257
          },
          "protocol": {
            "type": "integer",
            "description": "default: 3",
            "format": "int32",
            "example": 3
          },
          "pubKey": {
            "type": "string",
            "nullable": true,
            "example": "W/NrulFNg+bHVHYugA1lqNgL/EjnGrsoCxGicOCZ3j/fgjlBcnOKahpnWQhkYe9qf8dmWfg=="
          },
          "czNicKeySetHandle": {
            "minLength": 1,
            "type": "string",
            "description": "CZNicKeySetHandle only for domain .cz\r\ndefault: KS:ZONER:1289219690",
            "example": "KS:ZONER:1289219690"
          }
        },
        "additionalProperties": false
      },
      "DomainContactCreateDTO": {
        "required": [
          "address1",
          "city",
          "contactType",
          "countryCode",
          "email",
          "firstName",
          "lastName",
          "phone",
          "status",
          "zip"
        ],
        "type": "object",
        "properties": {
          "tld": {
            "type": "string",
            "description": "The top level domain for which the nic handle will be registered",
            "nullable": true,
            "example": "CZ"
          },
          "firstName": {
            "minLength": 1,
            "type": "string",
            "example": "Jmeno"
          },
          "lastName": {
            "minLength": 1,
            "type": "string",
            "example": "Prijmeni"
          },
          "organization": {
            "type": "string",
            "description": "Organization required for status: (company | one_man_company)",
            "nullable": true,
            "example": ""
          },
          "address1": {
            "minLength": 1,
            "type": "string",
            "example": "Ulice 123"
          },
          "address2": {
            "type": "string",
            "nullable": true,
            "example": ""
          },
          "city": {
            "minLength": 1,
            "type": "string",
            "example": "Mesto"
          },
          "zip": {
            "minLength": 1,
            "type": "string",
            "example": "123 45"
          },
          "countryCode": {
            "minLength": 1,
            "type": "string",
            "example": "CZ"
          },
          "phone": {
            "minLength": 1,
            "type": "string",
            "example": "+420.123456789"
          },
          "fax": {
            "type": "string",
            "nullable": true,
            "example": "+420.123456789"
          },
          "email": {
            "minLength": 1,
            "type": "string",
            "example": "aaa@bbb.cz"
          },
          "contactType": {
            "minLength": 1,
            "type": "string",
            "description": "ContactType:(pers | corp)",
            "example": "pers"
          },
          "status": {
            "minLength": 1,
            "type": "string",
            "description": "Status: (person | person_pass | company | one_man_company)",
            "example": "person"
          },
          "identification": {
            "type": "string",
            "nullable": true,
            "example": "123456789"
          },
          "vatIdentification": {
            "type": "string",
            "description": "VatIdentification required for status: (company | one_man_company)",
            "nullable": true,
            "example": "CZ123456789"
          },
          "persIdentification": {
            "type": "string",
            "description": "PersIdentification required for status:(person | person_pass)",
            "nullable": true,
            "example": "person"
          },
          "lang": {
            "type": "string",
            "nullable": true,
            "example": "cs"
          }
        },
        "additionalProperties": false,
        "description": "Struct for contact create"
      },
      "DomainContactDTO": {
        "type": "object",
        "properties": {
          "zonerHandle": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "identification": {
            "type": "string",
            "nullable": true
          },
          "vatIdentification": {
            "type": "string",
            "nullable": true
          },
          "persIdentification": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "lang": {
            "type": "string",
            "nullable": true
          },
          "registarHandle": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "only for: GET api/DomainContact/ZonerHandle",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Struct for contact data"
      },
      "DomainDTO": {
        "required": [
          "seviceId"
        ],
        "type": "object",
        "properties": {
          "seviceId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "puniCodeName": {
            "type": "string",
            "nullable": true
          },
          "tld": {
            "type": "string",
            "nullable": true
          },
          "expiration": {
            "type": "string",
            "description": "DateFormat: YYYY-MM-DD",
            "nullable": true
          },
          "autoRenew": {
            "type": "integer",
            "format": "int32"
          },
          "renewWaitForPayment": {
            "type": "integer",
            "format": "int32"
          },
          "renewInProgress": {
            "type": "integer",
            "format": "int32"
          },
          "transferInProgress": {
            "type": "integer",
            "format": "int32"
          },
          "userNote": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DomainKeysetDTO": {
        "required": [
          "dnskeys",
          "keysetName"
        ],
        "type": "object",
        "properties": {
          "keysetName": {
            "minLength": 1,
            "type": "string",
            "description": "KeysetName (CZNIC handle)"
          },
          "techHandle": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List TechHandle contacts CZNIC",
            "nullable": true
          },
          "dnskeys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DnsKeyDTO"
            },
            "description": "List Dnskeys CZNIC"
          }
        },
        "additionalProperties": false,
        "description": "Struct for Keyset data"
      },
      "DomainNssetDTO": {
        "required": [
          "nsName1",
          "nsName2",
          "nssetName",
          "techHandle"
        ],
        "type": "object",
        "properties": {
          "nssetName": {
            "minLength": 1,
            "type": "string",
            "description": "NssetName (CZNIC handle)\r\n<example>NSSET-MYDOMAINDNS</example>"
          },
          "reportLevel": {
            "type": "integer",
            "description": "Report level (CZNIC)\r\n<example>2</example>",
            "format": "int32"
          },
          "techHandle": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List TechHandle contacts CZNIC"
          },
          "nsName1": {
            "minLength": 1,
            "type": "string"
          },
          "nsName2": {
            "minLength": 1,
            "type": "string"
          },
          "nsName3": {
            "type": "string",
            "nullable": true
          },
          "nsName4": {
            "type": "string",
            "nullable": true
          },
          "nsName5": {
            "type": "string",
            "nullable": true
          },
          "nsName6": {
            "type": "string",
            "nullable": true
          },
          "nsName7": {
            "type": "string",
            "nullable": true
          },
          "nsName8": {
            "type": "string",
            "nullable": true
          },
          "nsName9": {
            "type": "string",
            "nullable": true
          },
          "nsName10": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Struct for Nsset data"
      },
      "DomainRegisterDTO": {
        "required": [
          "nsSet",
          "period",
          "zonerOwnerHandle"
        ],
        "type": "object",
        "properties": {
          "period": {
            "type": "integer",
            "format": "int32",
            "example": 1
          },
          "zonerOwnerHandle": {
            "minLength": 1,
            "type": "string",
            "example": "CON123456-ZONER"
          },
          "nsSet": {
            "$ref": "#/components/schemas/NsSetDTO"
          }
        },
        "additionalProperties": false
      },
      "DomainTransferDTO": {
        "required": [
          "authCode"
        ],
        "type": "object",
        "properties": {
          "authCode": {
            "minLength": 1,
            "type": "string",
            "example": "AuthCode"
          },
          "period": {
            "type": "integer",
            "format": "int32",
            "example": 1
          },
          "zonerOwnerHandle": {
            "type": "string",
            "nullable": true,
            "example": "CON123456-ZONER"
          },
          "nsSet": {
            "$ref": "#/components/schemas/NsSetDTO"
          }
        },
        "additionalProperties": false
      },
      "MailCreateDTO": {
        "required": [
          "mailboxName",
          "password"
        ],
        "type": "object",
        "properties": {
          "mailboxName": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string",
            "description": "Mailbox name has to be entered without @ and domain name - for example just 'info'.\r\nMaximum length is 64 characters."
          },
          "password": {
            "maxLength": 99,
            "minLength": 12,
            "type": "string",
            "description": "### Password requirements\r\n- at least 12 characters\r\n- at least 1 Uppercase character\r\n- at least 1 Lowercase character\r\n- at least 1 number"
          },
          "quota": {
            "type": "integer",
            "description": "Mailbox quota in MB. (MailboxQuotaMin-MailboxQuotaMax)",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Struct for Create mail data"
      },
      "MailboxDTO": {
        "type": "object",
        "properties": {
          "mailboxName": {
            "type": "string",
            "description": "Mailbox name",
            "nullable": true
          },
          "mailboxQuota": {
            "type": "integer",
            "description": "Maximum possible quota in MB (MailboxQuotaMin-MailboxQuotaMax)",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Mailbox struct"
      },
      "NsSetChangeDTO": {
        "type": "object",
        "properties": {
          "ns1Name": {
            "type": "string",
            "nullable": true,
            "example": "ns1.regzone.cz"
          },
          "ns2Name": {
            "type": "string",
            "nullable": true,
            "example": "ns1.regzone.info"
          },
          "ns3Name": {
            "type": "string",
            "nullable": true,
            "example": "ns1.regzone.de"
          },
          "ns4Name": {
            "type": "string",
            "nullable": true,
            "example": ""
          },
          "czNicNSSetHandle": {
            "type": "string",
            "description": "or CZNicNSSetHandle only for domain .cz",
            "nullable": true,
            "example": "NSSET:ZONER"
          }
        },
        "additionalProperties": false
      },
      "NsSetDTO": {
        "type": "object",
        "properties": {
          "ns1Name": {
            "type": "string",
            "description": "default: ns1.regzone.cz",
            "nullable": true,
            "example": "ns1.regzone.cz"
          },
          "ns2Name": {
            "type": "string",
            "description": "default: ns1.regzone.info",
            "nullable": true,
            "example": "ns1.regzone.info"
          },
          "ns3Name": {
            "type": "string",
            "description": "default: ns1.regzone.de",
            "nullable": true,
            "example": "ns1.regzone.de"
          },
          "ns4Name": {
            "type": "string",
            "nullable": true,
            "example": ""
          },
          "czNicNSSetHandle": {
            "type": "string",
            "description": "CZNicNSSetHandle only for domain .cz\r\ndefault: NSSET:ZONER",
            "nullable": true,
            "example": "NSSET:ZONER"
          }
        },
        "additionalProperties": false
      },
      "ServiceDTO": {
        "required": [
          "seviceId"
        ],
        "type": "object",
        "properties": {
          "seviceId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "puniCodeName": {
            "type": "string",
            "nullable": true
          },
          "varCode": {
            "type": "integer",
            "format": "int32"
          },
          "invoiceTill": {
            "type": "string",
            "description": "DateFormat: YYYY-MM-DD",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "userNote": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ZmailDomainDTO": {
        "type": "object",
        "properties": {
          "domainQuota": {
            "type": "integer",
            "description": "Total domain capacity in MB",
            "format": "int32"
          },
          "mailboxQuotaMin": {
            "type": "integer",
            "description": "Minimum possible mailbox quota in MB",
            "format": "int32"
          },
          "mailboxQuotaDefault": {
            "type": "integer",
            "description": "Default mailbox quota in MB",
            "format": "int32"
          },
          "mailboxQuotaMax": {
            "type": "integer",
            "description": "Maximum possible quota in MB",
            "format": "int32"
          },
          "mailboxes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MailboxDTO"
            },
            "description": "Mailbox info",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Zmail domain info"
      },
      "ZmailMailboxForwardsDTO": {
        "type": "object",
        "properties": {
          "localCopy": {
            "type": "boolean",
            "description": "Local copy"
          },
          "mailboxForwards": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Mailbox forwards",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Zmail mailbox forwars info"
      }
    }
  }
}