post https://api.factorialhr.com/api/v2/custom_fields/fields
This endpoint allows you to create custom fields you must provide these parameters
- label: custom field visible name for example
T shirt size
- slug_name: the resource that you want to save the custom field, for example to savet-shirt size
field in employee you must useemployees-questions
value - field_type: the kind of field value you want to store: text (input), long text (text area), number (input number) or single choice (select input) - required: You can set if the field is mandatory - visible: You can set the roles can see the field (own, reportees, team leader or everybody) - editable: You can set the roles can edit the field (own, reportees, team leader or everybody) - choice_options: You can provide an array of choices to set the options of a single choice field