Custom Fields
Public API

Create Custom Field

Changed on

Create a new custom field.

OAuth Scopes: employee:custom_fields.write

post/api/v1/hris/custom-fields

Request

Request body

idstring

The id of the Custom Field to be edited

namestring

The name of the Custom Field to be edited / created

typestring

The type of the Custom Field to be edited / created

tabinteger

The id of the tab where the Custom Field will be added

sectioninteger

The id of the section where the Custom Field will be added

requiredboolean

Whether the Custom Field is required or not

optionsstring[]

The options of the Custom Field to be edited / created

Response

Custom field created.

idinteger

The id of the Custom Field

namestring

The name of the Custom Field

typestring

The type of the Custom Field

isEncryptedboolean

Whether the Custom Field is encrypted or not

isCalculatedboolean

Whether the Custom Field is calculated or not

isRequiredboolean

Whether the Custom Field is required or not

orderinteger

The order of the Custom Field

summarize'none' | 'total' | 'average'

The aggregation applied when computing totals for this field. Only meaningful for custom table columns; always "none" for standalone custom fields and for the custom table object itself.

valuesstring[]

The values of the Custom Field

Changes