Richemont.Booster2.PublicApi

<back to all web services

CreateUser

Requires Authentication
The following routes are available for this service:
POST/usersCreate a new External User
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.Security.ServiceModel

Namespace Global

    Namespace Richemont.Booster2.PublicApi.Security.ServiceModel

        Public Partial Class CreateUser
            '''<Summary>
            '''User E-mail
            '''</Summary>
            <ApiMember(Description:="User E-mail", IsRequired:=true)>
            Public Overridable Property email As String

            '''<Summary>
            '''User First Name
            '''</Summary>
            <ApiMember(Description:="User First Name", IsRequired:=true)>
            Public Overridable Property firstName As String

            '''<Summary>
            '''User Last Name
            '''</Summary>
            <ApiMember(Description:="User Last Name", IsRequired:=true)>
            Public Overridable Property lastName As String

            '''<Summary>
            '''User Culture
            '''</Summary>
            <ApiMember(Description:="User Culture", IsRequired:=true)>
            Public Overridable Property culture As String

            '''<Summary>
            '''Country Id
            '''</Summary>
            <ApiMember(Description:="Country Id", IsRequired:=true)>
            Public Overridable Property countryId As String
        End Class

        Public Partial Class CreateUserResponse
            '''<Summary>
            '''Unique Identifier of the User created in Booster
            '''</Summary>
            <ApiMember(Description:="Unique Identifier of the User created in Booster", IsRequired:=true)>
            Public Overridable Property UserId As Guid
        End Class
    End Namespace
End Namespace

VB.NET CreateUser DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /users HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"email":"String","firstName":"String","lastName":"String","culture":"String","countryId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"userId":"00000000000000000000000000000000"}