MOR API device delete

From Kolmisoft Wiki
Revision as of 13:18, 22 December 2011 by Admin (talk | contribs)
Jump to navigationJump to search

This functionality is available from MOR 11


MOR API

Delete device






  • Call: /api/device_destroy
  • Methods: POST, GET(if allowed, not recomended)
  • Params:
    • device - Device ID in MOR database, whose datas we want to delete. Required.
    • u - username to login. Required.
    • p - password to login. Required.
    • hash - SHA1 hash constructed using params and API_Secret_Key ( More described in Constructing hash). Required.
  • Returns:
    • Success
      • <status>Device was deleted</status>


    • Errors:
      • <error>Device was not found</error> - Device was not found using device. Use correct device id.
      • <error>Incorrect hash</error> - Hash was not correct. Check API_Secret_Key and order or params while concatenating hash_string.
      • <error>Registration over API is disabled</error> - Setting: Settings->API->API allow Registration, is off. Turn on API allow Registration.
      • <error>Dont be so smart</error> - User with UNIQUEHASH not found or params id not send. Enter correct id.