slug (path) - Unique slug of the Type| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Field name (e.g., "Product Name") |
refID | string | Yes | Unique identifier of the field (e.g., "product_name") |
type | string | Yes | Field type: inputText, EnlNumber, EnlDate, EnlSelect, EnlBoolean, email |
required | boolean | No | Whether the field is required (default: false) |
{
"name": "Category",
"slug": "category",
"type": "select",
"required": true,
}curl --location --request POST 'https://api-develop.enspace.io/ws/types/produtos/fields' \
--header 'x-api-key: <api-key>' \
--header 'en-workspace: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "campo teste",
"refId": "campo_teste",
"type": "inputText"
}'