We changed this to that:
Bad request 400:
curl "
https://cms.aitoggler.com/graphql" \
--request post \
--header "Content-Type: application/json" \
--data "{"query":"query Blog($id: ID = "") {\n post(id: $id, idType: SLUG) {\n author {\n node {\n lastName\n firstName\n avatar {\n url\n width\n height\n }\n }\n }\n categories {\n nodes {\n name\n }\n }\n content(format: RENDERED)\n date\n featuredImage {\n node {\n altText\n sourceUrl\n mediaDetails {\n height\n width\n }\n }\n }\n title(format: RENDERED)\n }\n}","variables":{"id":"welcome-to-aitoggler"}}"
Fixed:
curl "
https://cms.aitoggler.com/graphql" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"query": "query Blog($id: ID!) { post(id: $id, idType: SLUG) { author { node { lastName firstName avatar { url width height } } } categories { nodes { name } } content(format: RENDERED) date featuredImage { node { altText sourceUrl mediaDetails { height width } } } title(format: RENDERED) } }",
"variables": {
"id": "welcome-to-aitoggler"
}
}'