{"info":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","description":"<html><head></head><body><p>Welcome to the VasHosting.cz API documentation! This API can be used for manipulating with servers, domains and all services related to domains (dns, emails, crons, etc.).</p>\n<p>Feel free to give us some feedback and things you think our API could do.</p>\n<h2 id=\"response-formats\">Response formats</h2>\n<p>Our api communicates only via JSON, we receive <strong>JSON</strong> body via the <strong>POST</strong> requests, and we provide back usually empty <strong>204</strong> response or response code <strong>200</strong> with <strong>JSON</strong> body if we need to provide you some information.</p>\n<p>Successfull responses: <strong>200</strong> (with json), <strong>204</strong> (empty body).<br>Error responses: <strong>4xx</strong> (with JSON, please read the \"message\" json key).</p>\n<p>You can see examples of correct requests (with successful responses) and bad requests (with error responses) under each endpoint's demo.</p>\n<h2 id=\"variables-in-urls\">Variables in URLs</h2>\n<p>An example variable in url can be (your domain name) or (your server hostname), variables will tel us the context and they will setup the environment.</p>\n<h2 id=\"units\">Units</h2>\n<p>As we provide hosting for your domains and offer managed VDSes/VPSes, too, we need to handle with various units for storage and operational memories. As hosting tariffs for domains are usually used for smaller projects, it works with smaller units (like kB and MB) as stored data isn't too big. On the other side, managed servers often works with bigger data in GB and TB. To deal with this asymmetry we decided to use two unit systems in this API.</p>\n<h3 id=\"domains-and-related-services\">Domains (and related services)</h3>\n<p>Everything around domains (includes all related services like databases, FTP or emails) uses <strong>Megabytes (MB)</strong> in endpoints of this API.</p>\n<p>When we need to count with bigger numbers, we always divide by <strong>1,000</strong>, so e.g. <strong>1 GB = 1,000 MB</strong>.</p>\n<h3 id=\"servers-vps-vds\">Servers (VPS, VDS)</h3>\n<p>When dealing with storage units and limitations around servers (VPSes and VDSes), always use <strong>Gigabytes (GB)</strong> for disk spaces and <strong>Gibibytes (GiB)</strong> for RAM size.</p>\n<p>When we need to save higher unit, for instance TB, we will divide bytes by 1,000 for storage (server drives, etc.) and by 1,024 for RAM.</p>\n<h2 id=\"authorization\">Authorization</h2>\n<p>Every your request needs to be authorized, authorization is done via <strong>API keys</strong>, they can be created here <a href=\"https://portal.vas-hosting.cz/api-key\">https://portal.vas-hosting.cz/api-key</a> and scope is currently unlimited, they will be displayed only once, since we are encrypting them and <strong>we cannot show them again</strong>, so please save them to some secure place.</p>\n<p>Authorizatin is done with http headers, header name is <strong>X-API-Key</strong> and the value is your api key.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26076792","collectionId":"385cb945-6e04-46b0-970b-4d04cdfdaf46","publishedId":"2s93CRJque","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-02-27T13:39:23.000Z"},"item":[{"name":"Account","item":[{"name":"List unpaid invoices","id":"3d2de5e6-2a05-4391-8581-00354cff8002","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/account/unpaid-invoices","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","account","unpaid-invoices"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"8f08ef54-5c97-4835-bdaa-d6c23af4bea1","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/account/unpaid-invoices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 03:00:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"3023000368\": {\n        \"totalPrice\": \"0.00\",\n        \"createdAt\": \"2023-01-17\",\n        \"expiresAt\": \"2023-01-22\"\n    },\n    \"3023000370\": {\n        \"totalPrice\": \"4414.08\",\n        \"createdAt\": \"2023-01-17\",\n        \"expiresAt\": \"2023-01-22\"\n    },\n    \"3023000372\": {\n        \"totalPrice\": \"4065.60\",\n        \"createdAt\": \"2023-01-17\",\n        \"expiresAt\": \"2023-01-22\"\n    },\n    \"3023000373\": {\n        \"totalPrice\": \"348.48\",\n        \"createdAt\": \"2023-01-17\",\n        \"expiresAt\": \"2023-01-22\"\n    },\n    \"3023000374\": {\n        \"totalPrice\": \"209.33\",\n        \"createdAt\": \"2023-01-23\",\n        \"expiresAt\": \"2023-01-28\"\n    },\n    \"3023000375\": {\n        \"totalPrice\": \"209.33\",\n        \"createdAt\": \"2023-01-23\",\n        \"expiresAt\": \"2023-01-28\"\n    },\n    \"3023000377\": {\n        \"totalPrice\": \"532.40\",\n        \"createdAt\": \"2023-01-23\",\n        \"expiresAt\": \"2023-01-28\"\n    },\n    \"3023000378\": {\n        \"totalPrice\": \"3726.80\",\n        \"createdAt\": \"2023-01-23\",\n        \"expiresAt\": \"2023-01-28\"\n    },\n    \"3023000381\": {\n        \"totalPrice\": \"399.30\",\n        \"createdAt\": \"2023-01-27\",\n        \"expiresAt\": \"2023-02-01\"\n    },\n    \"3023000382\": {\n        \"totalPrice\": \"605.00\",\n        \"createdAt\": \"2023-01-30\",\n        \"expiresAt\": \"2023-02-04\"\n    },\n    \"3023000387\": {\n        \"totalPrice\": \"1980.77\",\n        \"createdAt\": \"2023-02-21\",\n        \"expiresAt\": \"2023-02-26\"\n    },\n    \"3023000388\": {\n        \"totalPrice\": \"209.33\",\n        \"createdAt\": \"2023-02-21\",\n        \"expiresAt\": \"2023-02-26\"\n    },\n    \"3023000394\": {\n        \"totalPrice\": \"3509.00\",\n        \"createdAt\": \"2023-02-24\",\n        \"expiresAt\": \"2023-03-01\"\n    },\n    \"3023000396\": {\n        \"totalPrice\": \"1628.66\",\n        \"createdAt\": \"2023-02-28\",\n        \"expiresAt\": \"2023-03-05\"\n    }\n}"}],"_postman_id":"3d2de5e6-2a05-4391-8581-00354cff8002"},{"name":"Pay unpaid invoice","id":"4e1597a2-045e-4bed-bd74-0eb68076bbe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://portal.vas-hosting.cz/api/v1/account/unpaid-invoices/<variableSymbol>/pay-with-credit","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","account","unpaid-invoices","<variableSymbol>","pay-with-credit"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"ffd3e884-0b45-4074-ba7f-6f214e711739","name":"Working example","originalRequest":{"method":"POST","header":[],"url":"https://portal.vas-hosting.cz/api/v1/account/unpaid-invoices/<variableSymbol>/pay-with-credit"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 03:07:41 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4e1597a2-045e-4bed-bd74-0eb68076bbe1"}],"id":"6cb3fb08-e4e8-4224-a8b4-0cf4041742ad","_postman_id":"6cb3fb08-e4e8-4224-a8b4-0cf4041742ad","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"Domains","item":[{"name":"Databases","item":[{"name":"List databases","id":"746622b5-3851-4ff7-9ad5-54dfb6c1103e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","databases"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"1d370dda-aba9-4cc4-81e0-5566195dbede","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 02:06:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"invoicekd_5579\": {\n        \"user\": \"invoicekd.5579\",\n        \"type\": \"mysql\",\n        \"size\": 100\n    },\n    \"kareldyta_5579\": {\n        \"user\": \"kareldyta.5579\",\n        \"type\": \"mysql\",\n        \"size\": 200\n    },\n    \"kareldytb_5579\": {\n        \"user\": \"kareldytb.5579\",\n        \"type\": \"mysql\",\n        \"size\": 0\n    },\n    \"kareldytrycha_5579\": {\n        \"user\": \"kareldytrycha_5579\",\n        \"type\": \"postgresql\",\n        \"size\": 300\n    },\n    \"kareldytrychcza_5579\": {\n        \"user\": \"kareldytrychcza_5579\",\n        \"type\": \"postgresql\",\n        \"size\": 152\n    },\n    \"kareldytrychczb_5579\": {\n        \"user\": \"kareldytrychczb_5579\",\n        \"type\": \"postgresql\",\n        \"size\": 326\n    },\n    \"mysql_5579\": {\n        \"user\": \"mysql.5579\",\n        \"type\": \"mysql\",\n        \"size\": 0\n    }\n}"}],"_postman_id":"746622b5-3851-4ff7-9ad5-54dfb6c1103e"},{"name":"Create database","id":"5a4c208e-3681-47c7-a704-d1b3bd0aedba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"foobar_5579\", \r\n    \"type\": \"mysql\",\r\n    \"password\": \"mytopsecretpassword\", \r\n    \"encoding\": \"utf8mb4_unicode_ci\",\r\n    \"note\": null\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name (string)</td>\n<td>yes</td>\n<td>Database name</td>\n</tr>\n<tr>\n<td>type (mysql/postgresql)</td>\n<td>yes</td>\n<td>Database software</td>\n</tr>\n<tr>\n<td>password (string 8-64)</td>\n<td>yes</td>\n<td>User password</td>\n</tr>\n<tr>\n<td>encoding (string)</td>\n<td>no</td>\n<td>MySQL/PostgreSQL encoding</td>\n</tr>\n<tr>\n<td>note (string)</td>\n<td>no</td>\n<td>Note</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","databases"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"e52e6aee-bc9c-4e68-94ca-2c8bbd3d1b3e","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"foobar_5579\", \r\n    \"type\": \"mysql\",\r\n    \"password\": \"mytopsecretpassword\", \r\n    \"encoding\": \"utf8mb4_unicode_ci\",\r\n    \"note\": null\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 02:09:08 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5a4c208e-3681-47c7-a704-d1b3bd0aedba"},{"name":"Change password","id":"8800f5aa-65da-491a-adb7-5b1744278b1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"mynewpassword\"\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases/<database>/change-password","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>password (string 8-64)</td>\n<td>yes</td>\n<td>New password</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","databases","<database>","change-password"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"5128dd2a-8f41-4e13-82e8-d2812b548b24","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"mynewpassword\"\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases/<database>/change-password"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 02:14:37 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8800f5aa-65da-491a-adb7-5b1744278b1b"},{"name":"Backup database","id":"f86981bd-22c5-48d4-ab1a-f17539a8ebc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases/<database>/backup","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","databases","<database>","backup"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"0a2d8a8e-587f-4500-bcb1-6101a71221c3","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases/<database>/backup"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 02:18:01 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f86981bd-22c5-48d4-ab1a-f17539a8ebc2"},{"name":"Delete database","id":"26f790da-8541-4f78-94d6-11447f41017a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases/<database>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","databases","<database>"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"ccf57bc6-14ab-4cfb-877f-3d9eeb3583c8","name":"Working example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/databases/<database>"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 02:15:54 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"26f790da-8541-4f78-94d6-11447f41017a"}],"id":"2ba5b6b8-0a42-46b3-9483-77684be09ab7","description":"<h2 id=\"units\">Units</h2>\n<p>All API endpoints for databases uses <strong>Megabytes (MB)</strong> as storage size units.</p>\n","_postman_id":"2ba5b6b8-0a42-46b3-9483-77684be09ab7","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"DNS records","item":[{"name":"List DNS records","id":"2af90a07-8671-4c66-8e50-d795c8f0cb6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"text"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","dns-records"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"81823416-3a77-4cfc-ae6b-47b4ac356181","name":"Working example","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"text"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 06 Feb 2024 21:19:23 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"139816\": {\n        \"name\": \"test.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"1.1.1.3\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": \"Test record\",\n        \"created\": \"2016-02-22 08:48:16\",\n        \"updated\": \"2023-03-03 23:08:32\"\n    },\n    \"139817\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"NS\",\n        \"content\": \"ns.vas-hosting.eu\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2016-02-22 08:48:16\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"139818\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"NS\",\n        \"content\": \"ns.vas-hosting.com\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2016-02-22 08:48:16\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"139819\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"95.168.209.66\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2016-02-22 08:48:16\",\n        \"updated\": \"2023-03-03 23:12:37\"\n    },\n    \"139820\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"MX\",\n        \"content\": \"xyz.vas-hosting.cz\",\n        \"priority\": 12,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2016-02-22 08:48:16\",\n        \"updated\": \"2023-12-20 12:25:08\"\n    },\n    \"139821\": {\n        \"name\": \"www.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"95.168.209.68\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2016-02-22 08:48:16\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"139822\": {\n        \"name\": \"*.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"37.235.104.64\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": \"dsadasda\",\n        \"created\": \"2016-02-22 08:48:16\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"146033\": {\n        \"name\": \"autoconfig.kareldytrych.cz\",\n        \"type\": \"CNAME\",\n        \"content\": \"test.vas-hosting.cz\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2016-08-13 06:54:35\",\n        \"updated\": \"2023-12-20 12:25:01\"\n    },\n    \"146034\": {\n        \"name\": \"autodiscover.kareldytrych.cz\",\n        \"type\": \"CNAME\",\n        \"content\": \"mail.vas-hosting.cz\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2016-08-13 06:54:35\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"146035\": {\n        \"name\": \"_autodiscover._tcp.kareldytrych.cz\",\n        \"type\": \"SRV\",\n        \"content\": \"10 1 443 mail.vas-hosting.cz\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2016-08-13 06:54:35\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"213884\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"CAA\",\n        \"content\": \"0 issue \\\"letsencrypt.org\\\"\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2019-08-21 20:10:04\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"232965\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"TXT\",\n        \"content\": \"v=spf1 a mx ?all\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2020-02-25 09:36:16\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"428812\": {\n        \"name\": \"test.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"0.1.0.33\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2022-11-19 09:01:44\",\n        \"updated\": \"2023-03-03 23:13:00\"\n    },\n    \"428813\": {\n        \"name\": \"qqq.kareldytrych.cz\",\n        \"type\": \"TXT\",\n        \"content\": \"v=spf1 a mx ?all\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2022-11-19 09:17:16\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439225\": {\n        \"name\": \"test2.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"9.8.7.9\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-02-15 04:25:50\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439226\": {\n        \"name\": \"test.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"9.8.7.7\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-02-25 21:29:18\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439227\": {\n        \"name\": \"test.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"9.8.7.1\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-02-25 21:29:59\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439228\": {\n        \"name\": \"test2.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"9.8.7.1\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-02-25 21:31:58\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439229\": {\n        \"name\": \"test.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"9.8.7.9\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-02-25 21:32:48\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439230\": {\n        \"name\": \"test.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"9.8.7.2\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-02-25 21:33:22\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439231\": {\n        \"name\": \"test.kareldytrych.cz\",\n        \"type\": \"A\",\n        \"content\": \"9.8.7.0\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-02-25 21:40:42\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439236\": {\n        \"name\": \"foo.kareldytrych.cz\",\n        \"type\": \"AAAA\",\n        \"content\": \"::1\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-03-02 15:27:42\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439237\": {\n        \"name\": \"bar.kareldytrych.cz\",\n        \"type\": \"AAAA\",\n        \"content\": \"1:2:abc:456:009::1\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-03-02 15:28:20\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439238\": {\n        \"name\": \"bar.kareldytrych.cz\",\n        \"type\": \"AAAA\",\n        \"content\": \"123::111:1:12\",\n        \"priority\": null,\n        \"ttl\": 3600,\n        \"note\": null,\n        \"created\": \"2023-03-02 15:31:10\",\n        \"updated\": \"2023-03-03 20:42:13\"\n    },\n    \"439333\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"TXT\",\n        \"content\": \"test123\",\n        \"priority\": null,\n        \"ttl\": 1800,\n        \"note\": null,\n        \"created\": \"2024-01-10 10:06:20\",\n        \"updated\": \"2024-01-10 10:10:42\"\n    },\n    \"439334\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"TXT\",\n        \"content\": \"test\",\n        \"priority\": null,\n        \"ttl\": 1800,\n        \"note\": null,\n        \"created\": \"2024-01-10 10:10:16\",\n        \"updated\": \"2024-01-10 10:10:19\"\n    },\n    \"439336\": {\n        \"name\": \"kareldytrych.cz\",\n        \"type\": \"TXT\",\n        \"content\": \"google-site-verification: google12cfc8677988bb4.html\",\n        \"priority\": null,\n        \"ttl\": 1800,\n        \"note\": null,\n        \"created\": \"2024-01-10 10:13:25\",\n        \"updated\": \"2024-01-10 10:13:28\"\n    }\n}"}],"_postman_id":"2af90a07-8671-4c66-8e50-d795c8f0cb6d"},{"name":"Create DNS record","id":"a01b941d-6a3b-4385-b072-b00a958891fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\",\r\n    \"content\": \"9.8.7.6\",\r\n    \"type\": \"A\",\r\n    \"ttl\": 1800\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name (string)</td>\n<td>yes</td>\n<td>Record name</td>\n</tr>\n<tr>\n<td>content (string)</td>\n<td>yes</td>\n<td>Record content/value</td>\n</tr>\n<tr>\n<td>type (string)</td>\n<td>yes</td>\n<td>Type (A/MX/TXT etc.)</td>\n</tr>\n<tr>\n<td>ttl (int 60-86400)</td>\n<td>yes</td>\n<td>Time to live</td>\n</tr>\n<tr>\n<td>priority (int 0-65535)</td>\n<td>no</td>\n<td>Priority for MX records</td>\n</tr>\n<tr>\n<td>note (string)</td>\n<td>no</td>\n<td>Your internal note</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","dns-records"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"26adc3fa-23e1-4a3e-a78d-7dbf7d8dbb5d","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\", \r\n    \"content\": \"9.8.7.0\", \r\n    \"type\": \"A\", \r\n    \"ttl\": 1800\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Sat, 25 Feb 2023 20:40:42 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":""},{"id":"9eec820f-e540-4b1b-9f14-f91f55d705a5","name":"Collision","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\", \r\n    \"content\": \"9.8.7.5\", \r\n    \"type\": \"A\", \r\n    \"ttl\": 1800\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Sat, 25 Feb 2023 20:24:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"DNS record already exists (content)\"\n}"},{"id":"0d153a9e-ca7e-44a6-ab98-8d85787fb55e","name":"Bad parameters","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\", \r\n    \"content\": \"9.8.7.6\", \r\n    \"type\": \"A\", \r\n    \"ttl\": 1\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Sat, 25 Feb 2023 20:41:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"ttl\": [\n                \"This value should be between 60 and 86400.\"\n            ]\n        }\n    }\n}"},{"id":"5ce01198-a979-4f84-9fee-976cb04c45e2","name":"Bad parameters Copy","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\", \r\n    \"content\": \"9.8.7.6\", \r\n    \"type\": \"A\", \r\n    \"ttl\": 1\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Sat, 25 Feb 2023 20:41:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"ttl\": [\n                \"This value should be between 60 and 86400.\"\n            ]\n        }\n    }\n}"}],"_postman_id":"a01b941d-6a3b-4385-b072-b00a958891fc"},{"name":"Edit DNS record","id":"3dcef33e-7303-4d90-983e-d005764e0f63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\", \r\n    \"content\": \"1.1.1.1\", \r\n    \"type\": \"A\", \r\n    \"ttl\": 1800\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records/<record_id>","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name (string)</td>\n<td>yes</td>\n<td>Record name</td>\n</tr>\n<tr>\n<td>content (string)</td>\n<td>yes</td>\n<td>Record content/value</td>\n</tr>\n<tr>\n<td>type (string)</td>\n<td>yes</td>\n<td>Type (A/MX/TXT etc.)</td>\n</tr>\n<tr>\n<td>ttl (int 60-86400)</td>\n<td>yes</td>\n<td>Time to live</td>\n</tr>\n<tr>\n<td>priority (int 0-65535)</td>\n<td>no</td>\n<td>Priority for MX records</td>\n</tr>\n<tr>\n<td>note (string)</td>\n<td>no</td>\n<td>Your internal note</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","dns-records","<record_id>"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"39624b83-fbb0-4a2d-8195-bd5a6ea1a6e2","name":"Change DNS record","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\", \r\n    \"content\": \"1.1.1.1\", \r\n    \"type\": \"A\", \r\n    \"ttl\": 1800\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records/<record_id>"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 02:03:57 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3dcef33e-7303-4d90-983e-d005764e0f63"},{"name":"Delete DNS record","id":"e1532491-4cfc-4693-9885-e2543510dd96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records/<record_id>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","dns-records","<record_id>"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"8ee5d2f3-ed1f-42a1-b111-392bef64b6cf","name":"Working example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"test\", \r\n    \"content\": \"1.1.1.1\", \r\n    \"type\": \"A\", \r\n    \"ttl\": 1800\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/dns-records/<record_id>"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 02:03:57 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e1532491-4cfc-4693-9885-e2543510dd96"}],"id":"8e57c664-a450-4380-a4fc-82f6a630b0fc","description":"<p>This API endpoint is for creating, updating and deleting your DNS records. You can also access your NS records and change/delete them.</p>\n","_postman_id":"8e57c664-a450-4380-a4fc-82f6a630b0fc","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"Email accounts","item":[{"name":"List email accounts","id":"e3fdd578-bfb4-418e-9ac6-6fb397754a07","protocolProfileBehavior":{"disableBodyPruning":true,"followAuthorizationHeader":false},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"0a072ed6-072b-4ca0-91e5-ed7d626c8e7e","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 28 Feb 2023 23:06:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"bar\": {\n        \"quota\": 0,\n        \"isAutoReply\": false,\n        \"isActive\": true\n    },\n    \"foo\": {\n        \"quota\": 0,\n        \"isAutoReply\": false,\n        \"isActive\": true\n    },\n    \"foobar\": {\n        \"quota\": 0,\n        \"isAutoReply\": false,\n        \"isActive\": true\n    },\n    \"karel\": {\n        \"quota\": 0,\n        \"isAutoReply\": false,\n        \"isActive\": true\n    }\n}"}],"_postman_id":"e3fdd578-bfb4-418e-9ac6-6fb397754a07"},{"name":"Create an email account","id":"1ecd6078-4eb1-4745-b1ad-6c57254838d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"foobar\", \r\n    \"displayName\": \"Karel Dytrych\", \r\n    \"password\": \"mytopsecretpassword\", \r\n    \"quota\": 200\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name (string)</td>\n<td>yes</td>\n<td>Account name</td>\n</tr>\n<tr>\n<td>displayName (string)</td>\n<td>yes</td>\n<td>Display name</td>\n</tr>\n<tr>\n<td>password (string 8-64)</td>\n<td>yes</td>\n<td>Account password</td>\n</tr>\n<tr>\n<td>quota (int, MB)</td>\n<td>yes</td>\n<td>Quota (0 for unlimited)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"4a1eef3c-513a-445d-a7a1-5f645dcb2537","name":"Working example (204)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"foobar\", \r\n    \"displayName\": \"Karel Dytrych\", \r\n    \"password\": \"mytopsecretpassword\", \r\n    \"quota\": 2000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 28 Feb 2023 21:35:01 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"65bd2f84-04c6-4966-8525-4bb61f010104","name":"Short password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"foobar2\", \r\n    \"displayName\": \"Karel Dytrych\", \r\n    \"password\": \"abc\", \r\n    \"quota\": 2000000000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/foobar/change-password"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 28 Feb 2023 23:02:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"password\": [\n                \"This value is too short. It should have 8 characters or more.\"\n            ]\n        }\n    }\n}"}],"_postman_id":"1ecd6078-4eb1-4745-b1ad-6c57254838d1"},{"name":"Change password","id":"89cc6bf0-6fa3-4255-9218-114286c8232b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\"password\": \"mynewpassword\"}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/change-password","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>password (string 8-64)</td>\n<td>yes</td>\n<td>New password</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts","<account>","change-password"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"b0395001-5d16-42e3-a934-893074f3dd1c","name":"Working example (204)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"mynewpassword\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/change-password"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 28 Feb 2023 21:56:54 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"8c7c8abd-04cd-4df4-8fd9-39f00379f66f","name":"Short password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"abc\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/change-password"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 28 Feb 2023 23:13:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"password\": [\n                \"This value is too short. It should have 8 characters or more.\"\n            ]\n        }\n    }\n}"}],"_postman_id":"89cc6bf0-6fa3-4255-9218-114286c8232b"},{"name":"Change quota","id":"fe9af73a-3af2-4c25-809f-4bf0d03486b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quota\": 2000\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/change-quota","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>quota (int, MB)</td>\n<td>yes</td>\n<td>New quota</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts","<account>","change-quota"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"1d82af8f-c72c-450a-bb6d-98e506f40466","name":"Working example (2GB)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quota\": 3000\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/change-quota"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:32:08 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fe9af73a-3af2-4c25-809f-4bf0d03486b0"},{"name":"Create email alias","id":"baf70b5f-7d9a-489b-bd94-42bc0de19d06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"testing\"\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/alias","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name (string)</td>\n<td>yes</td>\n<td>Email alias name</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts","<account>","alias"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"132b03a1-f774-4082-9848-9a5f596227e4","name":"Add email alias","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"testing\"\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/alias"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:41:13 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"baf70b5f-7d9a-489b-bd94-42bc0de19d06"},{"name":"Delete email alias","id":"33b717fb-a2c2-462b-9e88-ae602f3bd820","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/alias/testing","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts","<account>","alias","testing"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"b62ceaef-889e-41eb-9504-e71a7852ff12","name":"Working example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/alias/testing"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:45:09 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"17eb0c11-51bd-4a17-b42f-9c4edc882aa4","name":"Alias does not exist","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/alias/testing"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:47:45 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This alias does not exist.\"\n}"}],"_postman_id":"33b717fb-a2c2-462b-9e88-ae602f3bd820"},{"name":"Setup auto-reply","id":"2f132b11-ef4d-41e7-bbac-8dad7ea4e22e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"isActive\": true,\r\n    \"autoActiveFrom\": \"2023-01-01 00:00:00\",\r\n    \"autoActiveTo\": \"2023-02-02 00:00:00\",\r\n    \"subject\": \"This is auto-reply subject\",\r\n    \"content\": \"This is the body of the email\"\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/setup-auto-reply","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>isActive (boolean)</td>\n<td>yes</td>\n<td>Status</td>\n</tr>\n<tr>\n<td>autoActiveFrom (string, datetime)</td>\n<td>no</td>\n<td>Auto. active from</td>\n</tr>\n<tr>\n<td>autoActiveTo (string, datetime)</td>\n<td>no</td>\n<td>Auto. active to</td>\n</tr>\n<tr>\n<td>subject (string)</td>\n<td>no</td>\n<td>Email title</td>\n</tr>\n<tr>\n<td>content (string)</td>\n<td>no</td>\n<td>Email body</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts","<account>","setup-auto-reply"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"a8c1e1d2-b7ab-4ca5-8afc-292c66cbebe1","name":"Setup from-to","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"isActive\": false,\r\n    \"autoActiveFrom\": \"2023-01-01 00:00:00\",\r\n    \"autoActiveTo\": \"2023-02-02 00:00:00\",\r\n    \"subject\": \"This is auto-reply subject\",\r\n    \"content\": \"This is the body of the email\"\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/setup-auto-reply"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:25:40 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"92367880-46e3-4588-8f90-f0823915ae44","name":"Setup without changing texts","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"isActive\": true,\r\n    \"autoActiveFrom\": null,\r\n    \"autoActiveTo\": null,\r\n    \"subject\": null,\r\n    \"content\": null\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/setup-auto-reply"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:25:40 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"2f132b11-ef4d-41e7-bbac-8dad7ea4e22e"},{"name":"Setup forwarding","id":"51121283-27aa-4275-8afc-d84bee14725f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"emails\": [\r\n        \"example@gmail.com\", \r\n        \"another@proton.me\"\r\n    ],\r\n    \"deleteOriginalEmail\": false\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/setup-forwarding","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>emails (array of strings)</td>\n<td>yes</td>\n<td>Emails to forward to</td>\n</tr>\n<tr>\n<td>deleteOriginalEmail (boolean)</td>\n<td>yes</td>\n<td>Delete original email?</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts","<account>","setup-forwarding"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"98caa66d-62fe-4365-b86d-a267aaa80b5d","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"emails\": [\r\n        \"example@gmail.com\", \r\n        \"another@proton.me\"\r\n    ],\r\n    \"deleteOriginalEmail\": false\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>/setup-forwarding"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:52:30 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"51121283-27aa-4275-8afc-d84bee14725f"},{"name":"Delete email account","id":"dcf85230-2d0f-4e4f-8076-4c9ea969e63c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","email-accounts","<account>"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"caa9d96b-9fd6-4ec9-a49c-ffd379b4a60c","name":"Working example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:59:09 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"2ed5ba0a-7e5a-45df-974f-55c56e35e84f","name":"Account not found","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts/<account>"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 22:59:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This email does not exist.\"\n}"}],"_postman_id":"dcf85230-2d0f-4e4f-8076-4c9ea969e63c"}],"id":"c4da7027-0f10-46d9-b73e-dc3b0648e886","description":"<p>When working with email accounts, always use only account name that is before <strong>@yourdomain.com</strong>, because domain name is always specified in the URL, if you are manipulating with email <a href=\"https://mailto:test@yourdomain.com\">test@yourdomain.com</a>, url for changing password will look like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://centrum.vas-hosting.cz/api/v1/domains/yourdomain.com/email-accounts/test/change-password\n\n</code></pre><h2 id=\"units\">Units</h2>\n<p>All API endpoints for emails uses <strong>Megabytes (MB)</strong> as storage size units.</p>\n","_postman_id":"c4da7027-0f10-46d9-b73e-dc3b0648e886","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"Ftp accounts","item":[{"name":"List FTP accounts","id":"fe4bb862-4f9f-49b1-9e45-3376d524c74d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","ftp-accounts"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"22411c53-f92a-43ea-afc6-7257979c9b77","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/email-accounts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 28 Feb 2023 23:06:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"bar\": {\n        \"quota\": 0,\n        \"isAutoReply\": false,\n        \"isActive\": true\n    },\n    \"foo\": {\n        \"quota\": 0,\n        \"isAutoReply\": false,\n        \"isActive\": true\n    },\n    \"foobar\": {\n        \"quota\": 0,\n        \"isAutoReply\": false,\n        \"isActive\": true\n    },\n    \"karel\": {\n        \"quota\": 0,\n        \"isAutoReply\": false,\n        \"isActive\": true\n    }\n}"}],"_postman_id":"fe4bb862-4f9f-49b1-9e45-3376d524c74d"},{"name":"Create FTP account","id":"3287e51d-5969-4c9d-92f5-9c4d4d7c340f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"foobar.5579\", \r\n    \"directory\": \"/adminer\",\r\n    \"password\": \"mytopsecretpassword\", \r\n    \"quota\": 2000000000\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts","description":"<p>StartFragment</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name (string)</td>\n<td>yes</td>\n<td>Account name</td>\n</tr>\n<tr>\n<td>directory (string)</td>\n<td>yes</td>\n<td>Directory path</td>\n</tr>\n<tr>\n<td>password (string 8-64)</td>\n<td>yes</td>\n<td>Account password</td>\n</tr>\n<tr>\n<td>quota (int, MB)</td>\n<td>yes</td>\n<td>Quota (0 for unlimited)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","ftp-accounts"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"672fa879-ab5b-411c-8951-13b993b8e85f","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"foobar.5579\", \r\n    \"directory\": \"/adminer\",\r\n    \"password\": \"mytopsecretpassword\", \r\n    \"quota\": 2000\r\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 00:09:52 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"ddaac6cb-fc0e-4203-9097-eb0cdcbe45a0","name":"Collision","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"foobar.5579\", \r\n    \"directory\": \"/adminer\",\r\n    \"password\": \"mytopsecretpassword\", \r\n    \"quota\": 2000\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 00:10:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This ftp name is already used\"\n}"}],"_postman_id":"3287e51d-5969-4c9d-92f5-9c4d4d7c340f"},{"name":"Change FTP password","id":"532392b7-d5e2-48af-8ad0-b82cb4bfd112","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"mynewpassword\"\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>/change-password","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>password (string 8-64)</td>\n<td>yes</td>\n<td>Account password</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","ftp-accounts","<account>","change-password"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"fbd8f1e3-d084-4375-9fde-2455f0a76ce7","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"mynewpassword\"\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>/change-password"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 00:16:01 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"b663b4d6-b2b3-4017-9a99-22662b7e91aa","name":"Short password","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"password\": \"abc\"\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>/change-password"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 00:17:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"password\": [\n                \"This value is too short. It should have 8 characters or more.\"\n            ]\n        }\n    }\n}"}],"_postman_id":"532392b7-d5e2-48af-8ad0-b82cb4bfd112"},{"name":"Change FTP quota","id":"62075398-7e33-4bbd-8279-bf081a63f806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"quota\": 3000\r\n}"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>/change-quota","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>quota (int, MB)</td>\n<td>yes</td>\n<td>Quota (0 for unlimited)</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","ftp-accounts","<account>","change-quota"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[],"_postman_id":"62075398-7e33-4bbd-8279-bf081a63f806"},{"name":"Lock FTP account","id":"cf887b73-e362-4861-8b11-3d80b44e3433","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>/lock","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","ftp-accounts","<account>","lock"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"4a652269-656e-4384-8ae9-4ad1c1d8aaf0","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>/lock"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 00:22:25 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"cf887b73-e362-4861-8b11-3d80b44e3433"},{"name":"Unlock FTP account","id":"13b6a65b-302c-44fa-afb4-bed69c46436e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>/unlock","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","ftp-accounts","<account>","unlock"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"f995c6b3-fa24-4fcf-a2d5-0e6d096454d6","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>/unlock"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 00:23:41 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"13b6a65b-302c-44fa-afb4-bed69c46436e"},{"name":"Delete FTP account","id":"2ef1a0d5-f826-44a3-a0b0-c36fa0f08013","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","ftp-accounts","<account>"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"eb0d312c-b7c3-4330-a1ed-4b8e33bcdfb9","name":"Working example","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 00:34:34 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"ba68182a-95fe-4de3-bbe0-8e97142fdebc","name":"Account not found","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/ftp-accounts/<account>"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Wed, 01 Mar 2023 00:34:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account not found\"\n}"}],"_postman_id":"2ef1a0d5-f826-44a3-a0b0-c36fa0f08013"}],"id":"bfd41d91-c746-48c7-a152-571063732bc7","description":"<h2 id=\"units\">Units</h2>\n<p>All API endpoints around FTP uses <strong>Megabytes (MB)</strong> as storage size units.</p>\n","_postman_id":"bfd41d91-c746-48c7-a152-571063732bc7","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"Get domain info","id":"13742d3b-a9c8-4ba0-89a7-68f92e435117","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"362aae28-0d91-4834-91ce-9d183f48b898","name":"Working example","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 03:25:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5579,\n    \"expiration\": \"2023-07-27\",\n    \"isRegisteredByUs\": true,\n    \"tariff\": \"flexi\",\n    \"ip\": \"95.168.219.16\",\n    \"dnssec\": false,\n    \"storageQuota\": 26000,\n    \"storageUsed\": 25160,\n    \"storageFree\": 840\n}\n"}],"_postman_id":"13742d3b-a9c8-4ba0-89a7-68f92e435117"},{"name":"Change PHP version","id":"473d7e79-2d35-493a-8849-fa61a888de18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"version\":\"8.2\"\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/change-php-version","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>JSON Parameter</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>version (string)</td>\n<td>yes</td>\n<td>PHP version</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","<domain>","change-php-version"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"dfdf3b20-0a23-46a0-8e95-b650eaea9c95","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"version\":\"8.2\"\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/change-php-version"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 03:19:23 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"fabdd4cc-0761-4001-b5d9-df34e5ad218f","name":"Incorrect version","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"version\":\"0.2\"\r\n}\r\n"},"url":"https://portal.vas-hosting.cz/api/v1/domains/<domain>/change-php-version"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 03:20:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"version\": [\n                \"The value you selected is not a valid choice.\"\n            ]\n        }\n    }\n}"}],"_postman_id":"473d7e79-2d35-493a-8849-fa61a888de18"},{"name":"Register domain","id":"99c9c3ba-2e64-4c53-a037-e1fdb27d24c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"domena.cz\",\r\n    \"useCredit\": true,\r\n    \"firstName\": \"Jan\",\r\n    \"lastName\": \"Novák\",\r\n    \"company\": \"Firma s.r.o.\",\r\n    \"phone\": \"+420123456789\",\r\n    \"email\": \"jan@example.cz\",\r\n    \"street\": \"Ulice 123\",\r\n    \"city\": \"Praha\",\r\n    \"zip\": \"11000\",\r\n    \"country\": \"CZ\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/domains/register","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","domains","register"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[],"_postman_id":"99c9c3ba-2e64-4c53-a037-e1fdb27d24c4"}],"id":"a115edc0-b046-403c-86e4-92049ad6d08a","description":"<h2 id=\"units\">Units</h2>\n<p>As we noted at the top of this API documentation, all units (maily around storage and its limitations) for domains and related services (everything in this section) are in <strong>Megabytes (MB)</strong>. As we count with jumping over content of this document, this information is repeated in all subsections.</p>\n","_postman_id":"a115edc0-b046-403c-86e4-92049ad6d08a","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"Servers","item":[{"name":"Labels","item":[{"name":"Get list of server labels","id":"ce07718c-0a81-4395-99fd-70573fc45c20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/labels","description":"<p>Returns all created labels and their colors. These labels could be assigned to your servers for better identification, grouping or filtering. <a href=\"https://documenter.getpostman.com/view/26076792/2s93CRJque#6b537ccb-f16f-416a-92b3-17ea3c869e0e\">Filtering servers</a> by their labels is supported directly through our API.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","labels"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"ece3bccc-8002-4faa-9e3a-bf80073591d0","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/labels"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"label-1\": {\n    \"color\": \"#ffffff\"\n  },\n  \"label-with-servers\": {\n    \"color\": \"#123456\"\n  },\n  \"db-servers\": {\n    \"color\": \"#789abc\"\n  }\n}"}],"_postman_id":"ce07718c-0a81-4395-99fd-70573fc45c20"},{"name":"Create server label","id":"7052172e-7412-4712-bf5c-9c1e58cf4d22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"<label-name>\",\n  \"color\": \"<color-in-hex-form>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels","description":"<p>Creates new server label.</p>\n<p>Name of the label (key <code>name</code>) can't contain any whitespace characters. It's restricted due to some limitations of working with labels in GUI.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","labels"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"735ed76e-93e0-457c-891b-837d33dac273","name":"Working example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"db-servers\",\n  \"color\": \"#123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"9e3d8595-1793-4e59-b7bb-cccc20ad560e","name":"Working example with default color","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"priority\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"5acc6043-2828-48d0-858c-85dbf10ef3dc","name":"Invalid color","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"workers\",\n  \"color\": \"blue\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"code\": 422,\n  \"message\": \"Request body contains an error. See context for details.\",\n  \"context\": {\n    \"validation\": {\n      \"color\": [\n        \"Invalid color format. Use # followed by 6 hexadecimal characters (e.g. #0123AB).\"\n      ]\n    }\n  }\n}"},{"id":"caa2f9f0-b0be-41c1-99b2-2802fa5ce10b","name":"Name collision","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"already-created-label\",\n  \"color\": \"#abcdef\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Label with this name already exists\"\n}"},{"id":"4b9648bf-5d37-4085-bac3-3e932e66eb61","name":"Name with whitespace chars","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"label with spaces\",\n  \"color\": \"#000111\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"code\": 422,\n  \"message\": \"Request body contains an error. See context for details.\",\n  \"context\": {\n    \"validation\": {\n      \"name\": [\n        \"Label name must not contain whitespace characters (spaces, tabs, etc.)\"\n      ]\n    }\n  }\n}"}],"_postman_id":"7052172e-7412-4712-bf5c-9c1e58cf4d22"},{"name":"Delete server label","id":"210e9644-65f5-4f72-b54b-f6e8b4976f06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}","description":"<p>Deletes an existing server label. If the label has been assigned to some servers, it is <strong>automatically unassigned</strong> before deletion. So, be careful which label you delete.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","labels","{{labelName}}"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"2fca64e3-89dc-4303-88d4-ab79940d6429","name":"Working example","originalRequest":{"method":"DELETE","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"d6280e52-927f-4acd-ab71-8c6dc48d383d","name":"Non-existent label","originalRequest":{"method":"DELETE","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Label not found\"\n}"}],"_postman_id":"210e9644-65f5-4f72-b54b-f6e8b4976f06"},{"name":"Edit server label","id":"c3392828-2663-4138-bc6e-34c03916785b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"<new-label-name>\",\n  \"color\": \"<new-color-in-hex-form>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}","description":"<p>Modifies server label.</p>\n<p>Name of the label (key <code>name</code>) can't contain any whitespace characters. It's restricted due to some limitations of working with labels in GUI.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","labels","{{labelName}}"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"57c38450-b938-475a-80e1-5e293eaf37ec","name":"Working example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"elastic-search\",\n  \"color\": \"#789abc\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"7650e433-b54c-4f4f-a0a2-f3e850179de8","name":"Working example with default color","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"redis\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"88b63d78-277d-4472-b6a3-3fdf66afca7e","name":"Name collision","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"db-servers\",\n  \"color\": \"#123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Label with this name already exists\"\n}"},{"id":"04174d90-84c8-4c9e-9c12-bf1b79f6ffb4","name":"Invalid color","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"nodejs\",\n  \"color\": \"red\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"code\": 422,\n  \"message\": \"Request body contains an error. See context for details.\",\n  \"context\": {\n    \"validation\": {\n      \"color\": [\n        \"Invalid color format. Use # followed by 6 hexadecimal characters (e.g. #0123AB).\"\n      ]\n    }\n  }\n}"},{"id":"ff00aa5b-fff6-4450-9903-c9ed7df877be","name":"Non-existent label for editing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"mail-servers\",\n  \"color\": \"#abc123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Label not found\"\n}"},{"id":"c95e963a-c74b-4c6e-a626-b1e0ad7d36d3","name":"Name with whitespaces","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"label with spaces\",\n  \"color\": \"#456789\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/labels/{{labelName}}"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"error\",\n  \"code\": 422,\n  \"message\": \"Request body contains an error. See context for details.\",\n  \"context\": {\n    \"validation\": {\n      \"name\": [\n        \"Label name must not contain whitespace characters (spaces, tabs, etc.)\"\n      ]\n    }\n  }\n}"}],"_postman_id":"c3392828-2663-4138-bc6e-34c03916785b"}],"id":"17654764-7cc9-4ea1-ae42-e2cfef10fd85","_postman_id":"17654764-7cc9-4ea1-ae42-e2cfef10fd85","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"Operating systems","item":[{"name":"Get list of supported operating systems","id":"493137a1-9d6f-44b9-8209-911897af75d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/operating-systems","description":"<p>Returns list of OSes we can automatically install for you. These operating systems could be used in API requests for server installations). If you need some special OS, you need to contact us for manual intervention.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","operating-systems"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"97f0a173-1f8c-4333-beda-2f6bdb8558cf","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/operating-systems"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"vpsc\": {\n    \"name\": \"Current Debian with VPS Center\",\n    \"distribution\": \"Debian\"\n  },\n  \"bullseye\": {\n    \"name\": \"Debian 11\",\n    \"distribution\": \"Debian\"\n  },\n  \"buster\": {\n    \"name\": \"Debian 10\",\n    \"distribution\": \"Debian\"\n  },\n  \"centos7\": {\n    \"name\": \"Centos 7\",\n    \"distribution\": \"Centos\"\n  },\n  \"centos8\": {\n    \"name\": \"Centos 8\",\n    \"distribution\": \"Centos\"\n  },\n  \"ubuntu\": {\n    \"name\": \"Ubuntu\",\n    \"distribution\": \"Ubuntu\"\n  }\n}"}],"_postman_id":"493137a1-9d6f-44b9-8209-911897af75d2"}],"id":"be06a61d-063a-45b0-a036-4bfafe594ee6","_postman_id":"be06a61d-063a-45b0-a036-4bfafe594ee6","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"IP addresses","item":[{"name":"Get list of assigned IP addresses","id":"99e6fcad-f00b-4fd8-8ae6-bff09e7c007a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/ip-addresses","description":"<p>Returns your assigned IP addresses that can be used for server installs.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","ip-addresses"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"979d1f90-757e-48dd-8f58-e7c87e6d990e","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/ip-addresses"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"ipv4\": {\n        \"46.234.112.2\": {\n            \"reverse\": \"test.vas-hosting.cz\",\n            \"availableForServerInstall\": true,\n            \"changedAt\": \"2024-06-27 19:49:37\"\n        }\n    },\n    \"ipv6\": []\n}"}],"_postman_id":"99e6fcad-f00b-4fd8-8ae6-bff09e7c007a"}],"id":"da892cd7-e364-439d-9080-765f0cd1082c","_postman_id":"da892cd7-e364-439d-9080-765f0cd1082c","description":"","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}},{"name":"Get list of servers","id":"6b537ccb-f16f-416a-92b3-17ea3c869e0e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers","description":"<p>Returns all active servers in customer's account.</p>\n<h2 id=\"filtering\">Filtering</h2>\n<p>This endpoint supports an optional <strong>filtering</strong>.</p>\n<h3 id=\"by-label-name\">By label name</h3>\n<p>You can filter servers by labels that were assigned to them before. This could be done using optional query parameter <code>labels[]</code>, which takes an array of label names. You can support one or many labels this way, but it always has to be specified like an array query parameter.</p>\n<p><strong>Correct usage:</strong></p>\n<ul>\n<li><code>labels[]=my-label</code> – Selects servers with label \"my-label\".</li>\n<li><code>labels[]=first&amp;labels[]=second</code> – Selects servers with both \"first\" and \"second\" labels.</li>\n</ul>\n<p><strong>Wrong usage:</strong></p>\n<ul>\n<li><del><code>label=my-label</code></del> – The correct name of the query parameter is <code>labels[]</code>, even for single label.</li>\n<li><del><code>labels=my-label</code></del> – You need to provide query parameter as array always, even for single label.</li>\n<li><del><code>labels[]=first,second</code></del> – When specifying two labels, you need to insert <code>labels[]</code> query parameter twice. This example would select filters with label named \"first,second\".</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers"],"host":["https://portal.vas-hosting.cz"],"query":[{"disabled":true,"description":{"content":"<p>Optional query parameters for filtering by label name</p>\n","type":"text/plain"},"key":"labels[]","value":"label-name"}],"variable":[]}},"response":[{"id":"fac00867-8c9e-4821-adde-5a2145ccf18b","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"tsd01.vas-server.cz\": {\n    \"id\": 8367,\n    \"name\": \"tsd01-john-doe\",\n    \"displayName\": \"tsd01 - Test VPS server (full vps parent)\",\n    \"dedicatedServerName\": \"tsd\",\n    \"expiration\": \"2050-01-01\",\n    \"tariff\": \"dedicated\",\n    \"operatingSystem\": \"Debian Bullseye 64bit\",\n    \"storage\": {\n      \"primary\": 100000000000\n    },\n    \"ram\": 17179869184,\n    \"status\": \"new\",\n    \"addresses\": {\n      \"ipv4\": {\n        \"46.234.108.95\": {\n          \"reverse\": null,\n          \"changedAt\": \"2024-02-07 23:32:56\"\n        }\n      },\n      \"ipv6\": []\n    },\n    \"labels\": [\n      \"label-1\",\n      \"label-with-servers\"\n    ]\n  }\n}"},{"id":"61bb3dde-64fa-4a41-8a5e-b442d3d140e8","name":"Working example with filtering by labels","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://portal.vas-hosting.cz/api/v1/servers?labels[]=label-1&labels[]=label-with-servers","host":["https://portal.vas-hosting.cz"],"path":["api","v1","servers"],"query":[{"key":"labels[]","value":"label-1","description":"Only servers with label \"label-1\""},{"key":"labels[]","value":"label-with-servers","description":"Only servers with label \"label-with-servers\""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"tsd01.vas-server.cz\": {\n    \"id\": 8367,\n    \"name\": \"tsd01-john-doe\",\n    \"displayName\": \"tsd01 - Test VPS server (full vps parent)\",\n    \"dedicatedServerName\": \"tsd\",\n    \"expiration\": \"2050-01-01\",\n    \"tariff\": \"dedicated\",\n    \"operatingSystem\": \"Debian Bullseye 64bit\",\n    \"storage\": {\n      \"primary\": 100000000000\n    },\n    \"ram\": 17179869184,\n    \"status\": \"new\",\n    \"addresses\": {\n      \"ipv4\": {\n        \"46.234.108.95\": {\n          \"reverse\": null,\n          \"changedAt\": \"2024-02-07 23:32:56\"\n        }\n      },\n      \"ipv6\": []\n    },\n    \"labels\": [\n      \"label-1\",\n      \"label-with-servers\"\n    ]\n  }\n}"}],"_postman_id":"6b537ccb-f16f-416a-92b3-17ea3c869e0e"},{"name":"Get server info","id":"77436138-f2e3-422f-a5c8-eb01fe76d76c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","<serverHostname>"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"800b29db-f5eb-4b3a-8634-59ad3acffd9e","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 03 Oct 2023 12:11:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"expiration\": \"2030-01-23\",\n    \"tariff\": \"dedicated\",\n    \"operatingSystem\": \"Debian Lenny 64bit\",\n    \"storage\": {\n        \"primary\": 232000000000\n    },\n    \"ram\": 8589934592,\n    \"status\": \"suspended\",\n    \"addresses\": {\n        \"ipv4\": {\n            \"95.168.205.136\": {\n                \"reverse\": \"smo03.vas-服务器.cz\",\n                \"changedAt\": \"2023-10-02 08:13:27\"\n            },\n            \"46.234.101.6\": {\n                \"reverse\": \"spock03.webovy-servis.cz\",\n                \"changedAt\": \"2023-10-02 08:13:27\"\n            }\n        },\n        \"ipv6\": []\n    }\n}"}],"_postman_id":"77436138-f2e3-422f-a5c8-eb01fe76d76c"},{"name":"Reboot server","id":"011c5645-070d-4128-ae90-5cb705b9f201","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/reboot","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","<serverHostname>","reboot"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"eb1013f0-86eb-4f78-9c5d-06ef4ac5c1c3","name":"Working example","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/reboot"},"status":"No Content","code":204,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 03:13:55 GMT"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":null},{"id":"bbce4a4c-b85c-402f-99db-d98abaf2888d","name":"Insufficient permissions","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/reboot"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 03 Mar 2023 03:14:34 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Nette Framework 3"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Set-Cookie","value":"_nss=1; path=/; HttpOnly; SameSite=Strict"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have insufficient permissions to reboot this server, please contact our support.\"\n}"}],"_postman_id":"011c5645-070d-4128-ae90-5cb705b9f201"},{"name":"Get list of VDS","id":"b5d554ff-1355-4ef0-bd71-2c8bb07ae465","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://portal.vas-hosting.cz/api/v1/servers/vds","description":"<p>Returns all VDS available for authenticated customer.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","vds"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"20e5cefb-845e-49f3-abb2-77e998a8019e","name":"Working example","originalRequest":{"method":"GET","header":[],"url":"https://centrum.vas-hosting.cz/api/v1/servers/vds"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"tst01.vas-server.cz\": {\n    \"id\": 8366,\n    \"name\": \"tst\",\n    \"vpsCount\": {\n      \"limit\": 80,\n      \"used\": 1,\n      \"free\": 79\n    },\n    \"storage\": {\n      \"primary\": {\n        \"size\": 1000,\n        \"used\": 10,\n        \"free\": 990\n      },\n      \"secondary\": {\n        \"size\": 2000,\n        \"used\": 0,\n        \"free\": 2000\n      }\n    },\n    \"ram\": {\n      \"limit\": 131,\n      \"used\": 1,\n      \"free\": 132\n    },\n    \"cpu\": {\n      \"limit\": 192,\n      \"used\": 3,\n      \"free\": 189\n    }\n  },\n  \"tsd01.vas-server.cz\": {\n    \"id\": 8367,\n    \"name\": \"tsd\",\n    \"vpsCount\": {\n      \"limit\": 1,\n      \"used\": 1,\n      \"free\": 0\n    },\n    \"storage\": {\n      \"primary\": {\n        \"size\": 1000,\n        \"used\": 1000,\n        \"free\": 0\n      },\n      \"secondary\": {\n        \"size\": 0,\n        \"used\": 0,\n        \"free\": 0\n      }\n    },\n    \"ram\": {\n      \"limit\": 16,\n      \"used\": 16,\n      \"free\": 0\n    },\n    \"cpu\": {\n      \"limit\": 3,\n      \"used\": 3,\n      \"free\": 0\n    }\n  }\n}"}],"_postman_id":"b5d554ff-1355-4ef0-bd71-2c8bb07ae465"},{"name":"Install VPS on VDS","id":"e22242c2-00bb-4df8-858b-c8e23b573a5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps","description":"<p>Allows to install VPS (Virtual Private Server) on VDS (Virtual Dedicated Server). Dedicated servers could be partitioned to more virtual servers, when there is enough capacity of CPU, RAM, storage and the partitioning is allowed (you need to contact us, if you need to use this feature).</p>\n<p><strong>Used units (and value restrictions):</strong></p>\n<ul>\n<li><code>cpu</code> — GHz (greater than 3)</li>\n<li><code>ram</code> — GiB (greater than or equal to 2)</li>\n<li><code>primaryStorageSize</code> — GB</li>\n<li><code>primaryStorageLocation</code> — number of VDS's disk slot (see <a href=\"https://documenter.getpostman.com/view/26076792/2s93CRJque#b5d554ff-1355-4ef0-bd71-2c8bb07ae465\">https://documenter.getpostman.com/view/26076792/2s93CRJque#b5d554ff-1355-4ef0-bd71-2c8bb07ae465</a>)</li>\n<li><code>operatingSystem</code> — OS identifier (see <a href=\"https://documenter.getpostman.com/view/26076792/2s93CRJque#493137a1-9d6f-44b9-8209-911897af75d2\">https://documenter.getpostman.com/view/26076792/2s93CRJque#493137a1-9d6f-44b9-8209-911897af75d2</a>)</li>\n<li><code>ipAddress</code> — Ip address (optional, see <a href=\"https://documenter.getpostman.com/view/26076792/2s93CRJque#da892cd7-e364-439d-9080-765f0cd1082c\">https://documenter.getpostman.com/view/26076792/2s93CRJque#da892cd7-e364-439d-9080-765f0cd1082c</a>)</li>\n</ul>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","<serverHostname>","install-vps"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"0abd3a05-aabc-4916-a4c8-04f0baf28b0a","name":"Working example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"2d017599-fdef-4bff-879e-f6f48344fe38","name":"Working example without optional arguments","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"1b209dd0-d740-4f7a-ac29-13bf9a1046ea","name":"Reaching maximum number of installed servers","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have reached the maximum number of VPS (1) on this VDS.\"\n}"},{"id":"10c6d726-aff4-4131-9f5e-99df2c2de3ea","name":"Invalid storage location","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 3,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"primaryStorageLocation\": [\n                \"The value you selected is not a valid choice.\"\n            ]\n        }\n    }\n}"},{"id":"915ce5c1-e87a-450e-b7bb-3777d06a5b23","name":"CPU frequency below minimum","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 1000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"cpu\": [\n                \"This value should be greater than or equal to 3000.\"\n            ]\n        }\n    }\n}"},{"id":"352fcf59-b131-4e21-b79a-badd31180816","name":"More CPU frequency than available","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 200000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have reached the maximum CPU frequency (192000 MHz) on this VDS.\"\n}"},{"id":"cf783860-edb6-4b38-bb49-88f713b56057","name":"RAM below minimum","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 1,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Unprocessable Entity (WebDAV) (RFC 4918)","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"code\": 422,\n    \"message\": \"Request body contains an error. See context for details.\",\n    \"context\": {\n        \"validation\": {\n            \"ram\": [\n                \"This value should be greater than or equal to 2.\"\n            ]\n        }\n    }\n}"},{"id":"03645a68-ceb9-479a-977f-398f5b918269","name":"More RAM than available","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 64,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have reached the maximum RAM (32 GB) on this VDS.\"\n}"},{"id":"dd49c23f-1c24-497f-bfbb-18aba3d3aaa2","name":"More storage than available","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 200,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have reached the maximum storage size (100 GB) in storage location 2 on this VDS.\"\n}"},{"id":"f90ea7c9-347e-48b3-882a-042eeeecce29","name":"Invalid OS identifier","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"invalid-os\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Operating system with specified identifier isn't supported. Default (when unset) is OS with VPS Center.\"\n}"},{"id":"5b34acf2-4982-4a4b-b575-46c5e699ee46","name":"Non-existent target VDS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/invalid01.vas-server.cz/install-vps"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Server \\\"invalid01.vas-server.cz\\\" not found.\"\n}"},{"id":"cf2898b0-d66b-408d-8df4-3cddf1aabb83","name":"Target server is VPS (not VDS)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"cpu\": 3000,\n  \"ram\": 4,\n  \"primaryStorageSize\": 10,\n  \"primaryStorageLocation\": 1,\n  \"operatingSystem\": \"vpsc\",\n  \"serverName\": \"Test server\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/install-vps"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"You can install VPS only on VDS via this endpoint.\"\n}"}],"_postman_id":"e22242c2-00bb-4df8-858b-c8e23b573a5b"},{"name":"Assign label to server","id":"818959ac-9fad-407f-9604-6129518e2d0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"label\": \"<label-name>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/assign-label","description":"<p>Assigns prepared label to some server.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","<serverHostname>","assign-label"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"9bf3ac10-fd3d-455f-8c12-9d4ad3d4efbe","name":"Working example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"label\": \"label-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/assign-label"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"979d3fd0-7305-42d9-b399-3ec03a211798","name":"Already assigned label","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"label\": \"label-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/assign-label"},"status":"Not Modified","code":304,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"10c80106-1c3d-4a29-8535-3a15a7329bc1","name":"Non-existent label","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"label\": \"non-existent-label\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/assign-label"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Label not found.\"\n}"},{"id":"07c8b4a6-7cd1-4339-b0c7-65989d52423d","name":"Non-existent server","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"label\": \"label-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/invalid-server.vas-server.cz/assign-label"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Server \\\"invalid-server.vas-server.cz\\\" not found.\"\n}"}],"_postman_id":"818959ac-9fad-407f-9604-6129518e2d0c"},{"name":"Unassign label from server","id":"53a753af-1f59-4b60-a941-98f1f947f136","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"<label-name>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/unassign-label","description":"<p>Unassigns previously assigned label from server.</p>\n","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}},"urlObject":{"path":["api","v1","servers","<serverHostname>","unassign-label"],"host":["https://portal.vas-hosting.cz"],"query":[],"variable":[]}},"response":[{"id":"88bf4399-6330-48a9-8b78-1ec369a5bd47","name":"Working example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"label-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/unassign-label"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"0982bc19-3d06-4a19-b968-78d17e2170bc","name":"Non-existent server","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"label-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/invalid-server.vas-server.cz/unassign-label"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Server \\\"invalid-server.vas-server.cz\\\" not found.\"\n}"},{"id":"8e06db69-897a-455e-b669-bf23d08c9d28","name":"Non-existent label","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"non-existent-label\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/unassign-label"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"Label not found.\"\n}"},{"id":"68dd8366-ae45-4a47-a09b-0f21ad742ef1","name":"Already unassigned label","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"label-1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://portal.vas-hosting.cz/api/v1/servers/<serverHostname>/unassign-label"},"status":"Not Modified","code":304,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"53a753af-1f59-4b60-a941-98f1f947f136"}],"id":"f066ae7b-a605-4989-a5d5-5bef59a88c19","description":"<h2 id=\"units\">Units</h2>\n<p>Every numbers for defining storage sizes are in <strong>Gigabytes (GB)</strong>, RAM sizes are in <strong>Gibibytes (GiB)</strong>.</p>\n","_postman_id":"f066ae7b-a605-4989-a5d5-5bef59a88c19","auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]},"isInherited":true,"source":{"_postman_id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","id":"385cb945-6e04-46b0-970b-4d04cdfdaf46","name":"Vas-Hosting API","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"X-API-Key"},{"key":"value","value":"<your_api_key>"}]}},"event":[{"listen":"prerequest","script":{"id":"76e54c21-0518-41d4-ac07-9ccd9a947d49","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"219b3d9b-4f3b-4fb3-8e30-cc74d8c4a893","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"domain","value":"<domain>"},{"key":"apiKey","value":"<your_api_key>"},{"key":"url","value":"https://portal.vas-hosting.cz"},{"key":"email","value":"<account>"},{"key":"ftp","value":"<account>"},{"key":"dnsRecordId","value":"<record_id>"},{"key":"database","value":"<database>"},{"key":"variableSymbol","value":"<variableSymbol>"},{"key":"serverHostname","value":"<serverHostname>"},{"key":"emailAlias","value":"<aliasName>"}]}