CMS collection not found (error 404) when posting items with the API

Hi Webflow support,
I have tried to import some items in my CMS using the CMS API but I am facing the following issue:

{
“msg”:“Collection not found: null”,
“code”:404,
“name”:“NotFound”,
“path”:“/collections/5e1f4042f33b534f7abafc17/items”,
“err”:“NotFound: Collection not found: null”,
“extensions”:{
“input”:{
“collection_id”:{
“_bsontype”:“ObjectID”,
“id”:{
“0”:94,
“1”:31,
“2”:64,
“3”:66,
“4”:243,
“5”:59,
“6”:83,
“7”:79,
“8”:122,
“9”:186,
“10”:252,
“11”:23
}
},
“item_id”:null,
“target”:“live”,
“mode”:“live”,
“need_staging”:true,
“need_live”:true,
“need_collections”:false,
“need_staging_draft”:false,
“isPatchMode”:false,
“isSilentMode”:false,
“skipInvalidFiles”:false
},
“meta”:{
“authType”:“oauth_user”,
“userId”:{
“_bsontype”:“ObjectID”,
“id”:{
“0”:93,
“1”:193,
“2”:82,
“3”:219,
“4”:135,
“5”:173,
“6”:62,
“7”:99,
“8”:132,
“9”:138,
“10”:12,
“11”:52
}
}
}
}
}

The url I post to is the following:
https://api.webflow.com/collections/5e1f4042f33b534f7abafc17/items
All other methods (ie. getting the fields or the items of the collection) seem to work properly. Is there something that I am missing ?
Thanks.

Ok, I have found the issue.
When trying to store live items, I was setting the “live” query parameter to true (without quotes) instead of “true” (with quotes).
Hope it helps.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.