Skip to Content
Custom fields

Create Custom Enum

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/enums

Creates a reusable pick list. The key and the option values are immutable.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key for authentication

Path Parameters

organizationId*string

The ID or slug of the organization

Request Body

application/json
  1. body
key*string
Match^[a-z][A-Za-z0-9]{0,63}$
label*string
Length1 <= length <= 120
description?string|null
options*array<>
Items1 <= items <= 200

Response Body

OK

application/json
  1. response
Example Request
curl -X POST 'https://api.tillor.eu/orgs//custom-fields/enums' \  -H 'Content-Type: application/json' \  -d '{  "key": "string",  "label": "string",  "options": [    {      "value": "string",      "label": "string"    }  ]}'
Example Response
null