To learn how to modify an entity programmatically, seeUpdating an entity.
Before you begin
This page assumes you have already created an entity that is stored in
Firestore in Datastore mode. You can create an entity through the
Datastore API as described inGetting Started with the Datastore API, or through the entity
editor in theGoogle Cloud consoleas described in theQuickstart.
Select an entity to edit
In the Google Cloud console, go to theDatabasespage.
Select the required database from the list of databases.
In the navigation menu, clickDatastore Studio.
Find the entity you want to edit by specifying the namespace, kind, and/or
filters for property values. To learn how, seeRun a query.
Click on theName/IDof an entity. Your screen should look similar to the
following:
Edit a property
Open theEdit Entitypage for an entity.
UnderProperties, clickEditeditfor the property you want to edit.
In theEdit propertypane, modify the property'sName,Type,
orValue. You can also modify whether the property is indexed. To learn
about the impact of including or excluding a property from indexes, seeExcluded properties.
ClickDone. TheEdit propertypane closes and the
properties table now shows your changes. Changes are not committed
to the database until you clickSave. The properties table highlights
uncommitted changes with a blue dot next to the property name.
Make additional changes to other properties. When you complete your edits,
clickSaveto commit your changes to the database.
The console commits your changes and takes you back to theDatastore Studiopage.
Add a property
Open theEdit Entitypage for an entity. ClickAdd property.
In theAdd a propertypane, specify a name for the property.
Select a type for the property's data type.
Specify a value for the property.
Specify whether the property is indexed. To learn about the impact of including or excluding a property from
indexes, seeExcluded properties.
ClickAdd. TheAdd a propertypane closes and the
properties table now shows your changes. Changes are not committed
to the database until you clickSave. The properties table highlights
uncommitted changes with a blue dot next to the property name.
Make additional changes to other properties. When you complete your edits,
clickSaveto commit your changes to the database.
The console commits your changes and takes you back to theDatastore Studiopage.
Delete a property
Open theEdit Entitypage for an entity. UnderProperties, clickDeletedeletefor the property you want to delete.
The properties table now shows your changes. Changes are not
committed to the database until you clickSave. The properties table
highlights uncommitted property deletions with crossed out names and property
values.
You can undo an uncommitted deletion by clickingRestorein the property's table row.
Make additional changes to other properties. When you complete your edits,
clickSaveto commit your changes to the database.
Complex properties
The entity editor supports properties with complex types such asArrayandEmbedded entity.
Array properties
When you add or modify the value of anArrayproperty, provide a value in JSON
format.
If you enter invalid JSON for theValuefield you will receive an error
message. You will not be able to add the property if the JSON is invalid.
Embedded entity properties
When you add or modify the value of anEmbedded entityproperty, provide a
value in JSON format.
If you enter invalid JSON for theValuefield you will receive an error
message. You will not be able to add the property if the JSON is invalid.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis guide details the process of editing entities within the Google Cloud console's Datastore Studio, which assumes an entity has already been created in Firestore in Datastore mode.\u003c/p\u003e\n"],["\u003cp\u003eTo edit an entity, you can find the entity in Datastore Studio, and then on the Edit Entity page you can modify a property's name, type, value, or index status, or add new properties with specific data types and index settings.\u003c/p\u003e\n"],["\u003cp\u003eYou can also delete a property from an entity, with uncommitted deletions being highlighted and restorable, and remember that no changes are saved to the database until you click "Save".\u003c/p\u003e\n"],["\u003cp\u003eWhen working with array or embedded entity properties, it is required that you input values in valid JSON format to prevent errors.\u003c/p\u003e\n"]]],[],null,["# Edit an entity in the console\n\nThis page describes how to edit an entity using the [Google Cloud console](https://console.cloud.google.com/).\n\nTo learn how to modify an entity programmatically, see [Updating an entity](/datastore/docs/concepts/entities#updating_an_entity).\n\nBefore you begin\n----------------\n\nThis page assumes you have already created an entity that is stored in\nFirestore in Datastore mode. You can create an entity through the\nDatastore API as described in\n[Getting Started with the Datastore API](/datastore/docs/datastore-api-tutorial), or through the entity\neditor in the [Google Cloud console](https://console.cloud.google.com/) as described in the [Quickstart](/datastore/docs/store-query-data).\n\nSelect an entity to edit\n------------------------\n\n1. In the Google Cloud console, go to the **Databases** page.\n\n [Go to Databases](https://console.cloud.google.com/datastore/databases)\n2. Select the required database from the list of databases.\n\n3. In the navigation menu, click **Datastore Studio**.\n\n4. Find the entity you want to edit by specifying the namespace, kind, and/or\n filters for property values. To learn how, see [Run a query](/datastore/docs/store-query-data#run_a_query).\n\n5. Click on the **Name/ID** of an entity. Your screen should look similar to the\n following:\n\n### Edit a property\n\n1. Open the **Edit Entity** page for an entity.\n Under **Properties** , click **Edit** edit for the property you want to edit.\n\n | **Tip:** You can filter the properties table. Click **Filter properties** at the top of the table.\n2. In the **Edit property** pane, modify the property's **Name** , **Type** ,\n or **Value** . You can also modify whether the property is indexed. To learn\n about the impact of including or excluding a property from indexes, see\n [Excluded properties](/datastore/docs/concepts/indexes#unindexed_properties).\n\n3. Click **Done** . The **Edit property** pane closes and the\n properties table now shows your changes. Changes are not committed\n to the database until you click **Save**. The properties table highlights\n uncommitted changes with a blue dot next to the property name.\n\n4. Make additional changes to other properties. When you complete your edits,\n click **Save** to commit your changes to the database.\n\n The console commits your changes and takes you back to the **Datastore Studio** page.\n\n### Add a property\n\n1. Open the **Edit Entity** page for an entity. Click **Add property**.\n2. In the **Add a property** pane, specify a name for the property.\n3. Select a type for the property's data type.\n4. Specify a value for the property.\n5. Specify whether the property is indexed. To learn about the impact of including or excluding a property from\n indexes, see [Excluded properties](/datastore/docs/concepts/indexes#unindexed_properties).\n\n6. Click **Add** . The **Add a property** pane closes and the\n properties table now shows your changes. Changes are not committed\n to the database until you click **Save**. The properties table highlights\n uncommitted changes with a blue dot next to the property name.\n\n7. Make additional changes to other properties. When you complete your edits,\n click **Save** to commit your changes to the database.\n\n The console commits your changes and takes you back to the **Datastore Studio** page.\n\n### Delete a property\n\n1. Open the **Edit Entity** page for an entity. Under **Properties** , click\n **Delete** delete\n for the property you want to delete.\n\n2. The properties table now shows your changes. Changes are not\n committed to the database until you click **Save**. The properties table\n highlights uncommitted property deletions with crossed out names and property\n values.\n\n You can undo an uncommitted deletion by clicking **Restore**\n in the property's table row.\n3. Make additional changes to other properties. When you complete your edits,\n click **Save** to commit your changes to the database.\n\nComplex properties\n------------------\n\nThe entity editor supports properties with complex types such as `Array` and\n`Embedded entity`.\n\n### Array properties\n\nWhen you add or modify the value of an `Array` property, provide a value in JSON\nformat.\n\nIf you enter invalid JSON for the **Value** field you will receive an error\nmessage. You will not be able to add the property if the JSON is invalid.\n\n### Embedded entity properties\n\nWhen you add or modify the value of an `Embedded entity` property, provide a\nvalue in JSON format.\n\nIf you enter invalid JSON for the **Value** field you will receive an error\nmessage. You will not be able to add the property if the JSON is invalid.\n\nWhat's next\n-----------\n\n- Learn about [best practices for entities](/datastore/docs/best-practices#entities)."]]