Skip to content

Scheduling API

Who can do a job and where, the waitlist, and working-time and travel rules.

The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.

GET/v1/scheduling/rules

Get the scheduling rules

The workspace's own travel times and working-time limits. Needs scheduling:read.

Scope scheduling:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

PUT/v1/scheduling/rules

Set the scheduling rules

Replaces them. A booking that leaves too little room for the trip, or that breaks a working-time limit, is refused unless a person with authority gives a reason. Needs scheduling:write.

Scope scheduling:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

GET/v1/scheduling/traits

What each resource can do

The skills and zones of every resource that has any. Needs scheduling:read.

Scope scheduling:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

PUT/v1/scheduling/traits/{resource}

Set what a resource can do

Replaces its skills and zones. Needs scheduling:write.

Scope scheduling:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
resourcepathstringYesThe resource id.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

GET/v1/scheduling/availability

Free slots for a job

Free slots of the resources that can do the job: every skill asked for, in the zone asked for. Needs scheduling:read.

Scope scheduling:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
fromquerystringYesFirst day.
toquerystringNoLast day, inclusive.
kindquerystringNoA kind of resource.
skillsquerystringNoSkills the job needs, separated by commas.
zonequerystringNoThe zone the job is in.
limitqueryintegerNoHow many. Default 50.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

GET/v1/scheduling/waitlist

Who is waiting

People waiting for a slot, or holding an offer. Needs scheduling:read.

Scope scheduling:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/scheduling/waitlist

Put someone on the waitlist

When a slot comes free it is offered by text to the first person it suits, with a code and a short time to take it; if they decline or it lapses it goes to the next. Needs scheduling:write.

Scope scheduling:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/scheduling/waitlist/{id}/leave

Take someone off the waitlist

Needs scheduling:write.

Scope scheduling:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
idpathstringYesThe resource id.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

POST/v1/scheduling/offers/claim

Take an offered slot

Books the slot offered under the code for the person it was offered to. A lapsed offer is refused. Needs scheduling:write.

Scope scheduling:write. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.