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
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class LoginAddUserRequest
    {
        public String userName = null;
        public String firstName = null;
        public String lastName = null;
        public String displayName = null;
        public String email = null;
        public ArrayList<String> roles = null;
        public ArrayList<String> permissions = null;
        public String password = null;
        public Long requestUnixUTCTimeStamp = null;
        public RequestSignature signature = null;
        
        public String getUserName() { return userName; }
        public LoginAddUserRequest setUserName(String value) { this.userName = value; return this; }
        public String getFirstName() { return firstName; }
        public LoginAddUserRequest setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public LoginAddUserRequest setLastName(String value) { this.lastName = value; return this; }
        public String getDisplayName() { return displayName; }
        public LoginAddUserRequest setDisplayName(String value) { this.displayName = value; return this; }
        public String getEmail() { return email; }
        public LoginAddUserRequest setEmail(String value) { this.email = value; return this; }
        public ArrayList<String> getRoles() { return roles; }
        public LoginAddUserRequest setRoles(ArrayList<String> value) { this.roles = value; return this; }
        public ArrayList<String> getPermissions() { return permissions; }
        public LoginAddUserRequest setPermissions(ArrayList<String> value) { this.permissions = value; return this; }
        public String getPassword() { return password; }
        public LoginAddUserRequest setPassword(String value) { this.password = value; return this; }
        public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
        public LoginAddUserRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public LoginAddUserRequest setSignature(RequestSignature value) { this.signature = value; return this; }
    }

    public static class RequestSignature
    {
        public String systemId = null;
        public String systemSecret = null;
        public String signature = null;
        
        public String getSystemId() { return systemId; }
        public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
        public String getSystemSecret() { return systemSecret; }
        public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
        public String getSignature() { return signature; }
        public RequestSignature setSignature(String value) { this.signature = value; return this; }
    }

    public static class LoginAddUserResult
    {
        public Boolean userCreated = null;
        public String userId = null;
        public String errorMessage = null;
        
        public Boolean isUserCreated() { return userCreated; }
        public LoginAddUserResult setUserCreated(Boolean value) { this.userCreated = value; return this; }
        public String getUserId() { return userId; }
        public LoginAddUserResult setUserId(String value) { this.userId = value; return this; }
        public String getErrorMessage() { return errorMessage; }
        public LoginAddUserResult setErrorMessage(String value) { this.errorMessage = value; return this; }
    }

}

Java LoginAddUserRequest DTOs

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

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<LoginAddUserRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceInterface">
  <DisplayName>String</DisplayName>
  <Email>String</Email>
  <FirstName>String</FirstName>
  <LastName>String</LastName>
  <Password>String</Password>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Permissions>
  <RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Roles>
  <Signature xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
    <d2p1:Signature>String</d2p1:Signature>
    <d2p1:SystemId>String</d2p1:SystemId>
    <d2p1:SystemSecret>String</d2p1:SystemSecret>
  </Signature>
  <UserName>String</UserName>
</LoginAddUserRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<LoginAddUserResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceInterface">
  <ErrorMessage>String</ErrorMessage>
  <UserCreated>false</UserCreated>
  <UserId>String</UserId>
</LoginAddUserResult>