Difference between revisions of "MOR API number pool update"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with "=Description= MOR API for updating number pools. <br><br> =Usage= * From '''MOR X17''' call: '''/api/number_pool_update''' * Methods: POST, GET(if allowed, not recomended) <br><br> ===Parametres=== * u - username to login. '''Required'''. * number_pool_id - Selects Number Pool. '''Required'''. * name - Number Pool's name * comment - Number Pool's comment * hash – SHA1 hash constructed using '''API Secret Key''' (MOR API hash co...") |
|||
Line 11: | Line 11: | ||
===Parametres=== | ===Parametres=== | ||
Parameters that are included in hash: | |||
* u - username to login. '''Required'''. | * u - username to login. '''Required'''. | ||
Parameters that are NOT included in hash: | |||
* number_pool_id - Selects Number Pool. '''Required'''. | * number_pool_id - Selects Number Pool. '''Required'''. | ||
* name - Number Pool's name | * name - Number Pool's name | ||
Line 17: | Line 19: | ||
* [[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'''. | ||
<br><br> | <br><br> | ||
===Request=== | ===Request=== | ||
If API Secret Key = secret | If API Secret Key = secret |
Revision as of 07:31, 16 December 2024
Description
MOR API for updating number pools.
Usage
- From MOR X17 call: /api/number_pool_update
- Methods: POST, GET(if allowed, not recomended)
Parametres
Parameters that are included in hash:
- u - username to login. Required.
Parameters that are NOT included in hash:
- number_pool_id - Selects Number Pool. Required.
- name - Number Pool's name
- comment - Number Pool's comment
- 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_update?u=admin&number_pool_id=2&name=test_test2&comment=test_comment2&hash=e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4
Returns
Success
<?xml version="1.0" encoding="UTF-8"?> <page> <status> <success>Number Pool updated</success> </status> </page>