Only assign doc content when API response was successful