Legacy Dev Forum Posts

 View Only

Sign Up

Unable to create a presence

  • 1.  Unable to create a presence

    Posted 06-05-2025 18:22

    smedavaram75 | 2022-05-19 23:06:09 UTC | #1

    I am trying to use this API: POST /api/v2/presencedefinitions

    to create a secondary presence but it is throwing this error: My request: { "languageLabels": [ { "en_US": "NewBusy" }, { "en": "NewBusy" } ], "systemPresence": "Break" }

    Response: { "message": "The request could not be understood by the server due to malformed syntax.", "code": "bad.request", "status": 400, "contextId": "1d4aed3b-c796-4519-b933-ae0f232da0d5", "details": [], "errors": [] }

    Could somebody take a look and suggest what's wrong with my request? Appreciate in advance.


    Jerome.Saint-Marc | 2022-05-20 07:49:15 UTC | #2

    Hello,

    The format of your languageLabels attribute's value is incorrect. It should be like this:

    { "languageLabels": { "en_US": "NewBusy", "en": "NewBusy" }, "systemPresence": "Break" }

    This will create the secondary presence status.

    Regards,


    smedavaram75 | 2022-05-20 18:11:44 UTC | #3

    Thanks for the correction, it was really helpful.

    I actually generated that request by filling the form. Not sure if that is something that Genesys needs to look in to and correct. Just a quick knowledge sharing question on the same topic: Is it possible to create a tertiary presence statuses? I tried with the same api but got error. Was wondering if there is a different api to achieve the same.

    Thanks in advance.


    John_Carnell | 2022-05-20 18:21:58 UTC | #4

    Hi,

    Can you point us to the specific form or API Explorer example you used? This will help us check the problem and see if there is anything there for us to take a look at.

    Thanks, John Carnell Manager. Developer Engagement


    Jerome.Saint-Marc | 2022-05-20 19:25:14 UTC | #5

    Hello,

    Genesys Cloud does not support tertiary presence status. You can only create secondary statuses.

    Regards,


    smedavaram75 | 2022-05-20 21:52:48 UTC | #6

    smedavaram75, post:1, topic:14815
    I am trying to use this API: POST /api/v2/presencedefinitions

    Sure. It's the same API I have specified in the topic: POST /api/v2/presencedefinitions

    It is available as the 2nd API in this url: https://developer.genesys.cloud/useragentman/presence/

    Hope this helps. Please let me know if you want me to attach a screen shot.

    Thanks for the help. Regards.


    John_Carnell | 2022-06-01 14:09:59 UTC | #7


    This post was migrated from the old Developer Forum.

    ref: 14815