Skip to main content
PATCH
Update a data point

Authorizations

Authorization
string
header
required

Basic authentication using an API key, e.g. {Authorization: Bearer aff_0bb4fbdf97b7e4111ff6c0015471094155f91}. You can find your API key within the Settings page of the Affinda web app. You can obtain an API key by signing up for a free trial.

Path Parameters

identifier
string
required

DataPoint's identifier Uniquely identify a data point.

Example:

"XprEvgai"

Body

application/json

Data point to update

name
string

Name of the data point.

slug
string

A camelCase string that will be used as the key in the API response.

description
string | null
parent
string | null

The identifier of the parent data point if applicable.

Example:

"DdCbJhhx"

mappingDataSource
string | null

If populated, the model will learn to predict this field using the data source, rather than relying on fuzzy string matching.

Example:

"mEFayXdO"

Response

Successfully updated data point.

identifier
string
required

Uniquely identify a data point.

Example:

"XprEvgai"

name
string
required

Name of the data point.

slug
string
required

A camelCase string that will be used as the key in the API response.

annotationContentType
enum<string>
required

The different data types of annotations

Available options:
text,
integer,
float,
decimal,
date,
datetime,
daterange,
boolean,
enum,
location,
phonenumber,
json,
table,
expectedremuneration,
jobtitle,
language,
skill,
yearsexperience,
group,
table_deprecated,
url,
image,
docclf
organization
object | null
required
extractor
string | null
required

Uniquely identify an extractor.

Example:

"resume"

description
string | null
multiple
boolean
noRect
boolean
parent
string | null

The identifier of the parent data point if applicable.

Example:

"DdCbJhhx"

children
array
availableDataSources
object[]
mappingDataSource
string | null

If populated, the model will learn to predict this field using the data source, rather than relying on fuzzy string matching.

Example:

"mEFayXdO"

manualEntry
boolean

If true, the model will not be used to predict this data point. Instead, the user will be able to manually enter the value in the validation tool.