Adding custom data
To be able to add custom data to a candidate, the data point needs to be first created for your Organization. Custom data points can be any of the following types:- Boolean (true / false)
- Date
- Number
- String
1. Creating a new record
Create a new candidate record by sending a resume data object (i.e. without parsing a document) that includes the custom data field. For more information, see Adding and Updating Candidates Data.2. Updating an existing candidate record
Creating an initial annotation To populate the custom fields, customers can add annotations using the Post Annotations API. Required details include:- Document: The unique identifier for the document to be updated
- Page Index: Set to 0 where the data point doesn’t exist on the document
- Field: Custom field’s unique identifier
- Parsed Value: The post-processed value (e.g., “AU” for Australia)
- **Annotation ID: **Created after the first document patch
- Document: The unique identifier for the document to be updated
- Page Index: Set to 0 where the data point doesn’t exist on the document
- Parsed Value: The post-processed value (e.g., “AU” for Australia)
Searching via API
Once added, the custom fields can then be easily searched via the API.- Use the standard [search endpoint] [LINK]
- Specifying the custom fields to search within the request, where:
- “filterType” is either ‘equals’ or ‘range’
- “dataPoint” is the custom field name
- “value” is the search criteria
- [“gte”: “2022-12-01”, “lte”: “2022-12-31”] – between 1-Dec-22 and 31-Dec-22
- [“lte”: “2022-12-31”] – before 31-Dec-22
- [“gte”: “2022-12-01”] – on or after 1-Dec-22