custom-fields

Create a custom field (v2)

Changed on

Create ONE custom field definition. Accepts name, field_type (input | autocomplete | datepicker; in a workspace also teammate, multiselect, number, boolean and contact, which Personal Dex refuses with 400), and categories (the options of autocomplete and multiselect only, as [{ category }]). Ranking is assigned automatically (appended last). In a workspace (X-Dex-Workspace), only owners and admins may create one, with an API key too. Requires Idempotency-Key. Returns { data: { custom_field: {...} } } with status 201.

post/v2/custom-fields/

Request

  • Base URL: https://api.prod.getdex.com
  • URL: https://api.prod.getdex.com/v2/custom-fields/
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required
Example:01HV8N6X7K3P9Q5R2T4Y6W8Z0A

Required. UUID per logical operation, reused on every retry. See apps/rest-api/src/shared/idempotency.ts for the full contract. Missing → 400 BadRequest; same key + different body → 409 Conflict.

Request body

Response

Created

Changes

    • info

      added the new boolean enum value to the request property /

    • info

      added the new contact enum value to the request property /

    • info

      added the new multiselect enum value to the request property /

    • info

      added the new number enum value to the request property /

    • info

      added the new teammate enum value to the request property /

    • info

      added the optional property // to the response with the status