Soundhar M, Following up on this, generally you would use an existing RouterWorker (either by GetWorkerAsync or CreateWorkerAsync), update a field, then call UpdateWorkerAsync.
Sample of updating worker: Worker Deregistration
Kindly let us know, I'll be more than happy to follow-up with you further.
If the answer helped (pointed, you in the right direction) > please click Accept Answer to benefit the community find answers quickly to similar question_._