M4 API cp delete

From Kolmisoft Wiki
Revision as of 12:44, 7 November 2022 by Dmitrij (talk | contribs) (Created page with "=Description= M4 API Device (Connection Point) delete <br><br> =Usage= * Call: '''/api/cp_delete''' * Methods: POST, GET(if allowed, not recommended) <br><br> ===Parameters=== * u - username for authentication. '''Required'''. * cp_id – connection point id. '''Required'''. <br><br> ===Request=== We have API Secret Key = 456789, cp_id = 11 We send: HTML POST: http://<SERVER_IP>/billing/api/cp_delete?u=admin&cp_id=11&hash=65fd575c441513bd114b84c7dbdb01e0f2716d2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

M4 API Device (Connection Point) delete

Usage

  • Call: /api/cp_delete
  • Methods: POST, GET(if allowed, not recommended)



Parameters

  • u - username for authentication. Required.
  • cp_id – connection point id. Required.



Request

We have API Secret Key = 456789, cp_id = 11

We send:

HTML POST: http://<SERVER_IP>/billing/api/cp_delete?u=admin&cp_id=11&hash=65fd575c441513bd114b84c7dbdb01e0f2716d27

* Note that username is not included in hash

Returns

Success

<?xml version="1.0" encoding="UTF-8"?> <page>

 <status>
   <status>Connection Point deleted</status>
 </status>

</page>




See also