---
title: "PUT /api/organizations/{organization_pk}/databases/{id}/"
method: PUT
path: "/api/organizations/{organization_pk}/databases/{id}/"
tags: ["organizations"]
---

# PUT /api/organizations/{organization_pk}/databases/{id}/

`PUT /api/organizations/{organization_pk}/databases/{id}/`

Replace all editable fields of a database owned by the specified organization.

## Path parameters

- `organization_pk` string, required
- `id` string, required

## Query parameters

- `q` string

## 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)
