6. Create an event with a function space

POST {{HostName}}/evm/v0/events

Request Body

{"eventDetails"=>[{"eventPrimaryInfo"=>{"eventId"=>{"type"=>"EventId", "idContext"=>"OPERA", "id"=>"-1"}, "hotelId"=>"{{HotelId}}"}, "eventDetail"=>{"eventName"=>{"defaultText"=>"AMBreak"}, "eventType"=>"AMBREAK", "eventTimeSpan"=>{"startDateTime"=>"2022-11-03 10:00:00.0", "endDateTime"=>"2022-11-03 10:45:00.0"}, "eventStatus"=>{"status"=>{"code"=>"INQ"}}, "attendees"=>{"expected"=>"25", "guaranteed"=>"20"}, "doorcard"=>"SAMPLE AMBREAK", "notMoveable"=>false, "loudEvent"=>true, "displayDoorcard"=>true}, "processInstructions"=>{"overrideCapacity"=>false, "overbook"=>false, "overrideMaxgroups"=>false, "warnFunctionSpace"=>true}, "functionSpaceInformation"=>{"functionSpaceCode"=>"BALL2", "setupCode"=>"REP", "rentalCode"=>"CUSTOM"}, "eventBlockInfo"=>{"blockIdList"=>[{"type"=>"OPERA", "id"=>"{{BlockId}}"}], "hotelId"=>"{{HotelId}}"}}]}

HEADERS

KeyDatatypeRequiredDescription
x-app-keystring
x-hotelidstring

RESPONSES

status: Created

{"eventDetails":[{"eventPrimaryInfo":{"eventId":{"type":"EventId","idContext":"OPERA","id":"71366"},"hotelId":"PS1OEDS2"},"eventDetail":{"eventName":{"defaultText":"AMBreak","translations":[]},"eventType":"AMBREAK","eventTimeSpan":{"startDateTime":"2019-10-27 10:00:00.0","endDateTime":"2019-10-27 10:45:00.0"},"eventStatus":{"status":{"code":"INQ"}},"attendees":{"expected":25,"guaranteed":20},"doorcard":"Eric AMBREAK","masterEvent":false,"subEvent":false,"packageEvent":false,"alternateEvent":false,"notMoveable":false,"loudEvent":true,"hasPostings":false,"displayDoorcard":true,"cateringDeductInventory":false,"eventShared":false,"includeSpaceInPackage":false,"eventLevelRevenueActualization":false},"functionSpaceInformation":{"functionSpaceCode":"BALL2","setupCode":"REP","rentalCode":"CUSTOM"}}]}