Create user with API

Hello there,

I’ve used Mattermost since version 7.1 and I was able to create users using the API with the following payload:

{
	"email":"first_last@domail.tld",
	"username":"first_last_domail.tld",
	"first_name":"FirstName",
	"last_name":"LastName",
	"nickname":"ThisIsMyNick",
	"password":"password4mattermost"
}

I’ve updated to the most recent version of Mattermost and now I’m unable to create users. This is the error returned:

{
	"id":"api.user.create_user.signup_email_disabled.app_error",
	"message":"Inscri\u00e7\u00e3o com e-mail est\u00e1 desativada.",
	"detailed_error":"",
	"request_id":"y4jdsoqitpd9fc5bbwwp4ojpwo",
	"status_code":501
}

I went into the System Console->Authentication->Signup and enabled “Enable Account Creation”.
After this i get this error message:

{
	"id":"api.user.create_user.no_open_server",
	"message":"Este servidor n\u00e3o permite inscri\u00e7\u00f5es abertas.  Por favor, fale com o seu Administrador para receber um convite.",
	"detailed_error":"",
	"request_id":"5q9i1b8a6bbuf83hout88ibfta",
	"status_code":403
}

I didn’t change my server configuration and don’t want to open my server to the internet, I just want to be able to create new users through the API.

What can I do to overcome this?

Server Details:

Mattermost Version: 9.2.2
Database Schema Version: 113
Build Number: 6801073174
Database: mysql

Thanks,
David