Skip to content

Availability.create

POST /{namespace}/availabilities

Creates an Availability.

Mode
do
Event
Availability.created

Create makes a new Availability from the inputs below. It is inherited: every Noun has get, list, create, update and delete.

Inputs

InputTypeRequiredDescription
workerWorkerrequiredWho is booked: a Human, or an Agent that takes calls.
hoursjsonrequiredOpen hours by weekday, in its time zone.
timezonestringrequiredAn IANA time zone.
calendarsstring[]Connected calendars whose busy times it subtracts.
bufferintegerMinutes kept free before and after each Meeting.
noticeintegerThe fewest hours ahead a Meeting can be booked.

Outputs

OutputTypeRequiredDescription
availabilityAvailabilityrequiredThe Availability.

Effects

FactValue
Action classNone: it runs within its seat's Limits
DoorTwo-way: it runs at once
Modestry previews it and stores nothing; send returns a pending Action; do (default) waits for the result
IdempotentWith a key: a repeat with the same Idempotency-Key returns the first Action, and a repeat without one runs again
UndoAction.undo reverses it
EmitsAvailability.created

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.