| Required role: | Admin |
| POST | /partnerregister |
|---|
import Foundation
import ServiceStack
public class PartnerRegister : Codable
{
// @Validate(Validator="Email")
public var eMail:String
// @Validate(Validator="[NotNull,NotEmpty]")
public var name:String
// @Validate(Validator="NotNull")
public var password:String
public var confirmPassword:String
// @Validate(Validator="NotNull")
public var company:String
// @Validate(Validator="NotNull")
public var currencyId:Int
public var roles:[String]
required public init(){}
}
public class PartnerRegisterResponse : Codable
{
public var id:Int
public var responseStatus:ResponseStatus
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"EMail":"String","Name":"String","Password":"String","ConfirmPassword":"String","Company":"String","CurrencyId":0,"Roles":["String"]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}