Update serialize for api