POST api/User/AddUser

Request Information

URI Parameters

None.

Body Parameters

CGUser
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

UserName

string

None.

PasswordHash

string

None.

SecurityStamp

string

None.

PassportId

integer

None.

FirstName

string

None.

LastName

string

None.

CgRegionId

integer

None.

CgRegion

string

None.

IsEmailSubscription

boolean

None.

BillingToken

BillingToken

None.

Region

string

None.

Gender

string

None.

MyGolfPassword

string

None.

CountryId

integer

None.

NonAffiliateId

integer

None.

RegionId

integer

None.

IsProfileComplete

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "04483c2e-f25f-419e-b07b-9129bff43483",
  "UserName": "sample string 2",
  "PasswordHash": "sample string 3",
  "SecurityStamp": "sample string 4",
  "PassportId": 5,
  "FirstName": "sample string 6",
  "LastName": "sample string 7",
  "CgRegionId": 8,
  "CgRegion": "sample string 9",
  "IsEmailSubscription": true,
  "BillingToken": {
    "BillingTokenId": 1,
    "DpsBillingId": "sample string 2",
    "CardType": "sample string 3",
    "CardHolderName": "sample string 4",
    "CreditCardNumber": "sample string 5"
  },
  "Region": "sample string 10",
  "Gender": "sample string 11",
  "MyGolfPassword": "sample string 12",
  "CountryId": 13,
  "NonAffiliateId": 14,
  "RegionId": 15,
  "IsProfileComplete": true
}

application/xml, text/xml

Sample:
<CGUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.Data">
  <BillingToken>
    <BillingTokenId>1</BillingTokenId>
    <CardHolderName>sample string 4</CardHolderName>
    <CardType>sample string 3</CardType>
    <CreditCardNumber>sample string 5</CreditCardNumber>
    <DpsBillingId>sample string 2</DpsBillingId>
  </BillingToken>
  <CgRegion>sample string 9</CgRegion>
  <CgRegionId>8</CgRegionId>
  <CountryId>13</CountryId>
  <FirstName>sample string 6</FirstName>
  <Gender>sample string 11</Gender>
  <IsEmailSubscription>true</IsEmailSubscription>
  <IsProfileComplete>true</IsProfileComplete>
  <LastName>sample string 7</LastName>
  <MyGolfPassword>sample string 12</MyGolfPassword>
  <NonAffiliateId>14</NonAffiliateId>
  <PassportId>5</PassportId>
  <PasswordHash>sample string 3</PasswordHash>
  <Region>sample string 10</Region>
  <RegionId>15</RegionId>
  <SecurityStamp>sample string 4</SecurityStamp>
  <UserId>04483c2e-f25f-419e-b07b-9129bff43483</UserId>
  <UserName>sample string 2</UserName>
</CGUser>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddUserResponse
NameDescriptionTypeAdditional information
ResponseObject

CGUser

None.

Code

ResponseCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseObject": {
    "UserId": "4bfc6fa2-5f6f-4157-a3ed-5709bd6c3fe4",
    "UserName": "sample string 2",
    "PasswordHash": "sample string 3",
    "SecurityStamp": "sample string 4",
    "PassportId": 5,
    "FirstName": "sample string 6",
    "LastName": "sample string 7",
    "CgRegionId": 8,
    "CgRegion": "sample string 9",
    "IsEmailSubscription": true,
    "BillingToken": {
      "BillingTokenId": 1,
      "DpsBillingId": "sample string 2",
      "CardType": "sample string 3",
      "CardHolderName": "sample string 4",
      "CreditCardNumber": "sample string 5"
    },
    "Region": "sample string 10",
    "Gender": "sample string 11",
    "MyGolfPassword": "sample string 12",
    "CountryId": 13,
    "NonAffiliateId": 14,
    "RegionId": 15,
    "IsProfileComplete": true
  },
  "Code": 0,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<AddUserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.CasualGolf.WebApi.Contracts">
  <Code>None</Code>
  <Message>sample string 1</Message>
  <ResponseObject xmlns:d2p1="http://schemas.datacontract.org/2004/07/DotGolf.Data">
    <d2p1:BillingToken>
      <d2p1:BillingTokenId>1</d2p1:BillingTokenId>
      <d2p1:CardHolderName>sample string 4</d2p1:CardHolderName>
      <d2p1:CardType>sample string 3</d2p1:CardType>
      <d2p1:CreditCardNumber>sample string 5</d2p1:CreditCardNumber>
      <d2p1:DpsBillingId>sample string 2</d2p1:DpsBillingId>
    </d2p1:BillingToken>
    <d2p1:CgRegion>sample string 9</d2p1:CgRegion>
    <d2p1:CgRegionId>8</d2p1:CgRegionId>
    <d2p1:CountryId>13</d2p1:CountryId>
    <d2p1:FirstName>sample string 6</d2p1:FirstName>
    <d2p1:Gender>sample string 11</d2p1:Gender>
    <d2p1:IsEmailSubscription>true</d2p1:IsEmailSubscription>
    <d2p1:IsProfileComplete>true</d2p1:IsProfileComplete>
    <d2p1:LastName>sample string 7</d2p1:LastName>
    <d2p1:MyGolfPassword>sample string 12</d2p1:MyGolfPassword>
    <d2p1:NonAffiliateId>14</d2p1:NonAffiliateId>
    <d2p1:PassportId>5</d2p1:PassportId>
    <d2p1:PasswordHash>sample string 3</d2p1:PasswordHash>
    <d2p1:Region>sample string 10</d2p1:Region>
    <d2p1:RegionId>15</d2p1:RegionId>
    <d2p1:SecurityStamp>sample string 4</d2p1:SecurityStamp>
    <d2p1:UserId>4bfc6fa2-5f6f-4157-a3ed-5709bd6c3fe4</d2p1:UserId>
    <d2p1:UserName>sample string 2</d2p1:UserName>
  </ResponseObject>
</AddUserResponse>