So for a start the API names are different.
I'm then doing a PHP Curl PUT. Using this endpoint and data...
// Prepare the data for the Check_Ins1 entry
$checkInData1 = [
"data" => [
[
"Name" => "Portal Submission", // Mandatory field for Check-In Name
"Contact" => $zohoContactId, // Reference to the Contact
"What_is_your_body_weight_today" => $measurement_weight,
"What_is_your_waist_measurement_today" => $measurement_waist,
"Side_Effects" => $side_effect_experienced,
"Other_if_Applicable" => $q5,
"Side_Effect_Experienced" => implode(",", $formatted_side_effects) // Multiselect field
]
]
];
Which gives me this error....
{"code":"INVALID_DATA","details":{},"message":"the module name given seems to be invalid","status":"error"}
Error updating Weekly Checkin: {"code":"INVALID_DATA","details":[],"message":"the module name given seems to be invalid","status":"error"}
Im slightly pulling my hair out now. No matter what I do, I get an error. If I change the endpoint to Check_Ins1 I get this error....
{"code":"INVALID_DATA","details":{},"message":"the relation name given seems to be invalid","status":"error"}
Error updating Weekly Checkin: {"code":"INVALID_DATA","details":[],"message":"the relation name given seems to be invalid","status":"error"}