List Availability Rules
You can view a list of many availability rules using the listAvailability
query. This uses the same basic structure as other listing queries, outlined here.
query listAvailability {
listAvailability {
objects {
uid
start
end
dimensions {
objects {
uid
slug
values {
objects {
uid
slug
}
}
}
}
}
}
}
Response:
{
"data": {
"listAvailability": {
"objects": [
{
"start": "2020-01-01T00:00:00Z",
"end": "2023-01-01T00:00:00Z",
"dimensions": {
"objects": [
{
"slug": "operating-system"
"values": {
"objects": [
{
"slug": "ios"
}
]
}
}
]
}
},
{
"start": "2020-01-01T00:00:00Z",
"end": "2023-01-01T00:00:00Z",
"dimensions": {
"objects": []
}
}
]
}
}
}
Updated 6 months ago