Auth.Api

<back to all web services

UsersRegisterDTO

The following routes are available for this service:
POST/admin/v1/users/register
UsersRegisterDTO Parameters:
NameParameterData TypeRequiredDescription
PublicKeybodystringNo
PasswordbodystringNo
PasswordRebodystringNo
Users Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
FirstNameformstringNo
LastNameformstringNo
IsEnabledformboolNo
RecordStatusIdformintNo
TwoFactorEnabledformboolNo
PhoneNumberConfirmedformboolNo
PhoneNumberformstringNo
SecurityStampformstringNo
EmailConfirmedformboolNo
NormalizedEmailformstringNo
EmailformstringNo
NormalizedUserNameformstringNo
UsernameformstringNo
LockoutEnabledformboolNo
AccessFailedCountformintNo
ApplicationLanguagesIdformint?No
TimezonesIdformint?No
UsersResponse Parameters:
NameParameterData TypeRequiredDescription
UsersformUsersNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /admin/v1/users/register HTTP/1.1 
Host: auth.mepis.si 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	publicKey: String,
	password: String,
	passwordRe: String,
	id: 0,
	firstName: String,
	lastName: String,
	isEnabled: False,
	recordStatusId: 0,
	twoFactorEnabled: False,
	phoneNumberConfirmed: False,
	phoneNumber: String,
	securityStamp: String,
	emailConfirmed: False,
	normalizedEmail: String,
	email: String,
	normalizedUserName: String,
	username: String,
	lockoutEnabled: False,
	accessFailedCount: 0,
	applicationLanguagesId: 0,
	timezonesId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	users: 
	{
		id: 0,
		firstName: String,
		lastName: String,
		isEnabled: False,
		recordStatusId: 0,
		twoFactorEnabled: False,
		phoneNumberConfirmed: False,
		phoneNumber: String,
		securityStamp: String,
		emailConfirmed: False,
		normalizedEmail: String,
		email: String,
		normalizedUserName: String,
		username: String,
		lockoutEnabled: False,
		accessFailedCount: 0,
		applicationLanguagesId: 0,
		timezonesId: 0
	}
}