Fix API changes

The API doesn't accept anymore post data when it's not necessary, therefore any post data has been removed when not needed.