A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
为什么(检索自定义集合列表/检索单个自定义集合)这两个接口现在不返回标题字段?标题字段会返回,但是现在不知道为什么没有返回。
Solved! Go to the solution
This is an accepted solution.
Hey @Object,
The Collect - REST Admin API resource only returns the properties listed in that doc, and does not include the collection "title" property.
I would suggest an alternative approach by using the 'collection_id' returned in a collect object to send either a Collection request or a CustomCollection request , both will return the "title" property.
Hope this helps resolve your search! - Cheers
awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me 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
I'm using a translate tool here so hopefully I've understood your question.
I did a test on my own test shop. A GET request on a smart collection returned the title field as expected. Can you please show what call you made and the API version used?
I am calling (https://{api_key}:{client_secret}@{api_url}/admin/api/2021-10/collects.json) to request collection information from this address. I request the interface through get, and the response is as follows:
This is an accepted solution.
Hey @Object,
The Collect - REST Admin API resource only returns the properties listed in that doc, and does not include the collection "title" property.
I would suggest an alternative approach by using the 'collection_id' returned in a collect object to send either a Collection request or a CustomCollection request , both will return the "title" property.
Hope this helps resolve your search! - Cheers
awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me 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
I'm very sorry, I misread the interface, thank you very much for your professional answer