The POST /environments/{environmentId}/users/{userId} endpoint is called by an administrator or an application to unlock a user’s account. This operation uses the application/vnd.pingidentity.user.account.unlock+json custom media type as the content type in the request header.

The sample shows the POST /environments/{environmentId}/users/{userId} operation to unlock an account for the user identified by the user ID and environment ID.

This POST request does not require any attribute values in the request body. It returns a 200 OK message when successful and generates a USER.UNLOCKED event.