Updating API endpoint.