We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

GraphQL: 400 Bad Request

GraphQL: 400 Bad Request

epipko
Tourist
9 0 1

Hi, following code straight from Shopify's example returns 400 Bad Request. All I've done is changed the URL and provided token.

 

What am I doing wrong?

 

curl -X POST https://unionbay-clothing-staging.myshopify.com/admin/api/2024-10/graphql.json \
  -H 
'Content-Type: application/json' \
  -H 
'X-Shopify-Access-Token: {token}' \
  -d 
'{
  "query": "{
    products(first: 3) {
      edges {
        node {
          id
          title
        }
      }
    }
  }"
}'
Reply 1 (1)

mgaurav
Shopify Partner
1 0 0

Hey. Facing the same. Any update on this?