This topic contains 0 replies, has 1 voice, and was last updated by mdoens 7 years, 7 months ago.
- Topic
i’m using the following code, the wsse header is fine, but how to update the data?
Whatever i try as format for the $data array, i keep getting:[{“title”:”extra fields constraint”,”detail”:”This form should not contain extra fields: \”{\”email\”:\”test@doens_nl\”}\””}]
12345678910$apicall = "leademails/1"; // update e-mail with id 1.$dataUpdate = array ( 'email' => 'test@doens.nl' );$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url.$apicall);curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); //LET OP!! PATCH voor updates!!//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //voorkomt output als echocurl_setopt($ch, CURLOPT_HTTPHEADER, wsseheader($userName, $userPassword));curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($dataUpdate));$data = curl_exec($ch);$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.