> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/api-reference/database/schemas/update-database-schema-list-settings.md).

# Update Database Schema List Settings

Replaces a schema's records-list settings — columns, their order and the default sort.

Replaces the records-list display settings of one collection. This is a **full replace**, not a patch: read the current settings with [Get Database Schema List Settings](/codemash/api-reference/database/schemas/get-database-schema-list-settings.md), change what you need and send the complete object back. The settings are not part of the schema's draft / publish cycle — they apply at once.

`PUT /{version}/database/schemas/{Id}/list-settings`

| Field                 | Meaning                                                                                                                                                                      |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id` (required)       | The schema id (`sch_…`).                                                                                                                                                     |
| `settings` (required) | `{ columns: [{ field }], defaultSort: { field, order } }`, e.g. `{ "columns": [{"field":"title"}, {"field":"amount"}], "defaultSort": { "field": "amount", "order": -1 } }`. |

Permission: `database:update` on the schema. AI tool: `update_database_schema_list_settings`.

{% openapi src="/files/0gOkqzp7kyziG9XPpCBy" path="/{version}/database/schemas/{Id}/list-settings" method="put" %}
[norbix-hub-swagger.json](https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-7c7445e68689b62620e59cb01a3523deb46b865b%2Fnorbix-hub-swagger.json?alt=media)
{% endopenapi %}

## In Cloud

Schema builder → **List** tab (it saves the whole column list on every change) — see [Schema Indexes](/codemash/cloud/database/collections/schema-indexes.md).

## Use it from code

TS `norbix.hub.database.updateDatabaseSchemaListSettings({ id, settings })` · Python `hub.database.update_database_schema_list_settings(id, settings={…})` · Go `c.Hub.Database.UpdateDatabaseSchemaListSettings(…)` · .NET `UpdateDatabaseSchemaListSettingsAsync(new UpdateDatabaseSchemaListSettingsRequest { … })`.
