catalogBatches
Requires permission catalog:copilot:chat.
Lists the catalog batches the copilot applied, most recently applied first, 20 by default. Needs the catalog copilot feature on the plan and permission to chat with the copilot.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query CatalogBatches {
catalogBatches {
id
status
appliedAt
entities
kind
rolledBackAt
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query CatalogBatches {\n catalogBatches {\n id\n status\n appliedAt\n entities\n kind\n rolledBackAt\n }\n}"
}
EOF
Response:
{
"data": {
"catalogBatches": [
{
"id": "id",
"status": "APPLIED",
"appliedAt": 0,
"entities": {},
"kind": "BROADCAST",
"rolledBackAt": 0
}
]
}
}
catalogBatches(
input: CatalogBatchesInput
): [CatalogBatchType!]!
Arguments
catalogBatches.input ● CatalogBatchesInput input
Optional: how many batches to return. Defaults to 20.
Type
CatalogBatchType object
A batch of catalog changes made by the copilot.