ing.opn.availability.getSlots
Open times for an event type between two moments. Only open times are returned, never what makes the rest busy.
Details · query
| Kind | query |
|---|---|
| Authority | availability.opn.ing |
| Commit rev | 3n2uk62t4w62l |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"away": {
"properties": {
"end": {
"format": "datetime",
"type": "string"
},
"note": {
"description": "The host's note, when they chose to show it.",
"maxLength": 3000,
"type": "string"
},
"reason": {
"knownValues": [
"unspecified",
"vacation",
"travel",
"sick",
"public_holiday"
],
"maxLength": 32,
"type": "string"
},
"start": {
"format": "datetime",
"type": "string"
}
},
"required": [
"start",
"end",
"reason"
],
"type": "object"
},
"holiday": {
"properties": {
"end": {
"format": "datetime",
"type": "string"
},
"name": {
"maxLength": 1000,
"type": "string"
},
"start": {
"format": "datetime",
"type": "string"
}
},
"required": [
"start",
"end",
"name"
],
"type": "object"
},
"main": {
"description": "Open times for an event type between two moments. Only open times are returned, never what makes the rest busy.",
"errors": [
{
"name": "EventTypeNotFound"
},
{
"name": "ScheduleNotFound"
},
{
"name": "InvalidRange"
},
{
"name": "DurationNotOffered"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"away": {
"description": "Time off the host has in the range. Booking pages say the host is away on those days.",
"items": {
"ref": "#away",
"type": "ref"
},
"type": "array"
},
"duration": {
"type": "integer"
},
"holidays": {
"description": "Public holidays the host keeps in the range. Booking pages mark those days.",
"items": {
"ref": "#holiday",
"type": "ref"
},
"type": "array"
},
"slots": {
"items": {
"ref": "ing.opn.availability.defs#slot",
"type": "ref"
},
"type": "array"
},
"timeZone": {
"description": "The schedule's timezone.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"timeZone",
"duration",
"slots"
],
"type": "object"
}
},
"parameters": {
"properties": {
"duration": {
"description": "Minutes. One of the event type's durations, else its default.",
"maximum": 1440,
"minimum": 1,
"type": "integer"
},
"end": {
"description": "At most 62 days after start.",
"format": "datetime",
"type": "string"
},
"eventType": {
"description": "The ing.opn.booking.eventType.",
"format": "at-uri",
"type": "string"
},
"holder": {
"description": "A hold to leave out, so its own slot still shows.",
"maxLength": 64,
"type": "string"
},
"start": {
"format": "datetime",
"type": "string"
}
},
"required": [
"eventType",
"start",
"end"
],
"type": "params"
},
"type": "query"
}
},
"id": "ing.opn.availability.getSlots",
"lexicon": 1
}