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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The 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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The 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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The 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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
resource | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The 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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
from | query | string | Yes | First day. |
to | query | string | No | Last day, inclusive. |
kind | query | string | No | A kind of resource. |
skills | query | string | No | Skills the job needs, separated by commas. |
zone | query | string | No | The zone the job is in. |
limit | query | integer | No | How many. Default 50. |
AirFone-Version | header | string | No | The 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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The 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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The 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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The resource id. |
AirFone-Version | header | string | No | The 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
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
AirFone-Version | header | string | No | The API version to use, as a date. Defaults to the version the account was pinned to. |