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

# Update Database Schema Draft

A **schema** defines a collection's fields, types, and validation. Schemas support drafts, versions, and publishing.

This endpoint updates the database schema draft — only the fields you send are changed.

{% openapi src="/files/sSNsrg46S1BBoQLfucLf" path="/{version}/database/schemas/{Id}/draft" method="put" %}
[norbix-hub-swagger.json](https://760328771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LwSkuCpTNI_AerL8J2a%2Fuploads%2Fgit-blob-1c88e0eff2a2e768b59c83c5f279cafc05fb5e77%2Fnorbix-hub-swagger.json?alt=media)
{% endopenapi %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Database](/norbix-cloud/database/collections/schema.md).

## Use it from code

Every Norbix SDK exposes this endpoint as a method — see [Update Database Schema Draft](/sdks-and-cli/database/schemas/update-database-schema-draft.md) in the SDK reference, with examples in every language.
