Events
Create Event
Creates a new event
Authorization
basic auth AuthorizationBasic <token>
Authorization header with value of Basic <auth string> where the auth string value
is a base64 encoded string of <client id>:<client secret>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to create a new event
event_name*string
Name of the event
event_start_date*string
Start date of the event
Format
dateevent_end_date*string
End date of the event
Format
dateevent_street*string
Street address of the event
event_city*string
City of the event
event_state*string
State of the event
event_postal_code*string
Postal code of the event
event_country*string
Country of the event
?object
Additional metadata for the event
[key: string]?any
?EventAttributes
?RoomBlockProtectionAttributes
rate?number
Format
doubleenabled?boolean
event_type?StayToPlayEventType
Value in
- "INDOOR"
- "OUTDOOR"
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/events" \ -H "Content-Type: application/json" \ -d '{ "event_name": "string", "event_start_date": "2019-08-24", "event_end_date": "2019-08-24", "event_street": "string", "event_city": "string", "event_state": "string", "event_postal_code": "string", "event_country": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "event_name": "string", "event_start_date": "2019-08-24", "event_end_date": "2019-08-24", "event_street": "string", "event_city": "string", "event_state": "string", "event_postal_code": "string", "event_country": "string", "metadata": {}, "insurance_required": true, "insurance_requirements_type": "STANDARD", "purpose": "PROFESSIONAL_CONFERENCE", "additional_insured": [ { "business_name": "string", "street": "string", "city": "string", "state": "string", "postal_code": "string", "country": "string" } ], "attributes": { "room_block_protection": { "rate": 0.1, "enabled": true, "event_type": "INDOOR" } }}{ "error": "string", "error_code": "string", "message": "string", "reason": "string", "status": 0}{ "error": "string", "error_code": "string", "message": "string", "reason": "string", "status": 0}{ "error": "string", "error_code": "string", "message": "string", "reason": "string", "status": 0}