API - Password confirmation is required

When I try and use the API (v13.0.2) and make a call to create a new user…

https://user:password@www.example.org/nextcloud/ocs/v1.php/cloud/users

it worked for a while but then all of a sudden I am getting this response and I do not now how to get around it.

<?xml version="1.0"?>
<ocs>
    <meta>
        <status>failure</status>
        <statuscode>997</statuscode>
        <message>Password confirmation is required</message>
        <totalitems></totalitems>
        <itemsperpage></itemsperpage>
     </meta>
    <data/>
</ocs>

So far the only way I’ve found around this is go to the users page:
index.php/settings/users

and reset the user’s password (even setting it back to the same), and it will reprompt you. And then clear your cookies/sessions and re-invoke from your API.