Skip to main content
PATCH
/
v1
/
admin
/
operations
/
availability
/
rules
/
{id}
Update an availability rule
curl --request PATCH \
  --url https://{operatorDomain}/v1/admin/operations/availability/rules/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "productId": "prod_01J9",
  "rrule": "FREQ=DAILY",
  "capacity": 20
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Path Parameters

id
string
required

Body

application/json
productId
string
Example:

"prod_01J9"

rrule
string
Example:

"FREQ=DAILY"

capacity
integer
Example:

20

Response

200 - application/json

Updated rule

data
object