Partner API
Classes
Get single class
Retrieve details for a specific class
get/{partnerId}/classes/{classId}
Request
- Base URL: https://us-central1-sutra-prod.cloudfunctions.net/partnerApi/v0
- URL: https://us-central1-sutra-prod.cloudfunctions.net/partnerApi/v0/{partnerId}/classes/{classId}
- Auth: one of:
- API key in header X-API-Key
- HTTP bearer
Path parameters
partnerIdstring required
Example:partner123
Partner identifier
classIdstring required
Example:class123
Class identifier
Response
Successful response
Example response
{
"item": {
"id": "class123",
"name": "Morning Yoga",
"description": "Start your day right",
"start_time": "2024-03-20T08:00:00Z",
"duration": 60,
"location_id": "loc123",
"room_id": "room123",
"max_capacity": 20,
"total_booked": 15,
"updated_at": "2024-03-20T12:00:00Z",
"instructor_name": "John Smith"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.