Skip to main content
POST
/
v1
/
admin
/
operations
/
availability
/
slots
Create an availability slot
curl --request POST \
  --url https://{operatorDomain}/v1/admin/operations/availability/slots \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "productId": "prod_01J9",
  "startsAt": "2023-11-07T05:31:56Z",
  "capacity": 20
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

Staff session or API token issued by your Voyant app.

Body

application/json
productId
string
Example:

"prod_01J9"

startsAt
string<date-time>
capacity
integer
Example:

20

Response

200 - application/json

Created slot

data
object