Salta ai contenuti

crudSlotForExperiences

POST
/v2/availabilities/actions
curl --request POST \
--url https://api-crm-staging.divinea.com/api/v2/availabilities/actions \
--header 'APIKey: <APIKey>' \
--header 'Content-Type: application/json' \
--data '{ "requests": [ { "action": "CREATE", "day": "2026-04-15", "dryRun": true, "effectPolicy": "example", "endToValid": "2026-04-15", "experienceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "extraData": {}, "ignoreManualModification": true, "ignoreOccupiedSlot": true, "newActive": true, "newDay": "2026-04-15", "newDefaultLanguages": [ "example" ], "newEnabledLanguages": [ "example" ], "newMaxParties": 1, "newMinParties": 1, "newOccupantsCount": 1, "newTime": { "hour": 1, "minute": 1, "nano": 1, "second": 1 }, "options": { "additionalProperty": true }, "parentSlotId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "slotId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "startFromValid": "2026-04-15", "time": { "hour": 1, "minute": 1, "nano": 1, "second": 1 }, "weekDays": { "additionalProperty": true } } ] }'

Body

Media typeapplication/json
CRUDAndActionsExperienceSlotsAvailabilityFullCommand
object
requests
Array<object>
Request
object
action
string
Allowed values: CREATE UPDATE DELETE
day
string format: date
dryRun
boolean
effectPolicy
string
endToValid
string format: date
experienceId
string format: uuid
extraData
object
ignoreManualModification
boolean
ignoreOccupiedSlot
boolean
newActive
boolean
newDay
string format: date
newDefaultLanguages
Array<string>
newEnabledLanguages
Array<string>
newMaxParties
integer format: int32
newMinParties
integer format: int32
newOccupantsCount
integer format: int32
newTime
LocalTime
object
hour
integer format: int32
minute
integer format: int32
nano
integer format: int32
second
integer format: int32
options
object
key
additional properties
boolean
parentSlotId
string format: uuid
slotId
string format: uuid
startFromValid
string format: date
time
LocalTime
object
hour
integer format: int32
minute
integer format: int32
nano
integer format: int32
second
integer format: int32
weekDays
object
key
additional properties
boolean

OK

Media type*/*
Array<object>
Result
object
acceptNexiPayments
boolean
acceptPayAtWineryPayments
boolean
acceptPaypalPayments
boolean
acceptStripePayments
boolean
activeBillingDetails
boolean
businessName
string
cf
string
channels
Array<object>
Channel
object
channelId
integer format: int64
createdAt
string format: date-time
data
object
deletedAt
string format: date-time
ecommerceUrl
string
id
string format: uuid
name
string
pointOfSaleWineSuiteId
string format: uuid
updatedAt
string format: date-time
city
string
closingPeriods
Array<object>
ClosingPeriod
object
first
string format: date
id
string format: uuid
last
string format: date
companyEmail
string
createdAt
string format: date-time
description
string
descriptionTranslations
object
dwsProEnabled
boolean
files
Array<object>
File
object
contentData
object
id
string format: uuid
title
string
typeFile
string
id
string format: uuid
integrations
Array<object>
Integration
object
authToken
string
disabled
boolean
integrationData
object
integrationId
string format: uuid
integrationName
string
integrationOptions
object
roleId
string format: uuid
lat
number
lng
number
metaDescriptionTranslations
object
metaTitleTranslations
object
name
string
nearbyCities
string
notificationEmail
string
notificationEmails
Array<string>
openingHours
string
openingHoursTranslations
object
parameters
Array<object>
Parameter
object
creationDate
string format: date-time
deleted
boolean
parameterKey
string
parameterValue
string
updateDate
string format: date-time
phone
string
photos
Array<object>
Photo
object
cover
boolean
id
string format: uuid
imageData
object
imageType
string
main
boolean
publicId
string
title
string
pi
string
province
string
region
string
sdi
string
services
Array<object>
Service
object
createdAt
string format: date-time
id
string format: uuid
name
string
nameTranslations
object
tagTypeTranslations
object
updatedAt
string format: date-time
showWebsite
boolean
showWidget
boolean
showWidgetFilter
boolean
state
string
street
string
updatedAt
string format: date-time
wineRegion
WineRegion
object
id
string format: uuid
name
string
regionId
string format: uuid
wineRegionId
string format: uuid
zipcode
string