Update api.php

Depending on php environment, fastly will return error because data is being sent on posts. "The requested resource xxx does not allow request data with POST requests"