{"id":402,"date":"2014-06-06T08:43:37","date_gmt":"2014-06-06T08:43:37","guid":{"rendered":"http:\/\/kb.digitalregistra.co.id\/?page_id=402"},"modified":"2018-01-25T02:48:25","modified_gmt":"2018-01-25T02:48:25","slug":"update-forward","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/en\/api\/forward\/update-forward","title":{"rendered":"Update Forward"},"content":{"rendered":"<p><a href=\"http:\/\/kb.srs-x.com\/id\/api\/forward\/update-forward\/\"><strong>Versi Bahasa Indonesia<\/strong><\/a><\/p>\n<h2>Description<\/h2>\n<p>Update domain forwarding\u00a0record<\/p>\n<h2>Query<\/h2>\n<p>forward\/update<\/p>\n<h2>List Variable<\/h2>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-cuscosky \" >\n<thead>\r\n<tr><th >Name<\/th>\n<th >Data Type<\/th>\n<th > Required\/Optional<\/th>\n<th >Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >domain<\/td>\n<td >varchar(255)<\/td>\n<td >Required<\/td>\n<td >Nama Domain<\/td>\n<\/tr>\n\r\n<tr><td >target<\/td>\n<td >varchar(255)<\/td>\n<td >Required<\/td>\n<td >Target Forward<\/td>\n<\/tr>\n\r\n<tr><td >header<\/td>\n<td >varchar(255)<\/td>\n<td >Optional<\/td>\n<td >Header (jika menggunakan masking URL)<\/td>\n<\/tr>\n\r\n<tr><td >noframe<\/td>\n<td >varchar(255)<\/td>\n<td >Optional<\/td>\n<td >Tampilan untuk browser tanpa fasilitas iframe (jika menggunakan masking URL)<\/td>\n<\/tr>\n\r\n<tr><td >type<\/td>\n<td >varchar(255)<\/td>\n<td >Optional<\/td>\n<td >type forwarder (redirect \/ iframe)<\/td>\n<\/tr>\n\r\n<tr><td >subdomain<\/td>\n<td >boolean<\/td>\n<td >Optional<\/td>\n<td >forwarding redirect<\/td>\n<\/tr>\n\r\n<tr><td >path<\/td>\n<td >boolean<\/td>\n<td >Optional<\/td>\n<td >path redirect<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<h2>Example<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post[&amp;quot;username&amp;quot;] = 'apiusername';\r\n$post[&amp;quot;password&amp;quot;] = hash('sha256','apipassword');\r\n$post[&amp;quot;domain&amp;quot;] = 'domain.co.id'\r\n$post[&amp;quot;target&amp;quot;] = 'redirect'\r\n$url = 'http:\/\/[reseller url]\/api\/forward\/update';\r\n\r\n$ch = curl_init();\r\ncurl_setopt($ch, CURLOPT_URL, $apiurl);\r\ncurl_setopt($ch, CURLOPT_POST, 1);\r\ncurl_setopt($ch, CURLOPT_TIMEOUT, 100);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));\r\n$response = curl_exec($ch);\r\ncurl_close($ch);\r\n<\/pre>\n<h2>Example Response<\/h2>\n<p>Berhasil<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;\r\n&amp;lt;epp&amp;gt;\r\n  &amp;lt;result&amp;gt;\r\n    &amp;lt;resultCode&amp;gt;1000&amp;lt;\/resultCode&amp;gt;\r\n    &amp;lt;resultMsg&amp;gt;Command Complete Succesfully&amp;lt;\/resultMsg&amp;gt;\r\n  &amp;lt;\/result&amp;gt;\r\n  &amp;lt;resultData\/&amp;gt;\r\n&amp;lt;\/epp&amp;gt;\r\n<\/pre>\n<p>Gagal<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;\r\n&amp;lt;epp&amp;gt;\r\n  &amp;lt;result&amp;gt;\r\n    &amp;lt;resultCode&amp;gt;1001&amp;lt;\/resultCode&amp;gt;\r\n    &amp;lt;resultMsg&amp;gt;Command Failed&amp;lt;\/resultMsg&amp;gt;\r\n  &amp;lt;\/result&amp;gt;\r\n&amp;lt;\/epp&amp;gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Versi Bahasa Indonesia Description Update domain forwarding\u00a0record Query forward\/update List Variable Example Example Response Berhasil Gagal<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":393,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/402"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":7,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/402\/revisions"}],"predecessor-version":[{"id":1663,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/402\/revisions\/1663"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/393"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/media?parent=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}