File: //tmp/group_check.sh
#!/usr/bin/env bash
set -euo pipefail
BASE_URL="https://altaira.panomity.com/mc"
AUTH_TOKEN="ztbHKAe1UYI66HCFvSAyo4wrAAD6frNCyAZ67aKVeSE"
BOARD_ID="2857b7e4-abd0-41ae-8185-4bc3c37cfee1"
curl -fsS -H "Authorization: Bearer $AUTH_TOKEN" "$BASE_URL/api/v1/boards/$BOARD_ID/group-memory?limit=12" >/tmp/group_mem.json
curl -fsS -H "Authorization: Bearer $AUTH_TOKEN" "$BASE_URL/api/v1/boards/$BOARD_ID/group-snapshot?include_self=true" >/tmp/group_snapshot.json
jq -n --slurpfile gm /tmp/group_mem.json --slurpfile gs /tmp/group_snapshot.json '{group_memory:$gm[0], snapshot:$gs[0]}'