Genesys Cloud - Developer Community!

 View Only

Sign Up

Site Number Plan Update Fails - SDK Mismatch

  • 1.  Site Number Plan Update Fails - SDK Mismatch

    Posted 3 hours ago

    Hi,

    The PUT /api/v2/telephony/providers/edges/sites/{siteId}/numberplans endpoint in the API explorer lists the parameters it requires as being in the following format:

    [
      {
        "name": "",
        "division": "",
        "description": "",
        "version": 0,
        "match": "",
        "normalizedFormat": "",
        "priority": 0,
        "numbers": [
          {
            "start": "",
            "end": ""
          }
        ],
        "digitLength": "",
        "classification": "",
        "matchType": ""
      }
    ]

    along with various other useful parameters such a state, etc.

    When trying to access this via the SDK, the method signature is much more restricted, offering only a site ID and a list of number plans (in the  Java SDK).

    I have attempted to use the SDK version to perform an update, but have only succeeded in getting a 400 response, despite supplying what I think is valid data.

    Why the difference between the two, and how can I update number plans via the SDK?


    #PlatformAPI
    #PlatformSDK

    ------------------------------
    Austen Jackson
    Software Architect
    ------------------------------