---
title: "PATCH /api/databases/{id}/"
method: PATCH
path: "/api/databases/{id}/"
tags: ["databases"]
---

# PATCH /api/databases/{id}/

`PATCH /api/databases/{id}/`

Update selected fields of a database the authenticated user owns, such as its name.

## Path parameters

- `id` string, required

## Request body

- Database
  - `id` string, uuid
  - `name` string, required
  - `organization_id` string
  - `created_at` string, date-time
  - `enforce_schema` boolean — Enforce the JSON Schema for database records
  - `owner_field` string, nullable — Field indicating the record owner
  - `user` string
  - `type` 'Key-Value' | 'Asset'
  - `last_write_at` string, date-time
  - `num_records` integer

## Response `200`

---

[API](https://skmtc.dev/pixiebrix/apis/pixiebrix-api.md) · [All operations](https://skmtc.dev/pixiebrix/apis/pixiebrix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pixiebrix/pixiebrix-api/revisions/941ab9eb01d6/schema)
