Difference between revisions of "M4 API number pool delete"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with "=Description= M2 API for deleting number pools. <br><br> =Usage= * From '''M4''' call: '''/api/number_pool_delete''' * Methods: POST, GET(if allowed, not recomended) <br><br> ===Parametres=== * u - username to login. '''Required'''. * number_pool_id - Selects Number Pool. '''Required'''. * hash – SHA1 hash constructed using '''API Secret Key''' ( More described in Constructing hash). '''Required'''....") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=Description= | =Description= | ||
API for deleting number pools. | |||
Line 7: | Line 7: | ||
* From '''M4''' call: '''/api/number_pool_delete''' | * From '''M4''' call: '''/api/number_pool_delete''' | ||
* Methods: POST, GET(if allowed, not | * Methods: POST, GET(if allowed, not recommended) | ||
<br><br> | <br><br> | ||
===Parametres=== | ===Parametres=== | ||
* u - username to | * u - username to log in. '''Required'''. | ||
* number_pool_id - Selects Number Pool. '''Required'''. | * number_pool_id - Selects Number Pool. '''Required'''. | ||
* [[MOR API hash construction | hash]] – SHA1 hash constructed using '''API Secret Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''. | * [[MOR API hash construction | hash]] – SHA1 hash constructed using '''API Secret Key''' ([[MOR API hash construction | More described in Constructing hash]]). '''Required'''. | ||
Line 33: | Line 33: | ||
</status> | </status> | ||
</page> | </page> | ||
<br><br> | |||
=See also= | |||
* [[M4 API]] |
Latest revision as of 11:25, 28 November 2022
Description
API for deleting number pools.
Usage
- From M4 call: /api/number_pool_delete
- Methods: POST, GET(if allowed, not recommended)
Parametres
- u - username to log in. Required.
- number_pool_id - Selects Number Pool. Required.
- hash – SHA1 hash constructed using API Secret Key ( More described in Constructing hash). Required.
Request
If API Secret Key = secret
You send:
HTML POST: http://<SERVER IP>/billing/api/number_pool_delete?u=admin&number_pool_id=2&hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4
Returns
Success
<?xml version="1.0" encoding="UTF-8"?> <page> <status> <success>Number Pool deleted</success> </status> </page>