Set default availability
Needs: Staff, Read-write
Save a staff member's default availability pattern (replacing any existing one) and/or its fallback mode, like the default availability card.
Note: Send a pattern (
daysfor weekly,weeksfor fortnightly),default_mode, or both. Days left out of a pattern are unavailable. Saving a pattern keeps the currentdefault_modeunless you send a new one.
curl -X PUT "https://app.imploy.com.au/api/integrations/v1/staff/123/default-availability" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"repeats": "weekly",
"applies_from": "2026-11-30",
"days": {
"monday": {
"type": "all"
},
"tuesday": {
"type": "hours",
"ranges": [
{
"start": "08:00",
"end": "12:00"
}
]
}
},
"default_mode": "unavailable"
}'
import requests
import json
url = "https://app.imploy.com.au/api/integrations/v1/staff/123/default-availability"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"repeats": "weekly",
"applies_from": "2026-11-30",
"days": {
"monday": {
"type": "all"
},
"tuesday": {
"type": "hours",
"ranges": [
{
"start": "08:00",
"end": "12:00"
}
]
}
},
"default_mode": "unavailable"
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://app.imploy.com.au/api/integrations/v1/staff/123/default-availability", {
method: "PUT",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"repeats": "weekly",
"applies_from": "2026-11-30",
"days": {
"monday": {
"type": "all"
},
"tuesday": {
"type": "hours",
"ranges": [
{
"start": "08:00",
"end": "12:00"
}
]
}
},
"default_mode": "unavailable"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"repeats": "weekly",
"applies_from": "2026-11-30",
"days": {
"monday": {
"type": "all"
},
"tuesday": {
"type": "hours",
"ranges": [
{
"start": "08:00",
"end": "12:00"
}
]
}
},
"default_mode": "unavailable"
}`)
req, err := http.NewRequest("PUT", "https://app.imploy.com.au/api/integrations/v1/staff/123/default-availability", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://app.imploy.com.au/api/integrations/v1/staff/123/default-availability')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Put.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"repeats": "weekly",
"applies_from": "2026-11-30",
"days": {
"monday": {
"type": "all"
},
"tuesday": {
"type": "hours",
"ranges": [
{
"start": "08:00",
"end": "12:00"
}
]
}
},
"default_mode": "unavailable"
}'
response = http.request(request)
puts response.body
{
"saved": true,
"staff_id": 42,
"default": {
"repeats": "weekly",
"applies_from": "2026-11-30",
"days": {
"monday": {
"type": "all",
"ranges": []
}
},
"default_mode": "unavailable",
"effective_mode": "normal"
}
}
{
"message": "Invalid or expired access token."
}
{
"message": "Access token does not permit this action."
}
{
"message": "Too many requests."
}
/staff/{staff_id}/default-availabilityTarget server for requests. Edit to use your own host.
An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
imp_at_. Send it as Authorization: Bearer imp_at_XXXX.The staff member id.
The media type of the request body
Pattern start (YYYY-MM-DD). Default: today.
Optional pattern end (YYYY-MM-DD).
Weekly pattern: day name (monday to sunday) to {type: all|hours|unavailable, ranges}. Days left out are unavailable.
Fortnightly pattern: {week1: {...days}, week2: {...days}}.
Fallback outside the pattern's dates (kept when only the pattern changes).
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Path Parameters
The staff member id.
Body
weeklyfortnightlyPattern start (YYYY-MM-DD). Default: today.
Optional pattern end (YYYY-MM-DD).
Weekly pattern: day name (monday to sunday) to {type: all|hours|unavailable, ranges}. Days left out are unavailable.
Fortnightly pattern: {week1: {...days}, week2: {...days}}.
Fallback outside the pattern's dates (kept when only the pattern changes).
not_submittedavailable_all_dayunavailableResponses
OK