Norman Walsh <[email protected]> writes: > <[email protected]> writes: >> What is the equivalent Marklogic Rest API for the below xquery api? > > PUT a JSON or XML payload containing the user-name and password to > /manage/v2/users/user-name.
Sorry. As someone pointed out off-list, that’s not quite right. The endpoint in question is “/manage/v2/users/user-name/properties”. If you want to change the password for a user named “testuser” to “newpsw”, save this payload: <user-properties xmlns="http://marklogic.com/manage"> <user-name>testuser</user-name> <password>newpsw</password> </user-properties> in /tmp/u.xml and PUT it like so: curl -X PUT -H "content-type:application/xml" \ --data-binary @/tmp/u.xml --digest \ -u admin:admin \ http://f23-builder:8002/manage/v2/users/testuser/properties Assuming your admin password is “admin” :-) Be seeing you, norm -- Norman Walsh Lead Engineer MarkLogic Corporation Phone: +1 512 761 6676 www.marklogic.com _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
