| POST | /users | Create 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
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
email: String,
firstName: String,
lastName: String,
culture: String,
countryId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
userId: 00000000000000000000000000000000
}