How to Programatically Create a Document with a Slug in the API

2 replies
Last updated: Feb 22, 2022
is it possible to programatically create a document with a slug in the api? i’m not able to simply send
{slug: 'some-string'}
Feb 22, 2022, 9:22 PM
maybe if its done like
  slug: {
    current: 'some-string'
Feb 22, 2022, 9:25 PM
Yes, that. 🙂
Feb 22, 2022, 9:37 PM – build remarkable experiences at scale

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