sam api upgrade