Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
products:software:unifi-controller:api [2020/01/27 18:55]
thefluffyone Add information about port forward rule configuration
products:software:unifi-controller:api [2020/01/27 18:57] (current)
thefluffyone Fix code tags in port forward section
Line 304: Line 304:
  
 This may apply to other configurations,​ but initial testing shows that port forward rules can be enabled/​disabled using PUT against the endpoint /​api/​s/​{site}/​rest/​portforward/​{rule-id} with a body such as: This may apply to other configurations,​ but initial testing shows that port forward rules can be enabled/​disabled using PUT against the endpoint /​api/​s/​{site}/​rest/​portforward/​{rule-id} with a body such as:
-[code]{+<code>{
     "​enabled":​ true     "​enabled":​ true
-}[/code]+}</code>
  
 The rule ID can be retrieved using the above described port forwarding GET request and is found in the "​_id"​ key. The rule ID can be retrieved using the above described port forwarding GET request and is found in the "​_id"​ key.
  
 New rules can be created using POST, but be aware that there seems to be very little validation (it's possible to create entries with no information other than the fact that they'​re enabled, for example). New rules can be created using POST, but be aware that there seems to be very little validation (it's possible to create entries with no information other than the fact that they'​re enabled, for example).
  • products/software/unifi-controller/api.txt
  • Last modified: 2020/01/27 18:57
  • by thefluffyone