Step 3: Retrieve a User's Information

Let’s try editing the User you created. In the request below, we will update the User’s last name from ‘Doe’ to ‘Doehring’. Note you must include the id, firstName, lastName, username, emailAddress fields when editing a User.

PUT https://api.yextapis.com/v2/accounts/{accountId}/users/{userId}?v=YYYYMMDD&api_key=API_KEY

{ 
	"id": "testUser",
	"firstName": "John",
	"lastName": "Doehring",
	"username": "johnDoeSuperTest",
	"emailAddress": "john.doe@emails.com",
}

Similar to the Users: Create request, the response will return a 200 response with the User id in the response body like this:

{
        "id": "testUser"
}

Try making a few more update calls to see what other User details you can edit.

Feedback