Skip to Content
Custom fields

Convert Custom Field Type

Toegang

Lid van de organisatie met dit recht:

  • custom-fields:manage

Een API-sleutel met scopes heeft het recht ook in zijn scopes nodig.

POST
/orgs/{organizationId}/custom-fields/definitions/{id}/convert

Changes the field's type and rewrites every stored value in one transaction. Text, numbers, amounts, yes/no, dates and pick lists convert into each other; a value that does not fit refuses the change (409) unless clearUnconvertible clears it.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key for authentication

Path Parameters

organizationId*string

The ID or slug of the organization

id*string

Request Body

application/json
  1. body
memberPath?string
Match^[a-z][A-Za-z0-9]{0,63}(\.[a-z][A-Za-z0-9]{0,63}){0,3}$
type*string
Value in"TEXT""LONG_TEXT""NUMBER""CURRENCY""BOOLEAN""DATE""SELECT""MULTI_SELECT""REFERENCE""GROUP""LIST""FILE""JSON"
enumId?string
Length1 <= length
createEnumFromValues?boolean
Defaultfalse
clearUnconvertible?boolean
Defaultfalse

Response Body

OK

application/json
  1. response
Example Request
curl -X POST 'https://api.tillor.eu/orgs//custom-fields/definitions/string/convert' \  -H 'Content-Type: application/json' \  -d '{  "type": "TEXT"}'
Example Response
null