Fix client sync to support correct json payload

This fixes #271.

I think we can also remove `addApiParams` from `serverSync` to be consistent. What do you think @spikebrehm?