--- title: "SetObjectProperty" slug: "setobjectproperty" updated: 2024-11-07T18:50:58Z published: 2024-11-07T18:50:58Z canonical: "docs.datajet.app/setobjectproperty" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.datajet.app/llms.txt > Use this file to discover all available pages before exploring further. # SetObjectProperty **NOTE: Internal Development use only** Sets and unsets object properties. | Key | Value(s) | Description | | --- | --- | --- | | method | "SetObjectProperty" | Sets and unsets object properties. | | name | "ObjectName" | Required. Name of object to modify. | | property | "PropertyName " | Property to modify | | value | "PropertyValue" | Value to set | | project | "ProjectName" | Current Project Name | ### Available Properties: | Property | Value | Description | Additional Properties | | --- | --- | --- | --- | | "DELETEPROTECT" | "true" "false" | If true, object cannot be deleted. | | | "hideintree" | "true" "false" | Shows/Hides listed data objects in project | "names": [ "table1.field1", "table2.field2", "..." ] "names":[ "table1.*" ] | #### Example - Delete Protection ```json { "method": "SetObjectProperty", "name": "Customer", "propery": "DELETEPROTECT", "value": "true", "project": "MyDemonstration" }, ``` #### Example - Show/Hide fields The following sets the list of fields that are to be visible in the tree ```json { "method": "SetObjectProperty", "project": "Demo", "property": "hideintree", "value": false, "names": [ "DATA_S1.address_code", "DATA_S1.zipplus4" ] } ``` ```json { "method": "SetObjectProperty", "property": "hideintree", "value": true, "names": [ "BikeTripData.*" ], "project": "CONSUMER_Test1" } ```