Legacy Dev Forum Posts

 View Only

Sign Up

Issue with Request Bodies Not Being Reflected in the DELETE Method of Web Service DataAction

  • 1.  Issue with Request Bodies Not Being Reflected in the DELETE Method of Web Service DataAction

    Posted 06-05-2025 18:46

    tomoki.koike | 2024-10-03 13:23:54 UTC | #1

    Issue When using the DELETE method in DataAction of GenesysCloud, the content of the request body is called by API as NULL.

    Assumption You want to make an API call to a WebService using DataAction. The API uses the DELETE method and requires a request body. When the above API was executed from the Test tab of DataAction, an Error was displayed indicating that the request body was null. Also, when checking the log on the API side, we confirmed that the Log was called with the request body null.

    Situation Configure the following settings and make an API call from the TEST tab Configuration

    { “requestUrlTemplate": ”https://9xxx.execute-api.ap-southeast-1.amazonaws.com/dev/holders/${input.partyId}/policies/${input. “requestType": ‘DELETE’, } “headers": { “accept": ‘application/json’, ‘headers’: { “Authorization": ”Bearer ${input.token}” },. “requestTemplate“: ‘{\n \’receptionNos\”: [\n \“${input.receptionNo}\”\n ]\n}” }

    Test Result Error occurs where the request body is null Checking the Log on the API side, it was confirmed that Body was called with Null

    Inference Checking the log at the time of TEST execution from the web console log, it appears that Result is null when creating the request body, is this a specification of DataAction of GenesysCloud?

    { “step": 6,. “name": ‘Resolve request body template’,. “success": true, ‘result’: ” “result": ”” }, }

    I would like to know how to solve this problem.


    vpirat | 2024-10-03 20:16:58 UTC | #2

    Hi,

    This sounds consistent with HTTP specs:

    The DELETE method has no defined semantics for the message body, so this should be empty.

    See https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE#specifications So I would say this is the expected behavior.

    Regards, V.P.


    tomoki.koike | 2024-10-03 20:53:27 UTC | #3

    Thanks for sharing the information!


    system | 2024-11-03 20:53:39 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: 29682