TicketUserServices

<back to all web services

LoginAddUserRequest

Requires Authentication
Requires the role:AdminRequires the permission:CreateUsers
The following routes are available for this service:
POST/login/create
LoginAddUserRequest Parameters:
NameParameterData TypeRequiredDescription
UserNamebodystringNo
FirstNamebodystringNo
LastNamebodystringNo
DisplayNamebodystringNo
EmailbodystringNo
RolesbodyList<string>No
PermissionsbodyList<string>No
PasswordbodystringNo
RequestUnixUTCTimeStampbodylongNo
SignaturebodyRequestSignatureNo
RequestSignature Parameters:
NameParameterData TypeRequiredDescription
SystemIdformstringNo
SystemSecretformstringNo
SignatureformstringNo
LoginAddUserResult Parameters:
NameParameterData TypeRequiredDescription
UserCreatedformboolNo
UserIdformstringNo
ErrorMessageformstringNo

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 /login/create HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	userName: String,
	firstName: String,
	lastName: String,
	displayName: String,
	email: String,
	roles: 
	[
		String
	],
	permissions: 
	[
		String
	],
	password: String,
	requestUnixUTCTimeStamp: 0,
	signature: 
	{
		systemId: String,
		systemSecret: String,
		signature: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	userCreated: False,
	userId: String,
	errorMessage: String
}