Describe your question/issue in detail
I have an issue everytime I try to create a document via the Migration API (both POST and PUT methods) with an “Integration field“.
I have tried to pass an id of an “Integration field“ item but I keep getting the following error :
{ "message": "Integration field items couldn't be retrieved: 2583" }
My request look like this :
curl --location '``https://migration.prismic.io/documents``'
--header 'repository: my-repository'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer xxxxxxxxxxx'
--data '{
"title": "a-good-title",
"type": "supergoodtype",
"lang": "fr-fr",
"uid": "a-good-title",
"data": { “linked_collection“: { “id“: 2583 } }
}'
I am sure that the item with id 2583 exists because it comes from another document “Integration field“ (that points to the same catalog).
I have also tried to create the document first without the “Integration field“ (linked_collection) and then passing it through an update (PUT) request, but I get the same error..
How can I create documents via the Migration API with “Integration fields” ?