Genesys Cloud - Developer Community!

 View Only

Sign Up

need help with invoking the general search api

  • 1.  need help with invoking the general search api

    Posted 03-24-2025 21:27

    Hi,

    In this general search api wiki https://developer.genesys.cloud/organization/search/general-search , it shows types value in the request can be : users, groups, and locations.

    But, I am able to use  "queues" in the types field  in the search request as well.

    This is an sample.

    POST /api/v2/search

    Request:

    {

    "query": [

    {

    "value": "jun-test-001",

    "type": "EXACT",

    "fields": [

    "name"

    ]

    }

    ],

    "types": [

    "queues"

    ]

    }

    It works and response returns the queue content..

    However, when I tried to use this search api to search Canned Responses Libraries, I encountered following error.

    Request:

    {
      "query": [
        {
          "value": "jun-test-001",
          "type": "EXACT",
          "fields": [
            "name"
          ]
        }
      ],
      "types": [
        "libraries"
      ]
    }

    Response:

    The request failed with response code: 400. Message: No enum constant com.genesys.diamond.common.elasticsearch.ClusterType.LIBRARIES

    So,

    1. May I check if anyone can share with me a full supported types list which I can use in the general search request?

    2. May I check if there is another type name to support "Library" search? (I don't want to search CannedResponse but its Library. )

    Thanks a lot in advance!

    Jun


    #PlatformAPI

    ------------------------------
    Jun Xu
    ------------------------------