Difference between revisions of "MOR API device delete"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with '''This functionality is available from MOR 11'' MOR API Delete device <br><br> ---- <br><br> * Call: /api/device_destroy * Methods: POST, GET(…') |
|||
Line 16: | Line 16: | ||
** u - username to login. '''Required'''. | ** u - username to login. '''Required'''. | ||
** p - password to login. '''Required'''. | ** p - password to login. '''Required'''. | ||
** hash - | ** [[MOR API hash construction | hash]] - SHA1 hash constructed using params and API_Secret_Key ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''. | ||
** | ** | ||
Revision as of 13:18, 22 December 2011
This functionality is available from MOR 11
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>
- Success
- 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.
- Errors: