Server

<back to all web services

PostCreateCustomerAdmin

Users
Requires Authentication
The following routes are available for this service:
POST/api/v1/users/customerAdmin
namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2WebExt.Post

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

    [<AllowNullLiteral>]
    type PostCreateCustomerAdminResponse() = 
        member val UserId:String = null with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

    [<AllowNullLiteral>]
    type PostCreateCustomerAdmin() = 
        [<ApiMember(IsRequired=true, ParameterType="body")>]
        member val BearerToken:String = null with get,set

        [<ApiMember(IsRequired=true, ParameterType="body")>]
        member val Email:String = null with get,set

        [<ApiMember(IsRequired=true, ParameterType="body")>]
        member val CustomerGuid:String = null with get,set

F# PostCreateCustomerAdmin DTOs

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

HTTP + OTHER

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

POST /api/v1/users/customerAdmin HTTP/1.1 
Host: mar-rr-servdesk.eras-online.de 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"bearerToken":"String","email":"String","customerGuid":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"userId":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}