Skip to main content

Standard custom field sets

In the examples provided for standard custom fields sets, we assume we have a custom field set with ID _employer_information and it contains a total of two custom field definitions with IDs company and position.

Standard custom field set examples:

Affecting a single custom field value in a custom field set

Adding a value to a single custom field definition in a custom field set

[
{
"op": "ADD",
"path": "/_employer_information/company",
"value": "Google"
}
]

To add, replace, or remove a value for a single custom field definition in a custom field set, pass the custom field set ID and the custom field definition ID to the path property. To add or replace a value, enter it directly to the value property. To remove a value, do not include the value property in the JSON object.

In the example to the right, we are adding a value for the company custom field definition.

Affecting all the custom field definitions in a custom field set

Replacing all the custom field values in a custom field set

[
{
"op": "REPLACE",
"path": "/_employer_information",
"value": {
"company": "Amazon",
"position": "senior frontend developer"
}
}
]

To add, replace, or remove all the custom field values in a custom field set, pass the custom field set ID to the path property. To add or replace values, provide an object with all the custom field values within the custom field set to the value property including the custom field value you are adding or replacing. To remove values, do not include the value property in the JSON object.

In the example to the right, we are replacing the values for both the company and position custom field definitions.

note

When adding or replacing values, if you omit any custom field definitions that are part of the custom field set then their values will be removed.

In the first example to the right, we are removing the value for the company custom field definition.

In the second example to the right, we are removing the values for all the custom field definitions in the _employer_information custom field set.

Removing one custom field value from the custom field set

[
{
"op": "REMOVE",
"path": "/_employer_information/company"
}
]

Removing all the custom field values from a custom field set

[
{
"op": "REMOVE",
"path": "/_employer_information"
}
]