Products

Stay-to-Play Confirm Event

POST
/v1/products/stay-to-play/events

Confirm event details for a stay-to-play 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.

*RoomBlockEvent
name*string
Length1 <= length
type*StayToPlayEventType

Value in

  • "INDOOR"
  • "OUTDOOR"
address*string
Length1 <= length
city*string
Length1 <= length
state*string

2-digit state code

Length1 <= length
postal_code*string
Length1 <= length
country*Country

Value in

  • "US"
  • "CA"
  • "AU"
start_date*string
Formatdate
end_date*string
Formatdate
partner_id?string
enabled?boolean

Response Body

application/json

curl -X POST "https://example.com/v1/products/stay-to-play/events" \  -H "Content-Type: application/json" \  -d '{    "event": {      "name": "string",      "type": "INDOOR",      "address": "string",      "city": "string",      "state": "MN",      "postal_code": "string",      "country": "US",      "start_date": "2019-08-24",      "end_date": "2019-08-24"    }  }'
{  "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",  "enabled": true,  "rate": 0.1}