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
namespace TicketUserServices.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type RequestSignature() = 
        member val SystemId:String = null with get,set
        member val SystemSecret:String = null with get,set
        member val Signature:String = null with get,set

    [<AllowNullLiteral>]
    type LoginAddUserRequest() = 
        member val UserName:String = null with get,set
        member val FirstName:String = null with get,set
        member val LastName:String = null with get,set
        member val DisplayName:String = null with get,set
        member val Email:String = null with get,set
        member val Roles:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val Permissions:ResizeArray<String> = new ResizeArray<String>() with get,set
        member val Password:String = null with get,set
        member val RequestUnixUTCTimeStamp:Int64 = new Int64() with get,set
        member val Signature:RequestSignature = null with get,set

    [<AllowNullLiteral>]
    type LoginAddUserResult() = 
        member val UserCreated:Boolean = new Boolean() with get,set
        member val UserId:String = null with get,set
        member val ErrorMessage:String = null with get,set

F# 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>