{"info":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","description":"<html><head></head><body><p>A collection holding the Openwrt JSON-RPC API calls.</p>\n<p><a href=\"https://github.com/openwrt/luci/wiki/JsonRpcHowTo\">https://github.com/openwrt/luci/wiki/JsonRpcHowTo</a></p>\n<p>Source:<br><a href=\"https://github.com/openwrt/luci/tree/openwrt-21.02/modules/luci-mod-rpc\">https://github.com/openwrt/luci/tree/openwrt-21.02/modules/luci-mod-rpc</a></p>\n<p>Official Docs:<br><a href=\"https://htmlpreview.github.io/?https://raw.githubusercontent.com/openwrt/luci/master/docs/api/modules/luci.model.uci.html\">https://htmlpreview.github.io/?https://raw.githubusercontent.com/openwrt/luci/master/docs/api/modules/luci.model.uci.html</a></p>\n<p>Lean lede Docs:<br><a href=\"https://htmlpreview.github.io/?https://raw.githubusercontent.com/openwrt/luci/master/docs/api/index.html\">https://htmlpreview.github.io/?https://raw.githubusercontent.com/openwrt/luci/master/docs/api/index.html</a></p>\n<p>Author: icyleaf<br>Website: <a href=\"https://icyleaf.com\">https://icyleaf.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14290","collectionId":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","publishedId":"SzKPUgEo","public":true,"customColor":{"top-bar":"303030","right-sidebar":"303030","highlight":"0069D6"},"publishDate":"2020-02-14T06:54:01.000Z"},"item":[{"name":"auth","item":[{"name":"login","id":"8ce545bb-bdf1-4104-a716-15a63bdfbb69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"id\": 1,\n  \"method\": \"login\",\n  \"params\": [\n    \"{{user}}\",\n    \"{{password}}\"\n  ]\n}"},"url":"{{HOST}}/auth","description":"<p>Returns a string based token.</p>\n<p><strong>Returns</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\":1,\n    \"result\":\"65e60c5a93b2f2c05e61681bf5e94b49\",\n    \"error\":null\n}\n</code></pre>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["auth"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ce545bb-bdf1-4104-a716-15a63bdfbb69"}],"id":"3d68a441-b84f-4497-8b2b-62c947c3c202","description":"<p>Only login api</p>\n","event":[{"listen":"prerequest","script":{"id":"2b99415d-f05a-4666-8792-7efe51e1a115","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5fac6aa6-6741-49f7-9dd8-bda4fc5c1ad5","type":"text/javascript","exec":[""]}}],"_postman_id":"3d68a441-b84f-4497-8b2b-62c947c3c202","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}},{"name":"uci","item":[{"name":"get","id":"6ef6cf6c-9881-4d40-8ff7-e5f594c1369a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"get\", \n\t\"params\":[\n\t\t\"network\", \"lan\", \"ipaddr\"\n\t]\n}"},"url":"{{HOST}}/ip","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["ip"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ef6cf6c-9881-4d40-8ff7-e5f594c1369a"},{"name":"get_all","id":"1647b189-d6e4-409a-842a-d67ad9af1ab0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"get_all\", \n\t\"params\":[\n\t\t\"network\"\n\t]\n}"},"url":"{{HOST}}/uci","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["uci"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1647b189-d6e4-409a-842a-d67ad9af1ab0"},{"name":"set","id":"ed48e907-2270-420a-9e95-ab310e4f9d31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"set\", \n\t\"params\":[\n\t\t\"network\", \"wan\", \"password\", \"123456\"\n\t]\n}"},"url":"{{HOST}}/uci","description":"<p>Set a value or create a named section.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["uci"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed48e907-2270-420a-9e95-ab310e4f9d31"},{"name":"add","id":"9cdfe4ba-43a0-4cfd-a420-5752d958356a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"add\", \n\t\"params\":[\n\t\t\"smartdns\", \"cfg016bb1\", \"enabled\", \"0\"\n\t]\n}"},"url":"{{HOST}}/uci","description":"<p>Add an anonymous section.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["uci"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9cdfe4ba-43a0-4cfd-a420-5752d958356a"},{"name":"commit","id":"0383e649-7f60-4a65-9d39-0c11ac062bc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\"method\":\"commit\", \"params\":[\"smartdns\"]}"},"url":"{{HOST}}/uci?auth={{token}}","description":"<p>Commit saved changes.</p>\n","urlObject":{"path":["uci"],"host":["{{HOST}}"],"query":[{"key":"auth","value":"{{token}}"}],"variable":[]}},"response":[],"_postman_id":"0383e649-7f60-4a65-9d39-0c11ac062bc3"},{"name":"changes","id":"42e301f0-d4c2-49d1-8fc6-48785f62f921","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"changes\", \n\t\"params\":[\n\t\t\"smartdns\"\n\t]\n}"},"url":"{{HOST}}/uci","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["uci"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"42e301f0-d4c2-49d1-8fc6-48785f62f921"},{"name":"delete","id":"588a5fe2-40d0-47e2-b11e-2b61dc4f70d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"delete\", \n\t\"params\":[\n\t\t\"network\", \"unknown\"\n\t]\n}"},"url":"{{HOST}}/uci","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["uci"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"588a5fe2-40d0-47e2-b11e-2b61dc4f70d1"}],"id":"e6c60fae-6fb7-4941-aed0-4e2c4f607c15","_postman_id":"e6c60fae-6fb7-4941-aed0-4e2c4f607c15","description":"","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}},{"name":"sys","item":[{"name":"user","item":[{"name":"getuser","id":"200cea65-2141-443b-9669-f620eee1fc3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"user.getuser\", \n\t\"params\":[\n\t\t\"0\"\n\t]\n}"},"url":"{{HOST}}/sys","description":"<p>Retrieve user information for given uid.</p>\n<p><strong>Returns</strong></p>\n<p>Table containing the following fields: { \"uid\", \"gid\", \"name\", \"passwd\", \"dir\", \"shell\", \"gecos\" }</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"200cea65-2141-443b-9669-f620eee1fc3c"},{"name":"getpasswd","id":"8bb7189a-1ce8-455e-a8e4-40e41322224d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"user.getpasswd\", \n\t\"params\":[\n\t\t\"{{user}}\"\n\t]\n}"},"url":"{{HOST}}/sys","description":"<p>Retrieve the current user password hash.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8bb7189a-1ce8-455e-a8e4-40e41322224d"},{"name":"setpasswd","id":"5507a7e4-e59e-477f-8df4-d21b3b5f199f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"user.setpasswd\", \n\t\"params\":[\n\t\t\"{{user}}\", \"{{password}}\"\n\t]\n}"},"url":"{{HOST}}/sys","description":"<p>Change the password of given user.</p>\n<p>Return value:\nNumber containing 0 on success and &gt;= 1 on error</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"5507a7e4-e59e-477f-8df4-d21b3b5f199f"}],"id":"4ce3186e-2db4-4bf7-856d-5044e38e9be3","_postman_id":"4ce3186e-2db4-4bf7-856d-5044e38e9be3","description":"","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}},{"name":"process","item":[{"name":"info","id":"2823b9bb-02e1-4de9-821c-2b6e8756e672","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"process.info\"\n}"},"url":"{{HOST}}/sys","description":"<p>Get the current process id.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2823b9bb-02e1-4de9-821c-2b6e8756e672"},{"name":"list","id":"252a5c60-eab5-4f69-819a-374233ccafe0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"process.list\"\n}"},"url":"{{HOST}}/sys","description":"<p>Retrieve information about currently running processes.</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"252a5c60-eab5-4f69-819a-374233ccafe0"},{"name":"signal","id":"f2ab7fa2-e65d-4555-8345-946bd86f9fd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"process.list\"\n}"},"url":"{{HOST}}/sys","description":"<p>Send a signal to a process identified by given pid.</p>\n<p><strong>Parameters</strong></p>\n<ul>\n<li>pid: Number containing the process id</li>\n<li>sig: Signal to send (default: 15 [SIGTERM])</li>\n</ul>\n<p><strong>Return values:</strong></p>\n<ol>\n<li>Boolean indicating successful operation Number </li>\n<li>containing the error code if failed</li>\n</ol>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2ab7fa2-e65d-4555-8345-946bd86f9fd8"}],"id":"74190d54-dfe5-48a9-957b-9ca3191686a4","_postman_id":"74190d54-dfe5-48a9-957b-9ca3191686a4","description":"","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}},{"name":"net","item":[{"name":"devices","id":"148a590c-9786-4ed7-9326-b96c7f7c700b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"net.devices\"\n}"},"url":"{{HOST}}/sys","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"148a590c-9786-4ed7-9326-b96c7f7c700b"},{"name":"host_hints","id":"13b86f6b-6273-4aa1-b97a-83f1d171611e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"net.ipv4_hints\"\n}"},"url":"{{HOST}}/sys","description":"<p>Returns a two-dimensional table of host hints.</p>\n<p><strong>Return value:</strong></p>\n<p>Table of table containing known hosts from various sources, indexed by mac address. Each subtable contains at least one of the fields \"name\", \"ipv4\" or \"ipv6\".</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"13b86f6b-6273-4aa1-b97a-83f1d171611e"},{"name":"ipv4_hints","id":"004545d4-0d40-4a80-8f56-ec73de33d74b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"net.ipv4_hints\"\n}"},"url":"{{HOST}}/sys","description":"<p>Returns a two-dimensional table of IPv4 address hints.</p>\n<p><strong>Return value:</strong></p>\n<p>Table of table containing known hosts from various sources. Each entry contains the values in the following order: [ \"ip\", \"name\" ]</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"004545d4-0d40-4a80-8f56-ec73de33d74b"},{"name":"mac_hints","id":"eccd2758-a911-4c8d-9e6d-7d03883f738d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"net.mac_hints\"\n}"},"url":"{{HOST}}/sys","description":"<p>Returns a two-dimensional table of mac address hints.</p>\n<p><strong>Return value:</strong></p>\n<p>Table of table containing known hosts from various sources. Each entry contains the values in the following order: [ \"mac\", \"name\" ]</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eccd2758-a911-4c8d-9e6d-7d03883f738d"},{"name":"conntrack","id":"88e55dfa-19c0-4ec4-b56c-c39bd8f146f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"net.conntrack\"\n}"},"url":"{{HOST}}/sys","description":"<p>Returns conntrack information</p>\n<p><strong>Return value:</strong></p>\n<p>Table with the currently tracked IP connections</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"88e55dfa-19c0-4ec4-b56c-c39bd8f146f5"}],"id":"be19ac00-5fc7-482b-b054-59136ed532e4","_postman_id":"be19ac00-5fc7-482b-b054-59136ed532e4","description":"","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}},{"name":"exec_examples","item":[{"name":"system_board","id":"815680e4-41cb-4142-b0fc-8be1404e8ff8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\"method\":\"exec\", \"params\":[\"ubus call system board\"]}"},"url":"{{HOST}}/sys","description":"<p>Execute a given shell command and capture its standard output</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"815680e4-41cb-4142-b0fc-8be1404e8ff8"},{"name":"system_info","id":"fc27fc33-5b3e-4d02-8285-85f17fa9dc0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\"method\":\"exec\", \"params\":[\"ubus call system info\"]}"},"url":"{{HOST}}/sys","description":"<p>Execute a given shell command and capture its standard output</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc27fc33-5b3e-4d02-8285-85f17fa9dc0a"}],"id":"6834ee4d-6dd3-483a-875f-a1c8dbb4d358","_postman_id":"6834ee4d-6dd3-483a-875f-a1c8dbb4d358","description":"","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}},{"name":"exec","id":"d30dabaa-658d-4a05-aa5e-7cc83a2a7c6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"method\":\"exec\", \n    \"params\":[\n        \"date\"\n    ]\n}"},"url":"{{HOST}}/sys","description":"<p>Execute a given shell command and capture its standard output</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d30dabaa-658d-4a05-aa5e-7cc83a2a7c6f"},{"name":"call","id":"b96e6e25-e109-4d5f-88e9-79a11e741ac9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"call\", \n\t\"params\":[\n        \"pwd\"\n    ]\n}"},"url":"{{HOST}}/sys","description":"<p>Execute a given shell command and return the error code</p>\n<p><strong>Parameters</strong></p>\n<ul>\n<li>...: Command to call</li>\n</ul>\n<p><strong>Return value:</strong></p>\n<p>Error code of the command</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b96e6e25-e109-4d5f-88e9-79a11e741ac9"},{"name":"getenv","id":"bfea597a-547d-4f0f-a356-9e14b7e52e48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"getenv\",\n    \"params\":[\n        \"SERVER_ADDR\"\n    ]\n}"},"url":"{{HOST}}/sys","description":"<p>Retrieve environment variables. If no variable is given then a table containing the whole environment is returned otherwise this function returns the corresponding string value for the given name or nil if no such variable exists.</p>\n<p><strong>Parameters</strong></p>\n<ul>\n<li>var: Name of the environment variable to retrieve (optional)</li>\n</ul>\n<p><strong>Return values:</strong></p>\n<ol>\n<li>String containing the value of the specified variable</li>\n<li>Table containing all variables if no variable name is given</li>\n</ol>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfea597a-547d-4f0f-a356-9e14b7e52e48"},{"name":"uptime","id":"bd425508-b8b4-4cf7-8dec-2a879184f77d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\"method\":\"uptime\"}"},"url":"{{HOST}}/sys","description":"<p>Execute a given shell command and capture its standard output</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd425508-b8b4-4cf7-8dec-2a879184f77d"},{"name":"syslog","id":"77d2fdf0-6d6f-4c6f-b271-68b4a873e99f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\"method\":\"syslog\"}"},"url":"{{HOST}}/sys","description":"<p>Retrieves the output of the \"logread\" command.</p>\n<p><strong>Return value:</strong></p>\n<p>String containing the current log buffer</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"77d2fdf0-6d6f-4c6f-b271-68b4a873e99f"},{"name":"reboot","id":"106a803a-e858-449e-a0dd-18b98df841a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\"method\":\"reboot\"}"},"url":"{{HOST}}/sys","description":"<p>Initiate a system reboot.</p>\n<p><strong>Return value:</strong></p>\n<p>Return value of os.execute()</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"106a803a-e858-449e-a0dd-18b98df841a2"},{"name":"dmesg","id":"16c8b7ee-d51c-4bce-83f3-ae74e7d0f271","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\"method\":\"dmesg\"}"},"url":"{{HOST}}/sys","description":"<p>Retrieves the output of the \"dmesg\" command.</p>\n<p><strong>Return value:</strong></p>\n<p>String containing the current log buffer</p>\n","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["sys"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"16c8b7ee-d51c-4bce-83f3-ae74e7d0f271"}],"id":"43215086-9c90-4173-aff6-3cd977af10fa","_postman_id":"43215086-9c90-4173-aff6-3cd977af10fa","description":"","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}},{"name":"ipkg","item":[{"name":"list_all","id":"3f12eff8-6955-40c5-ac9c-944a1447544f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"list_all\",\n\t\"params\": [\n\t\t\"pat\", \"nil\"\n\t]\n}"},"url":"{{HOST}}/ipkg","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["ipkg"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f12eff8-6955-40c5-ac9c-944a1447544f"},{"name":"info","id":"8bbec661-b9f0-4e43-89bd-cca14188ad46","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"info\",\n\t\"params\": [\n\t\t\"luci-mod-rpc\"\n\t]\n}"},"url":"{{HOST}}/ipkg","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["ipkg"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8bbec661-b9f0-4e43-89bd-cca14188ad46"},{"name":"status","id":"11111259-2eb5-4b99-82cc-74b1673880c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"status\",\n\t\"params\": [\n\t\t\"luci-mod-rpc\"\n\t]\n}"},"url":"{{HOST}}/ipkg","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["ipkg"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"11111259-2eb5-4b99-82cc-74b1673880c6"},{"name":"update","id":"f66d1afe-2daa-4c8f-b50d-73a75601b58d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"update\"\n}"},"url":"{{HOST}}/ipkg","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["ipkg"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f66d1afe-2daa-4c8f-b50d-73a75601b58d"},{"name":"install","id":"e3765f51-f65b-4559-b626-c9b03efc978c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"method\":\"install\",\n\t\"params\": [\n\t\t\"luci-mod-rpc\"\n\t]\n}"},"url":"{{HOST}}/ipkg","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}},"urlObject":{"path":["ipkg"],"host":["{{HOST}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3765f51-f65b-4559-b626-c9b03efc978c"}],"id":"2405306e-fe74-4731-bde4-6c27edad9a0f","_postman_id":"2405306e-fe74-4731-bde4-6c27edad9a0f","description":"","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}},{"name":"fs","item":[],"id":"ce1370df-f55f-4f9f-96ce-d9eac8d74944","_postman_id":"ce1370df-f55f-4f9f-96ce-d9eac8d74944","description":"","auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","id":"fcf2e16e-8e4c-40b1-963c-6dda7895a927","name":"Openwrt JSON-RPC","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"value":"{{token}}","key":"<key>"}},"event":[{"listen":"prerequest","script":{"id":"485bc922-a4d1-4974-ad60-870393cca95d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f267472c-d10f-487b-b56f-a3019a44c98b","type":"text/javascript","exec":[""]}}]}