Create a custom field (v2)
Changed onCreate 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.
Request
- Base URL: https://api.prod.getdex.com
- URL: https://api.prod.getdex.com/v2/custom-fields/
- Auth: HTTP bearer
Headers
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
booleanenum value to the request property/ - info
added the new
contactenum value to the request property/ - info
added the new
multiselectenum value to the request property/ - info
added the new
numberenum value to the request property/
- info
- info
added the new
teammateenum value to the request property/ - info
added the optional property
//to the response with the status
- info