Using data from API to adjust User data

Can someone tell me why this approach doesn’t work, and what other approach I could try? Thanks,

image