How to pass text for a password field in restconf post body data

I tried setting the password for a user using CLI
aaa authentication users abcd config set-password
It prompted me for a password on the CLI and commit was successful after giving the password.
I am using tailf:cli-only-in-autowizard;

How can I make this operation work from RESTCONF.
How do I send the password data thru REST call. When I try to send the plain text I am receiving an application error saying malformed-message.

Prefix the clear text with $0$
See the confd_types(3) man page under section “The iana-crypt-hash YANG module”

1 Like