MOR API device rule delete

From Kolmisoft Wiki

Jump to: navigation, search

Contents

[edit] Description

MOR API Delete Device Rule. Can be used by Admin, reseller or accountant.

[edit] Usage

  • Call: /api/device_rule_delete
  • Methods: POST, GET(if allowed, not recomended)



[edit] Parameters

Parameters which are included into hash:

  • device_rule_id - device rule id. Required.

Note that parameters are shown in the same order as they have to be when generating the hash. Last parameter in a row is API_Secret_Key

Parameters which are not included into hash:

  • hash - SHA1 hash constructed using parameters which are listed above. Note that parameters are shown in the same order as they have to be when generating the hash. Last parameter in a row is API_Secret_Key ( More described in Constructing hash). Required.
  • u - username for authentication. Required.



[edit] Request

HTML POST: http://<SERVER_IP>/billing/api/device_rule_delete?u=admin&device_rule_id=2&hash=297dab8c386794b2e947d52affb8f576c643569e



[edit] Returns

Success

<page>
   <status>
       <success>Device rule was successfully deleted</success>
   </status>
</page>

Errors

  • <error>Incorrect hash</error> - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.
  • <error>Device rule was not found</error> - Rule was not found or User does not have permissions to manage this rule.




[edit] See also

Personal tools

Try MOR

Try M2