Partner API
Rooms

List location rooms

Retrieve a paginated list of rooms for a specific location

get/{partnerId}/locations/{locationId}/rooms

Request

  • Base URL: https://us-central1-sutra-prod.cloudfunctions.net/partnerApi/v0
  • URL: https://us-central1-sutra-prod.cloudfunctions.net/partnerApi/v0/{partnerId}/locations/{locationId}/rooms
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

partnerIdstring required
Example:partner123

Partner identifier

locationIdstring required
Example:loc123

Location identifier

Query parameters

limitinteger
Example:10

Number of items to return (default 10, max 100)

start_afterstring
Example:item123

ID to start after for pagination

updated_at_minstring date-time
Example:2024-03-20T00:00:00Z

Filter by minimum updated timestamp (ISO 8601)

updated_at_maxstring date-time
Example:2024-03-21T23:59:59Z

Filter by maximum updated timestamp (ISO 8601)

idsstring
Example:id1,id2,id3

Comma-separated list of IDs to fetch

Response

Successful response

Example response

{
  "items": [
    {
      "id": "room123",
      "name": "Studio A",
      "description": "Main yoga studio",
      "location_id": "loc123",
      "updated_at": "2024-03-20T12:00:00Z"
    }
  ],
  "pagination": {
    "limit": 10,
    "nextStartAfterId": "item123"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.