Added POST method for more generic API requests.