POST api/invitation/create-invitation

Request Information

URI Parameters

None.

Body Parameters

CreateInvitationRequest
NameDescriptionTypeAdditional information
EventName

string

None.

EventDate

date

None.

Location

string

None.

GoogleMapLink

string

None.

InviteImage

string

None.

QRCode

string

None.

UserID

integer

None.

SendDate

date

None.

SendTime

string

None.

SendQR

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EventName": "sample string 1",
  "EventDate": "2026-01-30T04:42:44.1316631+08:00",
  "Location": "sample string 3",
  "GoogleMapLink": "sample string 4",
  "InviteImage": "sample string 5",
  "QRCode": "sample string 6",
  "UserID": 7,
  "SendDate": "2026-01-30T04:42:44.1326483+08:00",
  "SendTime": "sample string 9",
  "SendQR": true
}

application/xml, text/xml

Sample:
<CreateInvitationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InviteAPI.Controllers">
  <EventDate>2026-01-30T04:42:44.1316631+08:00</EventDate>
  <EventName>sample string 1</EventName>
  <GoogleMapLink>sample string 4</GoogleMapLink>
  <InviteImage>sample string 5</InviteImage>
  <Location>sample string 3</Location>
  <QRCode>sample string 6</QRCode>
  <SendDate>2026-01-30T04:42:44.1326483+08:00</SendDate>
  <SendQR>true</SendQR>
  <SendTime>sample string 9</SendTime>
  <UserID>7</UserID>
</CreateInvitationRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateInvitationRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.