Create Custom Field

Request format

In order to create an custom field you must send a JSON:API spec JSON object representing a custom field.

Attributes

Attribute NameData typeRequired
namestringYes
field_typestring (one of: varchar, text, integer, decimal, date, boolean, single_select, multi_select)Yes
resource_typestring (one of: job, application, job_seeker, offer)Yes
sample_valuestringYes
optionsarrayOnly when using the single select or multi_select field_type
descriptionstringNo
positionintegerNo
requiredbooleanNo (defaults to false if not provided)

Field types

TypeDescription
varcharUsed when you expect the response to be a short amount of text (limit is 255 characters)
textUsed when you expect the response to be a large amount of text
integerUsed when you expect a whole number as the response
decimalUsed when you expect a decimal as the response
dateUsed when you expect a date as the response
booleanUsed when you expect true or false as the response
single_selectUsed when you want to enforce one option from a predefined list as the response
multi_selectUsed when you want to enforce one or more options from a predefined list as the response

Resource types

The resource type relates to the resource that the custom field belongs to. For example if it's job then you will be able to create custom_attributes on a job for this custom_field

Examples

{
  "data": {
    "type": "custom_fields",
    "attributes": {
      "name": "Job Custom Field",
      "field_type": "varchar",
      "sample_value": "Field sample value",
      "resource_type": "job"
    }
  }
}
{
  "data": {
    "type": "custom_fields",
    "attributes": {
      "name": "Select Custom Field",
      "field_type": "single_select",
      "options": ["Option one", "Option two"],
      "sample_value": "Option one",
      "resource_type": "job"
    }
  }
}
{
  "data": {
    "type": "custom_fields",
    "attributes": {
      "name": "Select Custom Field",
      "field_type": "varchar",
      "sample_value": "Field value",
      "resource_type": "job",
      "description": "Field description",
      "position": 1,
      "required": true,
    }
  }
}
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!