BetaThe configuration of the content resource
Deploying Permissions via Blueprints is experimental. This feature is stabilizing but may still be subject to breaking changes.
Configuration for a content resource: a custom permission of type sanity.document.filter.mode, as the Manage UI makes it.
This feature is subject to breaking changes.
Optional Betadescription?: stringA description of the permission. Defaults to an empty string.
Optional BetadocumentTypes?: string[]The document types that the content resource applies to. Omit to apply to documents of any type.
Optional Betafilter?: stringA GROQ filter that selects documents, e.g. branch == "london". It is joined to documentTypes with &&.
Betaname: stringThe name of the permission.
Lowercase letters, numbers, hyphens, and underscores only. Must not start with sanity or res-.
Optional Betaproject?: stringThe project ID of the project that contains the permission.
The project attribute must be defined if your blueprint is scoped to an organization and the stack has no default project.
Optional Betatitle?: stringA human-readable title. Defaults to name.
The permission resource
Defines a content resource as the Manage UI makes it: a custom permission of type
sanity.document.filter.mode.