---
title: "PUT /api/data-fields/{id}"
method: PUT
path: "/api/data-fields/{id}"
tags: ["api", "data-fields"]
---

# PUT /api/data-fields/{id}

`PUT /api/data-fields/{id}`

Update a Data Field

## Path parameters

- `id` string, required

## Request body

- PUTDataFieldsUpdateADataField
  - `title` string, nullable — The default title of the data field
  - `description` string, nullable — The default description of the data field
  - `isPersonalData` boolean — Whether the data field is personal data
  - `options` string[] — An array of options when type is select
  - `minLength` number, float, nullable — Minimum length for a text input
  - `maxLength` number, float, nullable — Maximum length for a text input
  - `settings` union
    - object — The settings of the upload document data field
      - `allowedMimeTypes` string[] — An array of allowed mime types
    - object — The settings of the signature data field
      - `document` object
        - `url` string, uri, required
        - `fileName` string, required
        - `mimeType` 'application/pdf', required
      - `documentName` string
      - `requireScrollthrough` boolean
    - object
      - `variant` 'date' | 'birthdate', required
      - `minimumAge` number, float, nullable
      - `maximumAge` number, float, nullable

## Response `200`

OK

- DataFieldResource
  - `_id` string, required — The ID of the data field
  - `sellerId` string, required — The ID of the seller of the data field
  - `name` string, required — The name of the data field
  - `title` string, nullable — The default title of the data field
  - `isPersonalData` boolean — Whether the data field is personal data
  - `description` string, nullable — The default description of the data field
  - `type` 'text' | 'number' | 'select' | 'checkbox' | 'tel' | 'country' | 'email' | 'date' | 'documentUpload' | 'signature' | 'address', required — The type of data field
  - `slug` string, required — The slug generated out of name
  - `options` string[] — An array of options when type is select
  - `minLength` number, float, nullable — Minimum length for a text input
  - `maxLength` number, float, nullable — Maximum length for a text input
  - `settings` union
    - object — The settings of the upload document data field
      - `allowedMimeTypes` string[] — An array of allowed mime types
    - object — The settings of the signature data field
      - `document` object
        - `url` string, uri, required
        - `fileName` string, required
        - `mimeType` 'application/pdf', required
      - `documentName` string
      - `requireScrollthrough` boolean
    - object
      - `variant` 'date' | 'birthdate', required
      - `minimumAge` number, float, nullable
      - `maximumAge` number, float, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/vivenu/apis/vivenu-api.md) · [All operations](https://skmtc.net/vivenu/apis/vivenu-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vivenu/vivenu-api/revisions/36be0dca14e7/schema)
