civirulerule create api gives unexpected output
The return value of civirulerule create api call returns all parameters of the created object directly. Other api calls return this information packaged in an array. As a result of this the count return value is also wrong, it returns the number of parameters in the return value instead of the number of created items.
As an example: this is the result of a contact create api call, compared to the civirulerule create api call: