Legacy Dev Forum Posts

 View Only

Sign Up

PUT /api/v2/telephony/providers/edges/sites/{siteId}/numberplans

  • 1.  PUT /api/v2/telephony/providers/edges/sites/{siteId}/numberplans

    Posted 06-05-2025 18:34

    GavinBaumanis | 2025-03-12 23:46:20 UTC | #1

    Hi Everyone,

    I am getting a response 400 after attempting to add an extra number plan - using the Javascript SDK, to install new Premium App.

    (The creation of some of our GC artefacts is successful - and others are failing.)

    The only error in the network logs, captured suring the install - is a 400 response for the PUT. Where is seems to state there is a cloudfront error.

    I have read the previous messages that I can find on this issue. We "are" using a GET, first, Then adding in a new numberplan Then submittung the new data via a PUT.

    Our process has worked successfully for the past few years, now - failing for a new install / new organisation's usage of our application. We are NOT using the APP Foundry for this install.

    There is an extra "weirdness" I have noticed in the PUT, too. The new organisation is in Australia. Australia's emergency number is "000"

    The organisation has a number assigned for "Emergency" - it is correct for Australia : "000".

    Yet in the PUT API call I notice that the Emergency number is being set as "911".

    We are NOT programmatically replacing the "000" with "911". I am GUESSING that the cloudfront error - is giving us a cached version of data that is incorrect for our region??? Does anyone have any ideas?

    Here is the network log of the GET and it's response

    "request": {
              "method": "GET",
              "url": "https://api.mypurecloud.com.au/api/v2/telephony/providers/edges/sites/<siteID>/numberplans",
              "httpVersion": "HTTP/1.1",
              ...
    
    response": {
              "status": 200,
              "statusText": "OK",
              "httpVersion": "HTTP/1.1",
              ...

    Unfortunately the retruned data is not exposed in the network logging.

    And here is the PUT and it's response.

    "request": {
              "method": "PUT",
              "url": "https://api.mypurecloud.com.au/api/v2/telephony/providers/edges/sites/f87f5d96-02f9-4176-94fd-244ec0cdb8be/numberplans",
              "httpVersion": "HTTP/1.1", 
              ...
    
              "response": {
              "status": 400,
              "statusText": "Bad Request",
              "httpVersion": "HTTP/1.1",
              "headers": [
                {
                  "name": "Access-Control-Allow-Headers",
                  "value": "Origin, X-Requested-With, Content-Type, Accept, Authorization, DNT, User-Agent, Keep-Alive, Cache-Control, ININ-Client-Path, Genesys-App"
                },
                {
                  "name": "Access-Control-Allow-Methods",
                  "value": "GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH"
                },
                {
                  "name": "Access-Control-Allow-Origin",
                  "value": "https://genesyscloud-au.centracx.com"
                },
                {
                  "name": "Access-Control-Expose-Headers",
                  "value": "Retry-After,inin-correlation-id"
                },
                {
                  "name": "Access-Control-Max-Age",
                  "value": "86400"
                },
                {
                  "name": "Cache-Control",
                  "value": "no-cache, no-store, must-revalidate"
                },
                {
                  "name": "Connection",
                  "value": "keep-alive"
                },
                {
                  "name": "Content-Length",
                  "value": "172"
                },
                {
                  "name": "Content-Type",
                  "value": "application/json"
                },
                {
                  "name": "Date",
                  "value": "Wed, 12 Mar 2025 00:56:59 GMT"
                },
                {
                  "name": "ININ-Correlation-Id",
                  "value": "b33e9a2f-ed71-4f1c-bc24-5c88741683d4"
                },
                {
                  "name": "Strict-Transport-Security",
                  "value": "max-age=31536000; includeSubDomains"
                },
                {
                  "name": "Via",
                  "value": "1.1 fd52efac0e72eb0d0b1148d8f877dd9e.cloudfront.net (CloudFront)"
                },
                {
                  "name": "X-Amz-Cf-Id",
                  "value": "K_ESsYMl7DsTOP8ZpxyBoyf-IgHN2qxh6n1yhhfsohcb_IkQXJnryg=="
                },
                {
                  "name": "X-Amz-Cf-Pop",
                  "value": "SYD62-P3"
                },
                {
                  "name": "X-Cache",
                  "value": "Error from cloudfront"
                }
              ],

    Thanks for your help.


    system | 2025-04-11 23:46:44 UTC | #2

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


    This post was migrated from the old Developer Forum.

    ref: 32185