save changes to api object