Legacy Dev Forum Posts

 View Only

Sign Up

Post /api/v2/recording/localkeys/settings

  • 1.  Post /api/v2/recording/localkeys/settings

    Posted 06-05-2025 18:14

    Herlander_Pires | 2018-09-05 17:49:40 UTC | #1

    Hello,

    When i call the service https://developer.mypurecloud.ie/api/rest/v2/recording/index.html#postRecordingLocalkeysSettings using a bearer token that i get from oauth client credencial ( recording:encryptionKey:edit on the user Role), i always get a 400 Bad Request error.

    The input used is a Content-Type:application/json

    { "name": "myhawkModel", "url": "https://{lkm app address}/key-management/v1/decrypt", "apiId": "hawkModel", "apiKey": "{my api key}" }

    Response from purecloud:

    { "status": 400, "code": "bad.request", "message": "The requested operation failed with status 400", "contextId": "79eca4bf-b84b-4b70-a4cd-579de281965d", "details": [], "errors": [] }

    Best regards.

    Herlander Pires


    tim.smith | 2018-09-06 14:40:03 UTC | #2

    I can't tell exactly what's wrong with your request. Unfortunately, that API isn't returning the full error message (I'll file a bug for that) and the error is truncated in the logging. The part that I can see is Can not deserialize value of type java.lang.Integer from String "A valid url was not submitted or no. There's no integer in the defined contract, so I'm a bit stumped by the parsing error. This error is coming from the back end service, so this will need to go through PureCloud Care for further investigation. Be sure to explicitly mention that you've interacted here on the dev forum and your request appears to be correct per the documentation.


    Herlander_Pires | 2018-09-06 15:32:05 UTC | #3

    Hello Tim.

    I will contact Purecloud Care.

    Best regards. Herlander Pires


    system | 2018-10-07 15:44:53 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 3493