API Explorer V3 Syntax Error on Contact Lookup with Group
I was making API queries today and found that the API explorer creates requests such as :
$result = civicrm_api3('Contact', 'get', [ 'debug' => 1, 'sequential' => 1, 'id' => 300, 'group' => ['IS NULL' => 1], 'options' => ['limit' => 100000], ]);
However, this leads to a syntax error since the property it wants to be querying for is groups not group. Doing the following locally fixes the error:
$result = civicrm_api3('Contact', 'get', [ 'debug' => 1, 'sequential' => 1, 'id' => 300, 'groups' => ['IS NULL' => 1], 'options' => ['limit' => 100000], ]);