What's your biggest current challenge? Have your say in Community Polls along the right column.

Duplicate collections when creating via Shopify API.

Duplicate collections when creating via Shopify API.

Chrisabo
Shopify Partner
4 0 1

Hi,

I'm creating collections via the rest-api and they appear twice.

I post to the URL:

....myshopify.com/admin/api/2023-04/custom_collections.json

I have the following headers:

content-type: application/json
X-Shopify-Access-Token: xxxxxxxxxx
Cache-Control: no-cache

This is the content:

{"custom_collection":{ "title":"Testcollection"}}
 
After sending the request to the rest-api the collection is added twice. Each has an unique ID.
 
What can cause this problem? I'm sending the request only once.
 
Any suggestions?
 
Best regards,
Chris Andries.
 
 
Replies 0 (0)