Browse Appointment Capacity Groups
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groupsimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"handle": "<string>",
"name": "<string>",
"description": "<string>",
"max_concurrent_bookings": 123,
"buffer_before_minutes": 123,
"buffer_after_minutes": 123,
"meta": [
"<unknown>"
],
"created_at": "<string>",
"updated_at": "<string>",
"appointment_definitions_count": 123,
"appointment_definitions": [
{
"id": "<string>",
"handle": "<string>",
"name": "<string>"
}
]
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Appointment Capacity Group
Browse Appointment Capacity Groups
A GET to the /appointment-capacity-groups endpoint allows your application to retrieve all appointment capacity group records. Each group is a resource several appointment definitions share, such as one station or room.
GET
/
v3
/
appointment-capacity-groups
Browse Appointment Capacity Groups
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groupsimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/appointment-capacity-groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"handle": "<string>",
"name": "<string>",
"description": "<string>",
"max_concurrent_bookings": 123,
"buffer_before_minutes": 123,
"buffer_after_minutes": 123,
"meta": [
"<unknown>"
],
"created_at": "<string>",
"updated_at": "<string>",
"appointment_definitions_count": 123,
"appointment_definitions": [
{
"id": "<string>",
"handle": "<string>",
"name": "<string>"
}
]
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}Filtering
This endpoint accepts
filter and sort query parameters. See Filtering, sorting, and search for paging and for the shared search_with, custom_field, and json_contains filters.Examples
curl -X GET "https://api.[tenant].getomneo.com/api/v3/appointment-capacity-groups?filter[handle]={handle}" \
-H "Authorization: Bearer ${TOKEN}"
curl -X GET "https://api.[tenant].getomneo.com/api/v3/appointment-capacity-groups?filter[handle][nullable]=0" \
-H "Authorization: Bearer ${TOKEN}"
Operators
| Operator | Meaning | Example |
|---|---|---|
eq | Equal to. Applied when you give no operator. | filter[handle]={handle} |
ne | Not equal to. | filter[handle][ne]={handle} |
gt | Greater than. | filter[max_concurrent_bookings][gt]=100 |
gte | Greater than or equal to. | filter[max_concurrent_bookings][gte]=100 |
lt | Less than. | filter[max_concurrent_bookings][lt]=250 |
lte | Less than or equal to. | filter[max_concurrent_bookings][lte]=250 |
in | Matches any value in a comma separated list. | filter[handle][in]={handle},{other-handle} |
not_in | Excludes every value in a comma separated list. | filter[handle][not_in]={handle},{other-handle} |
nullable | 1 returns records where the attribute is empty. Any other value returns records where it is set. | filter[handle][nullable]=1 |
not_has operator applies to related attributes, which this endpoint does not have.
Filter attributes
| Attribute | Attribute | Attribute |
|---|---|---|
handle | name | description |
max_concurrent_bookings | buffer_before_minutes | buffer_after_minutes |
meta |
sort key, for example ?sort=-handle for descending order.
Search attributes
filter[search] runs one partial match term across handle, name. A record matches when any one of those attributes contains the term.
curl -X GET "https://api.[tenant].getomneo.com/api/v3/appointment-capacity-groups?filter[search]={term}" \
-H "Authorization: Bearer ${TOKEN}"