Update Custom Dimensions for specific Userid

Hi guys,

Is there a way to update a custom dimension for a specific userid?

Let’s say I have a visitor with userid= “testuser” with a custom dimension named “status” whos value is set “active” and I want to change it , is it possible to change it thru api?