Difference between revisions of "MOR API did delete"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with "=Description= MOR API DID delete <br><br> =Usage= * Call: /api/did_delete * Methods: POST, GET(if allowed, not recommended) <br><br> ===Parametres=== * dids_id - DID ID in MOR database, whose data we want to delete. '''Required'''. * u - username for authentication. '''Required'''. * hash - SHA1 hash constructed using '''dids_id''' and '''API_Secret_Key''' ( More described in Constructing hash). '''Requ...") |
|||
Line 37: | Line 37: | ||
* <error> DID status must be terminated </error> | * <error> DID status must be terminated </error> | ||
* <error> DID was not found </error> | * <error> DID was not found </error> | ||
* <error>Cannot delete DID associated with calls</error> | |||
* <error>Cannot delete DID associated with queues</error> | |||
<br><br> | <br><br> | ||
=See also= | =See also= | ||
* [[MOR API]] | * [[MOR API]] |
Latest revision as of 12:04, 16 January 2023
Description
MOR API DID delete
Usage
- Call: /api/did_delete
- Methods: POST, GET(if allowed, not recommended)
Parametres
- dids_id - DID ID in MOR database, whose data we want to delete. Required.
- u - username for authentication. Required.
- hash - SHA1 hash constructed using dids_id and API_Secret_Key ( More described in Constructing hash). Required.
Request
We send:
HTML POST: http://<SERVER_IP>/billing/api/did_delete?u=admin&dids_id=12&&hash=f7c3bc1d808e04732adf679965ccc34ca7ae3441
NOTE in order to delete DID, it should be marked as terminated, should not contain calls and should not be assigned in Queue
Returns
Success
<?xml version="1.0" encoding="UTF-8"?> <page> <status> <status>DID successfully deleted</status> </status> </page>
Errors
- <error> DID status must be terminated </error>
- <error> DID was not found </error>
- <error>Cannot delete DID associated with calls</error>
- <error>Cannot delete DID associated with queues</error>