Hello,
So the error is saying the body of the request is coming out empty as per the swagger description
being the sample request body on this format
{
"Name": "string",
"Priority": "High",
"SpecificContent": {},
"DeferDate": "2022-07-26T17:34:21.803Z",
"DueDate": "2022-07-26T17:34:21.803Z",
"RiskSlaDate": "2022-07-26T17:34:21.803Z",
"Reference": "string",
"Progress": "string"
}
When analyzing your request body:
$post_data = [
'itemData' => ['Name' => $queueName,
'Priority' => $queueItemInfo['Priority'],
'DeferDate' =>'2022-09-21T20:22:37.443Z',
'DueDate'=> $queueItemInfo['DueDate'],
'RiskSlaDate'=>$queueItemInfo['RiskSlaDate'],
'Progress'=> $queueItemInfo['Progress'],
'Reference'=>$queueItemInfo['Reference'],
'SpecificContent' => ['Arg1' => $arg1, 'Arg2' => $arg2]]];
I believe is being rendered like this, if that’s the case “itemData” is not defined in the API reference, therefore is saying queueItemDataDto is null
"itemData": {
"Name": "string",
"Priority": "High",
"SpecificContent": {},
"DeferDate": "2022-07-26T17:34:21.803Z",
"DueDate": "2022-07-26T17:34:21.803Z",
"RiskSlaDate": "2022-07-26T17:34:21.803Z",
"Reference": "string",
"Progress": "string"
}
not familiar with PHP (my bad if I got the language incorrectly) but have you tried sending your request body like this?
CURLOPT_POSTFIELDS => json_encode($post_data.itemData)
NOTE: my syntax may be incorrect
My recommendation is build your request from the bottom up, using as few attributes as possible and add them as you find a working point, If you haven’t, you may build and test your requests from the swagger UI before translating them into your app code. I left below a few resources.
If you are still experiencing problems, please attach your request body in JSON format and your request headers to further evaluate them.
