Earlier this week I was trying to make a set_note_attachment call with the SugarCRM REST API, but I got a very strange error. The server was responding with an Error Type 20, saying that the “Module Does Not Exist,” which was bogus because I wasn’t even specifying the optional related_module_name field. Here is the data arra I used to create my original call: $data = array( ‘session’ => $session, ‘note’ => array(‘id’ => $note), ‘file’ => $file, ‘filename’ => $filename, ); As it turns out, I misread the rather confusing documentation on this specific call. In actuality, the API requires …