cURL
curl -X PUT "https://api.fitsociety.io/public/v1/coaches/<coachId>/availability" \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: coach-availability-20260721" \
-H "Content-Type: application/json" \
-d '{"availabilityPeriods":[],"specificAvailability":[],"overrides":[]}'const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.fitsociety.io/public/v1/coaches/{coachId}/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/coaches/{coachId}/availability"
payload = {}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"data": {
"coachAvailability": {
"coachId": "<string>",
"availabilityPeriods": [
{
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"weeklyPattern": [
{
"dayOfWeek": 123,
"isDayOff": true,
"slots": [
{
"startTime": "<string>",
"endTime": "<string>",
"locationId": "<string>",
"zoneKey": "<string>",
"allowedEventTemplateIds": [
"<string>"
]
}
]
}
]
}
],
"specificAvailability": [
{
"date": "2023-11-07T05:31:56Z",
"note": "<string>",
"slots": [
{
"startTime": "<string>",
"endTime": "<string>",
"locationId": "<string>",
"zoneKey": "<string>",
"allowedEventTemplateIds": [
"<string>"
]
}
]
}
],
"overrides": [
{
"date": "2023-11-07T05:31:56Z",
"type": "<string>",
"reason": "<string>"
}
],
"settings": {
"maxBookingFutureDays": 123,
"minBookingNoticeMinutes": 123,
"bufferBetweenSessions": 123,
"bookingPlacement": {
"strategy": "Flexible",
"minGapThresholdMinutes": 123
},
"priorityScore": 123,
"allowedEventTemplateIds": [
"<string>"
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1,
"retryAfterSeconds": 1
},
"idempotency": {
"replayed": true
}
}
}{
"data": {
"coachAvailability": {
"coachId": "<string>",
"availabilityPeriods": [
{
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"weeklyPattern": [
{
"dayOfWeek": 123,
"isDayOff": true,
"slots": [
{
"startTime": "<string>",
"endTime": "<string>",
"locationId": "<string>",
"zoneKey": "<string>",
"allowedEventTemplateIds": [
"<string>"
]
}
]
}
]
}
],
"specificAvailability": [
{
"date": "2023-11-07T05:31:56Z",
"note": "<string>",
"slots": [
{
"startTime": "<string>",
"endTime": "<string>",
"locationId": "<string>",
"zoneKey": "<string>",
"allowedEventTemplateIds": [
"<string>"
]
}
]
}
],
"overrides": [
{
"date": "2023-11-07T05:31:56Z",
"type": "<string>",
"reason": "<string>"
}
],
"settings": {
"maxBookingFutureDays": 123,
"minBookingNoticeMinutes": 123,
"bufferBetweenSessions": 123,
"bookingPlacement": {
"strategy": "Flexible",
"minGapThresholdMinutes": 123
},
"priorityScore": 123,
"allowedEventTemplateIds": [
"<string>"
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1,
"retryAfterSeconds": 1
},
"idempotency": {
"replayed": true
}
}
}Coach availability
Replace coach availability template
Requires coach_availability:write. Replaces the coach availability template used to derive bookable slots. Unknown top-level fields are rejected; send only availabilityPeriods, specificAvailability, overrides, and settings.
PUT
/
public
/
v1
/
coaches
/
{coachId}
/
availability
cURL
curl -X PUT "https://api.fitsociety.io/public/v1/coaches/<coachId>/availability" \
-H "Authorization: Bearer <access_token>" \
-H "Idempotency-Key: coach-availability-20260721" \
-H "Content-Type: application/json" \
-d '{"availabilityPeriods":[],"specificAvailability":[],"overrides":[]}'const options = {
method: 'PUT',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.fitsociety.io/public/v1/coaches/{coachId}/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fitsociety.io/public/v1/coaches/{coachId}/availability"
payload = {}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"data": {
"coachAvailability": {
"coachId": "<string>",
"availabilityPeriods": [
{
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"weeklyPattern": [
{
"dayOfWeek": 123,
"isDayOff": true,
"slots": [
{
"startTime": "<string>",
"endTime": "<string>",
"locationId": "<string>",
"zoneKey": "<string>",
"allowedEventTemplateIds": [
"<string>"
]
}
]
}
]
}
],
"specificAvailability": [
{
"date": "2023-11-07T05:31:56Z",
"note": "<string>",
"slots": [
{
"startTime": "<string>",
"endTime": "<string>",
"locationId": "<string>",
"zoneKey": "<string>",
"allowedEventTemplateIds": [
"<string>"
]
}
]
}
],
"overrides": [
{
"date": "2023-11-07T05:31:56Z",
"type": "<string>",
"reason": "<string>"
}
],
"settings": {
"maxBookingFutureDays": 123,
"minBookingNoticeMinutes": 123,
"bufferBetweenSessions": 123,
"bookingPlacement": {
"strategy": "Flexible",
"minGapThresholdMinutes": 123
},
"priorityScore": 123,
"allowedEventTemplateIds": [
"<string>"
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1,
"retryAfterSeconds": 1
},
"idempotency": {
"replayed": true
}
}
}{
"data": {
"coachAvailability": {
"coachId": "<string>",
"availabilityPeriods": [
{
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"weeklyPattern": [
{
"dayOfWeek": 123,
"isDayOff": true,
"slots": [
{
"startTime": "<string>",
"endTime": "<string>",
"locationId": "<string>",
"zoneKey": "<string>",
"allowedEventTemplateIds": [
"<string>"
]
}
]
}
]
}
],
"specificAvailability": [
{
"date": "2023-11-07T05:31:56Z",
"note": "<string>",
"slots": [
{
"startTime": "<string>",
"endTime": "<string>",
"locationId": "<string>",
"zoneKey": "<string>",
"allowedEventTemplateIds": [
"<string>"
]
}
]
}
],
"overrides": [
{
"date": "2023-11-07T05:31:56Z",
"type": "<string>",
"reason": "<string>"
}
],
"settings": {
"maxBookingFutureDays": 123,
"minBookingNoticeMinutes": 123,
"bufferBetweenSessions": 123,
"bookingPlacement": {
"strategy": "Flexible",
"minGapThresholdMinutes": 123
},
"priorityScore": 123,
"allowedEventTemplateIds": [
"<string>"
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
},
"meta": {
"requestId": "4f849d7d-f4f1-45cc-b4b7-3984a3d17f83",
"rateLimit": {
"limit": 10,
"remaining": 9,
"resetSeconds": 1,
"retryAfterSeconds": 1
},
"idempotency": {
"replayed": true
}
}
}Authorizations
Public API access token issued by /public/v1/oauth/token. Example: Authorization: Bearer fspt_....
Headers
Required for Public API write requests. Reusing the same key with the same method, path, and body replays the stored successful response; reusing it with a different request returns 409 idempotency.conflict.
Required string length:
1 - 200Example:
"booking-create-20260714-001"
Path Parameters
Body
application/json
⌘I