A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi,
I'm trying to create a custom collection trough the 2023-01 version of the REST API:
The API returns a 200 OK status code, but inside the body there is an html page that point to
Hi @louagej 👋
To make valid authenticated requests, you will need to include your admin access token as a `X-Shopify-Access-Token` header on all Admin API requests. Below is an example of a valid authenticated request to create a custom collection:
curl -d '{"custom_collection":{"title":"test"}}' \
-X POST "https://STORE_NAME.myshopify.com/admin/api/2023-01/custom_collections.json" \
-H "X-Shopify-Access-Token: ACCESS_TOKEN" \
-H "Content-Type: application/json"
Hope that helps!
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi @ShopifyDevSup ,
Thank you for your reply, but
other api calls (products, metafields, ...) with the same access_token runs without any issues.