POST api/Sponsors

Add hole sponsorship data to the Sponsor and Sponsor Sign data tables in the TVCSGolf database.

Request Information

URI Parameters

None.

Body Parameters

SponsorshipVM
NameDescriptionTypeAdditional information
BusinessName

Sponsors business name

string

None.

FirstName

Sponsors first name

string

Required

LastName

Sponsors last name

string

Required

StreetAddress

Sponsors street address (house number and street name)

string

Required

City

Sponsors city

string

Required

State

Sponsors state

string

Required

ZipCode

Sponsors zip code (###### or #####-####)

string

Required

Phone

Sponsors phone number

string

None.

Email

Sponsors email address

string

None.

NbrSigns

Number of signs purchased by the sponsor

integer

Required

SignContent

Sign content for signs that have been purchased by the sponsor

SponsorSignVM

Required

TransactionId

The identification number of the sponsorship transaction

string

None.

TransactionDtTm

The date and time of the sponsorship transaction

date

None.

TransactionAmount

The dollar amount of the sponsorship transaction

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "BusinessName": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "StreetAddress": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "ZipCode": "sample string 7",
  "Phone": "sample string 8",
  "Email": "sample string 9",
  "NbrSigns": 10,
  "SignContent": {
    "SignText": "sample string 1"
  },
  "TransactionId": "sample string 11",
  "TransactionDtTm": "2024-11-08T03:45:35.0034431-05:00",
  "TransactionAmount": 13.0
}

application/xml, text/xml

Sample:
<SponsorshipVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TournamentRegistrationAPI.Models">
  <BusinessName>sample string 1</BusinessName>
  <City>sample string 5</City>
  <Email>sample string 9</Email>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <NbrSigns>10</NbrSigns>
  <Phone>sample string 8</Phone>
  <SignContent>
    <SignText>sample string 1</SignText>
  </SignContent>
  <State>sample string 6</State>
  <StreetAddress>sample string 4</StreetAddress>
  <TransactionAmount>13</TransactionAmount>
  <TransactionDtTm>2024-11-08T03:45:35.0034431-05:00</TransactionDtTm>
  <TransactionId>sample string 11</TransactionId>
  <ZipCode>sample string 7</ZipCode>
</SponsorshipVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SponsorshipVM
NameDescriptionTypeAdditional information
BusinessName

Sponsors business name

string

None.

FirstName

Sponsors first name

string

Required

LastName

Sponsors last name

string

Required

StreetAddress

Sponsors street address (house number and street name)

string

Required

City

Sponsors city

string

Required

State

Sponsors state

string

Required

ZipCode

Sponsors zip code (###### or #####-####)

string

Required

Phone

Sponsors phone number

string

None.

Email

Sponsors email address

string

None.

NbrSigns

Number of signs purchased by the sponsor

integer

Required

SignContent

Sign content for signs that have been purchased by the sponsor

SponsorSignVM

Required

TransactionId

The identification number of the sponsorship transaction

string

None.

TransactionDtTm

The date and time of the sponsorship transaction

date

None.

TransactionAmount

The dollar amount of the sponsorship transaction

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "BusinessName": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "StreetAddress": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "ZipCode": "sample string 7",
  "Phone": "sample string 8",
  "Email": "sample string 9",
  "NbrSigns": 10,
  "SignContent": {
    "SignText": "sample string 1"
  },
  "TransactionId": "sample string 11",
  "TransactionDtTm": "2024-11-08T03:45:35.0034431-05:00",
  "TransactionAmount": 13.0
}

application/xml, text/xml

Sample:
<SponsorshipVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TournamentRegistrationAPI.Models">
  <BusinessName>sample string 1</BusinessName>
  <City>sample string 5</City>
  <Email>sample string 9</Email>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <NbrSigns>10</NbrSigns>
  <Phone>sample string 8</Phone>
  <SignContent>
    <SignText>sample string 1</SignText>
  </SignContent>
  <State>sample string 6</State>
  <StreetAddress>sample string 4</StreetAddress>
  <TransactionAmount>13</TransactionAmount>
  <TransactionDtTm>2024-11-08T03:45:35.0034431-05:00</TransactionDtTm>
  <TransactionId>sample string 11</TransactionId>
  <ZipCode>sample string 7</ZipCode>
</SponsorshipVM>