POST api/Event/Create
Request Information
URI Parameters
None.
Body Parameters
EventFormViewName | Description | Type | Additional information |
---|---|---|---|
VenueId | integer |
Required |
|
EventTitle | string |
Required |
|
CompanyName | string |
None. |
|
HostTypeId | HostTypeEnum |
Required |
|
EventTypeId | EventTypeEnum |
Required |
|
AmenityIds | Collection of integer |
None. |
|
Attendance | integer |
None. |
|
ArrangementTypeId | integer |
None. |
|
BudgetTypeId | BudgetTypeEnum |
Required |
|
StartDate | date |
None. |
|
StartTime | time interval |
None. |
|
FinishDate | date |
None. |
|
FinishTime | time interval |
None. |
|
PackageTypeId | integer |
Required |
|
MinBudget | decimal number |
None. |
|
MaxBudget | decimal number |
None. |
|
NightNum | integer |
None. |
|
RoomNum | integer |
None. |
|
MoreDetail | string |
None. |
|
AllowOpenBid | boolean |
None. |
|
FlexibleDate | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "venueId": 1, "eventTitle": "sample string 1", "companyName": "sample string 2", "hostTypeId": 0, "eventTypeId": 18, "amenityIds": [ 1, 2 ], "attendance": 3, "arrangementTypeId": 4, "budgetTypeId": 0, "startDate": "2025-08-27T05:07:24.4018624+00:00", "startTime": "00:00:00.1234567", "finishDate": "2025-08-27T05:07:24.4018624+00:00", "finishTime": "00:00:00.1234567", "packageTypeId": 9, "minBudget": 1.1, "maxBudget": 1.1, "nightNum": 1, "roomNum": 1, "moreDetail": "sample string 10", "allowOpenBid": true, "flexibleDate": true }
text/html
Sample:
{"venueId":1,"eventTitle":"sample string 1","companyName":"sample string 2","hostTypeId":0,"eventTypeId":18,"amenityIds":[1,2],"attendance":3,"arrangementTypeId":4,"budgetTypeId":0,"startDate":"2025-08-27T05:07:24.4018624+00:00","startTime":"00:00:00.1234567","finishDate":"2025-08-27T05:07:24.4018624+00:00","finishTime":"00:00:00.1234567","packageTypeId":9,"minBudget":1.1,"maxBudget":1.1,"nightNum":1,"roomNum":1,"moreDetail":"sample string 10","allowOpenBid":true,"flexibleDate":true}
application/xml, text/xml
Sample:
<EventController.EventFormView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Api.Controllers"> <AllowOpenBid>true</AllowOpenBid> <AmenityIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </AmenityIds> <ArrangementTypeId>4</ArrangementTypeId> <Attendance>3</Attendance> <BudgetTypeId>PerPerson</BudgetTypeId> <CompanyName>sample string 2</CompanyName> <EventTitle>sample string 1</EventTitle> <EventTypeId>ProductLunch</EventTypeId> <FinishDate>2025-08-27T05:07:24.4018624+00:00</FinishDate> <FinishTime>PT0.1234567S</FinishTime> <FlexibleDate>true</FlexibleDate> <HostTypeId>Individual</HostTypeId> <MaxBudget>1.1</MaxBudget> <MinBudget>1.1</MinBudget> <MoreDetail>sample string 10</MoreDetail> <NightNum>1</NightNum> <PackageTypeId>9</PackageTypeId> <RoomNum>1</RoomNum> <StartDate>2025-08-27T05:07:24.4018624+00:00</StartDate> <StartTime>PT0.1234567S</StartTime> <VenueId>1</VenueId> </EventController.EventFormView>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.