REST API support needed for Default Values to get/set default values for Content Types fields
Currently ContentType REST API does not support get/set for ContentType fields.
For example: I have a content type with a TextField, have set default value for it in the CMS. However, there is no way to get/set it via REST API, which makes it impossible to deploy the contenttype with default values to other environments using the CLI
-
Hi there! The reason this is not available in the API is that we're looking into how we can improve the current default value system, which is only capable of handling default values for simple, scalar, property types. An alternative to default values is to instead use Blueprints, which are now supported for all content types (Pages, Blocks, Experiences and Sections). Blueprints are capable of storing default values for all complex properties, and can be created and managed via API.
-
Nicholas Sideras
commented
This feels like a silly oversight. On a practical level this makes it incredible difficult to use our accelerator codebase the way we can for PaaS because not all of the attributes on the properties are able to be programmatically configured.
-
Andrew Markham
commented
I agree, the api should be on parity with the UI.