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

export class RequestSignature
{
    public systemId?: string;
    public systemSecret?: string;
    public signature?: string;

    public constructor(init?: Partial<RequestSignature>) { (Object as any).assign(this, init); }
}

export class LoginAddUserRequest
{
    public userName?: string;
    public firstName?: string;
    public lastName?: string;
    public displayName?: string;
    public email?: string;
    public roles?: string[];
    public permissions?: string[];
    public password?: string;
    public requestUnixUTCTimeStamp?: number;
    public signature?: RequestSignature;

    public constructor(init?: Partial<LoginAddUserRequest>) { (Object as any).assign(this, init); }
}

export class LoginAddUserResult
{
    public userCreated?: boolean;
    public userId?: string;
    public errorMessage?: string;

    public constructor(init?: Partial<LoginAddUserResult>) { (Object as any).assign(this, init); }
}

TypeScript LoginAddUserRequest DTOs

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

HTTP + CSV

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/csv
Content-Type: text/csv
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/csv
Content-Length: length

{"userCreated":false,"userId":"String","errorMessage":"String"}