{"__v":32,"_id":"5744b7635ab5ed0e00e33fc4","category":{"__v":0,"_id":"5744b218f9c7411700ce560e","project":"54774d9af3736008009e9e0e","version":"56a0bd9e3697d80d002ac5e7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-05-24T19:57:12.539Z","from_sync":false,"order":12,"slug":"classes","title":"Data Classes"},"parentDoc":null,"project":"54774d9af3736008009e9e0e","user":"56703d17e10ecb0d0004eed8","version":{"__v":20,"_id":"56a0bd9e3697d80d002ac5e7","project":"54774d9af3736008009e9e0e","createdAt":"2016-01-21T11:14:38.131Z","releaseDate":"2016-01-21T11:14:38.131Z","categories":["56a0bd9f3697d80d002ac5e8","56a0bd9f3697d80d002ac5e9","56a0bd9f3697d80d002ac5ea","56a0bd9f3697d80d002ac5eb","56b098a43a5b810d00745e3f","56b098da8f7a4f0d0029dd10","56d5a8ecf612b80b00fb69cd","570989853ab43c0e0072b2d6","571006aa10300c0e007f6133","5735a52431a73b1700887ca0","5744b0529e045c0e00b7a7a2","5744b1d0b56d431700d8a4fb","5744b1fb55d65a0e00b436e1","5744b218f9c7411700ce560e","5744b220f9c7411700ce560f","5744b2259e045c0e00b7a7a7","5744b22cf8b79f0e00de6a2d","5744b23155d65a0e00b436e4","5744b242c758290e00fbc235","5744b2569e045c0e00b7a7a8","5756a3f2bb92962900dafe3d","57ee23e81e42900e0014a42f","581c822c98676e0f00d240ef"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Sockets","version_clean":"1.1.0","version":"1.1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-24T20:19:47.562Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"After you [create a Data Class](doc:classes-creating-a-class), you can edit it to update the schema of the data class, edit the color or icon, or [edit the permissions of the data class](doc:permissions). To do this, open your [Dashboard](https://dashboard.syncano.io), click on \"Data Classes in the left sidebar, and click the **three dot edit button** on the right side of the data class row as seen below:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/1VDAuqLzRNi3UU2CtSsr_Screen%20Shot%202016-06-15%20at%2011.27.00%20AM.png\",\n        \"Screen Shot 2016-06-15 at 11.27.00 AM.png\",\n        \"1165\",\n        \"57\",\n        \"#52a4fa\",\n        \"\"\n      ],\n      \"caption\": \"Example Data Class row\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Data Class names are permanent!\",\n  \"body\": \"Remember, the name you chose when you created the data class cannot be changed.\"\n}\n[/block]\n### Adding new fields\n\nAfter you click the edit button as stated above, you'll be presented with the following screen:\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/sfCcsQ0IQzs2QC1VBoZH_Field_types.png\",\n        \"Field_types.png\",\n        \"1279\",\n        \"655\",\n        \"#697c9e\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nHere you can edit the Data Class description, the [permissions set on this data class](doc:permissions), and also the data class fields. You can read more about custom field types in the [Data Field Types chapter](doc:classes-data-field-types).\n\nYou can **add** or **remove** fields but not _update_ them. This is makes sure that all of the Data Objects inside this data class have the same fields. Updating a field might cause the properties of the Data Objects to be different.\n\nWhile adding or removing a field, you can choose the name, the type of field ([described more here](doc:classes-data-field-types)), or choose if you want to [filter or order](doc:data-objects-filtering-ordering) the objects.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Remember to save!\",\n  \"body\": \"Before you close the Edit modal, remember to click \\\"Add\\\" on any new fields, and click \\\"Confirm\\\" to save the edits!\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Learn More\",\n  \"body\": \"For more details about the available methods for data classes, visit the [Data Classes API reference](http://docs.syncano.com/v0.1.1/docs/classes-list).\"\n}\n[/block]","excerpt":"In this chapter you will learn how to modify your data class and it's respective property fields (schema)","slug":"classes-making-modifications","type":"basic","title":"Making Modifications"}

Making Modifications

In this chapter you will learn how to modify your data class and it's respective property fields (schema)

After you [create a Data Class](doc:classes-creating-a-class), you can edit it to update the schema of the data class, edit the color or icon, or [edit the permissions of the data class](doc:permissions). To do this, open your [Dashboard](https://dashboard.syncano.io), click on "Data Classes in the left sidebar, and click the **three dot edit button** on the right side of the data class row as seen below: [block:image] { "images": [ { "image": [ "https://files.readme.io/1VDAuqLzRNi3UU2CtSsr_Screen%20Shot%202016-06-15%20at%2011.27.00%20AM.png", "Screen Shot 2016-06-15 at 11.27.00 AM.png", "1165", "57", "#52a4fa", "" ], "caption": "Example Data Class row" } ] } [/block] [block:callout] { "type": "warning", "title": "Data Class names are permanent!", "body": "Remember, the name you chose when you created the data class cannot be changed." } [/block] ### Adding new fields After you click the edit button as stated above, you'll be presented with the following screen: [block:image] { "images": [ { "image": [ "https://files.readme.io/sfCcsQ0IQzs2QC1VBoZH_Field_types.png", "Field_types.png", "1279", "655", "#697c9e", "" ] } ] } [/block] Here you can edit the Data Class description, the [permissions set on this data class](doc:permissions), and also the data class fields. You can read more about custom field types in the [Data Field Types chapter](doc:classes-data-field-types). You can **add** or **remove** fields but not _update_ them. This is makes sure that all of the Data Objects inside this data class have the same fields. Updating a field might cause the properties of the Data Objects to be different. While adding or removing a field, you can choose the name, the type of field ([described more here](doc:classes-data-field-types)), or choose if you want to [filter or order](doc:data-objects-filtering-ordering) the objects. [block:callout] { "type": "warning", "title": "Remember to save!", "body": "Before you close the Edit modal, remember to click \"Add\" on any new fields, and click \"Confirm\" to save the edits!" } [/block] [block:callout] { "type": "info", "title": "Learn More", "body": "For more details about the available methods for data classes, visit the [Data Classes API reference](http://docs.syncano.com/v0.1.1/docs/classes-list)." } [/block]