| Required role: | Admin |
| POST | /partnerregister |
|---|
namespace digitaluapi.ServiceModel
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type PartnerRegisterResponse() =
member val Id:Int32 = new Int32() with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type PartnerRegister() =
[<Validate(Validator="Email")>]
member val EMail:String = null with get,set
[<Validate(Validator="[NotNull,NotEmpty]")>]
member val Name:String = null with get,set
[<Validate(Validator="NotNull")>]
member val Password:String = null with get,set
member val ConfirmPassword:String = null with get,set
[<Validate(Validator="NotNull")>]
member val Company:String = null with get,set
[<Validate(Validator="NotNull")>]
member val CurrencyId:Int32 = new Int32() with get,set
member val Roles:String[] = null with get,set
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /partnerregister HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"EMail":"String","Name":"String","Password":"String","ConfirmPassword":"String","Company":"String","CurrencyId":0,"Roles":["String"]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Id":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}