Legacy Dev Forum Posts

 View Only

Sign Up

Update the list of Number Plans

  • 1.  Update the list of Number Plans

    Posted 06-05-2025 19:20

    Gladys | 2019-04-12 16:13:28 UTC | #1

    Hi, I need know that if is possible add new enters in the number plan using the API This API ( /api/v2/telephony/providers/edges/sites/{siteId}/numberplans ) can help me to add new enters in the number plans of the site?.


    Becky_Powell | 2019-04-12 16:39:58 UTC | #2

    Hi Gladys,

    Have you tried using our API Explorer tool to test this call?

    You can find this call listed under Telephony Providers Edge>Providers.

    You can find the API documentation for this call here.

    Best, Becky


    Gladys | 2019-04-12 16:59:27 UTC | #3

    thanks Becky I test using API Explorer, this is the body [{ "name": "Emergences", "description": "G", "version": 0, "dateCreated": "", "dateModified": "", "modifiedBy": "", "createdBy": "", "modifiedByApp": "", "createdByApp": "", "match": "", "normalizedFormat": "", "priority": 0, "numbers": [ { "start": "09110" } ], "digitLength": { "start": "", "end": "" }, "classification": "Emergency", "matchType": "numberList" }]

    And this is the response { "status": 400, "code": "general.bad.request", "message": "The classification 'celulargg' is referenced by one or more outbound routes.", "messageWithParams": "The classification '{classification}' is referenced by one or more outbound routes.", "messageParams": { "classification": "celulargg" }, "contextId": "ce5edcf4-7935-4907-aba1-31d455c6d578", "details": [ { "errorCode": "NUMBERPLANIN_USE", "fieldName": "classification" } ], "errors": [] }

    I do not know, why there have a error with the field "classification"


    Jason_Mathison | 2019-04-12 17:01:33 UTC | #4

    Hi Gladys,

    One trick to getting the hang of an API is to open up the developer console in your browser and then make a change in the UI and see how the UI uses the API.

    --Jason


    Gladys | 2019-04-12 19:34:46 UTC | #5

    Thanks Jason I going to try it.


    Gladys | 2019-04-12 21:34:10 UTC | #6

    It´s crazy I wanted add a new enter in the number plan, but, with this API I finished deleted all the number plans of my site. Please, somebody knowk if is possible ADD a new number plan using API´s and what is the API Thanks


    tim.smith | 2019-04-12 21:42:38 UTC | #7

    Assuming you used PUT /api/v2/telephony/providers/edges/sites/{siteId}/numberplans, semantically, a PUT request replaces existing configuration with what's in the request. If you want to add to the existing configuration, you need to first retrieve the existing data, modify it, then make the PUT request. There isn't a PATCH operation for this resource.


    system | 2019-05-13 21:42:43 UTC | #8

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 4976