Models, folders, and content
Define and organize the structure of content within your Builder Space. Use these operations to create and manage models and folders that determine how content is stored and grouped.
Get models
Retrieve one or more data models from your Builder Space. For more details on models in Builder, see Models Intro.
To get all models from your Builder Space, use the following query.
Query
Response
To get one model by ID from your Builder Space, use the following query replacing "your-model-id" with your model's unique ID.
Query
Response
Create a model
Create a new model within your Builder Space.
When creating a new model, you must include a name and kind. The fields key must also be present and have a value that is an array.
Query
Response
Update a model
Update an existing model within your Builder Space.
To update a model by ID from your Builder Space, use the following query replacing "your-model-id" with your model's unique ID. With this query, you may update any fields within the model.
Query
Response
Delete a model
Delete an existing model within your Builder Space. This operation is not reversible.
To delete a model by ID from your Builder Space, use the following query replacing "your-model-id" with your model's unique ID.
Query
Response
Get folders and contents
Folders are used within Builder to organize content entries. For more details, see Managing Content.
To get all folders and their content entries' IDs from your Builder Space, use the following query.
Query
Response
To get one folder by ID from your Builder Space, use the following query replacing "your-folder-id" with your model's unique ID.
Query
Response
What's next
Continue to explore the Admin API documentation or use the GraphQL Explorer to try out these queries with your own Space and Organization. Then, visit the Admin API GraphQL Schema for more details on how to modify your queries.