Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th

Error encountered when importing data to Sanity using API

2 replies
Last updated: Jun 14, 2024
Hi people, I am using this article (https://www.sanity.io/guides/guide-importing-data-from-external-sources ) as a reference when importing data to Sanity. But I get an error that _key is missing. Is there an updated article somewhere on how to import data with array references via the API?
Jun 14, 2024, 11:02 AM
After adding
_key
to the object, I was presented with a new issue. So an updated article on how to import data via the API would be much appreciated :)
Jun 14, 2024, 11:32 AM
Figured it out, trying to add array of objects as reference is not helpful.
Jun 14, 2024, 11:54 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?