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
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceInterface
Imports TicketUserServices.ServiceModel

Namespace Global

    Namespace TicketUserServices.ServiceInterface

        Public Partial Class LoginAddUserRequest
            Public Sub New()
                Roles = New List(Of String)
                Permissions = New List(Of String)
            End Sub

            Public Overridable Property UserName As String
            Public Overridable Property FirstName As String
            Public Overridable Property LastName As String
            Public Overridable Property DisplayName As String
            Public Overridable Property Email As String
            Public Overridable Property Roles As List(Of String)
            Public Overridable Property Permissions As List(Of String)
            Public Overridable Property Password As String
            Public Overridable Property RequestUnixUTCTimeStamp As Long
            Public Overridable Property Signature As RequestSignature
        End Class

        Public Partial Class LoginAddUserResult
            Public Overridable Property UserCreated As Boolean
            Public Overridable Property UserId As String
            Public Overridable Property ErrorMessage As String
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel

        Public Partial Class RequestSignature
            Public Overridable Property SystemId As String
            Public Overridable Property SystemSecret As String
            Public Overridable Property Signature As String
        End Class
    End Namespace
End Namespace

VB.NET 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"}