Hi all πŸ™‚ Does anyone know if i can hide certain fields from the API? or some workaround for this?

1 replies
Last updated: Dec 30, 2020

Hi all πŸ™‚ Does anyone know if i can hide certain fields from the API? or some workaround for this?

Dec 29, 2020, 2:12 PM

You can currently only hide fields in the Studio with the

hidden
value, but this won’t hide it in the API as you already know. Feel free to create a feature request or this here tho πŸ‘ https://github.com/sanity-io/sanity/issues

Dec 30, 2020, 8:55 AM

Sanity.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Give your team exactly what they need to edit and publish their content with the customizable Sanity Studio. Get real-time collaboration out of the box. Sanity.io comes with a hosted datastore for JSON documents, query languages like GROQ and GraphQL, CDNs, on-demand asset transformations, presentation agnostic rich text, plugins, and much more.

Don't compromise on developer experience. Join thousands of developers and trusted companies and power your content with Sanity.io. Free to get started, pay-as-you-go on all plans.