Legacy Dev Forum Posts

 View Only

Sign Up

Error 500 With POST /api/v2/telephony/providers/edges/sites Create a Site

  • 1.  Error 500 With POST /api/v2/telephony/providers/edges/sites Create a Site

    Posted 06-05-2025 18:24

    Kappen | 2023-01-31 07:45:45 UTC | #1

    I've been trying to create a site using POST /api/v2/telephony/providers/edges/sites via the API Explorer but keep receiving the following error: "The request failed with response code: 500. Message: The server encountered an unexpected condition which prevented it from fulfilling the request."

    My question is, what are required fields? I'm just trying to enter the bare minimum to create a site. According to the API Explorer, it requires: Site Name Location Name (under location definition field) Location ID (under site connection)

    What am I missing and/or mixing up?

    Everyone's input is greatly appreciated,

    Thanks!


    Dewald_Smit | 2023-01-31 16:59:23 UTC | #2

    Kappen, post:1, topic:18204
    POST /api/v2/telephony/providers/edges/sites

    The minimum required is as follows: { "name": "", "location": { "id": "" }, "mediaModel": "" }

    Note to Dev Tools team, the locationId field is missing on API Explorer. Had to manually add it on the Body JSON.

    Missing id field:


    tim.smith | 2023-01-31 14:08:48 UTC | #3

    @Kappen Please open a case with Genesys Cloud Care to investigate your error. 5xx errors cannot be investigated via the forum.

    @Dewald_Smit Please open a case with Genesys Cloud Care to report the missing property. Errors with request/response contracts must be reported via Care to be fixed.


    Kappen | 2023-01-31 17:02:18 UTC | #4

    Thank you much! Manually adding the LocationdId to the body fixed the issue right way!


    John_Carnell | 2023-02-06 18:19:12 UTC | #5


    This post was migrated from the old Developer Forum.

    ref: 18204