* {@getfields action_schedule_create}
*/
function civicrm_api3_action_schedule_create($params) {
+ if (!CRM_Utils_Array::value('id', $params)) {
+ // an update does not require any mandatory parameters
+ civicrm_api3_verify_one_mandatory($params,
+ NULL,
+ array(
+ 'title','mapping_id', 'entity_status', 'entity_value',
+ )
+ );
+ }
+
$ids = array();
if (isset($params['id']) && !CRM_Utils_Rule::integer($params['id'])) {
return civicrm_api3_create_error('Invalid value for ID');
*/
function civicrm_api3_action_schedule_delete($params) {
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
-}
\ No newline at end of file
+}
+
+