POST | /api/Command/AddProspectCommand |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AddProspectResult implements ICommandResult
{
public Integer MemberId = null;
public Boolean IsExistingMember = null;
public UUID MemberKey = null;
public String AppRegistrationId = null;
public Integer getMemberId() { return MemberId; }
public AddProspectResult setMemberId(Integer value) { this.MemberId = value; return this; }
public Boolean getIsExistingMember() { return IsExistingMember; }
public AddProspectResult setIsExistingMember(Boolean value) { this.IsExistingMember = value; return this; }
public UUID getMemberKey() { return MemberKey; }
public AddProspectResult setMemberKey(UUID value) { this.MemberKey = value; return this; }
public String getAppRegistrationId() { return AppRegistrationId; }
public AddProspectResult setAppRegistrationId(String value) { this.AppRegistrationId = value; return this; }
}
}
Java Command.AddProspectCommandRequest DTOs
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 /api/Command/AddProspectCommand HTTP/1.1
Host: api.clubmanagercentral.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Gender: Unknown,
Tags:
[
String
],
AgreedToTerms: False,
IsOnlineJoining: False,
PhotoPermission: False,
FirstAidPermission: False,
GiftAidPermission: False,
OptInEmail: False,
OptInSms: False,
OptInNotification: False,
OptInPostal: False,
OptInTelephone: False,
CustomAttributes:
[
{
CustomAttributeId: 0,
CustomAttributeValueId: 0,
InstanceId: 0,
StoredValue: String,
TypeName: String,
ReadOnly: False
}
],
MemberId: 0,
Title: String,
Forenames: String,
Surname: String,
CompanyName: String,
Address1: String,
Address2: String,
City: String,
County: String,
Country: String,
Postcode: String,
DateOfBirth: 0001-01-01,
EmailAddress: String,
HomePhone: String,
MobilePhone: String,
EmergencyContact: String,
ParentName: String,
ParentSurname: String,
MedicalInformation: String,
Recaptcha: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { MemberId: 0, IsExistingMember: False, MemberKey: 00000000000000000000000000000000, AppRegistrationId: String }