SnozeDevelopers
API referenceDatabases

Update a field on a database

Changes a field's label, requiredness, default, options, order or settings, and runs a planned type conversion when `kind` changes - a conversion whose plan drops values is refused unless the caller sets `acceptDropped`. Requires the `databases:write` permission and responds with not-found for an unknown field. Send an `Idempotency-Key` header to make retries safe; a replay within the window returns the original response.

PATCH
/v1/workspaces/{workspaceId}/databases/{databaseId}/fields/{fieldId}

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
databaseId*string
fieldId*string

Request Body

application/json
  1. body
label?string|null
kind?|null
required?boolean|null
defaultValue?string|number|boolean|array<string>|null|null
options?array<>|null
settings?|null
order?number|null
acceptDropped?boolean|null
clientMutationId?string|null

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://api.snoze.dev/v1/workspaces/string/databases/string/fields/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "id": "string",    "workspaceId": "string",    "databaseId": "string",    "key": "string",    "label": "string",    "kind": "text",    "required": true,    "defaultValue": "string",    "options": [      {        "id": "string",        "key": "string",        "name": "string",        "color": "string",        "order": 0      }    ],    "settings": {},    "order": 0,    "createdAt": "string",    "updatedAt": "string"  }}