Data Sources
Create a data source
Changed onCreate a custom mapping data source.
post/v3/mapping_data_sources
Request
- Base URLhttps://api.affinda.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "My supplier list",
"organization": "mewlkWEKL",
"workspace": "mewlkWEKL",
"keyProperty": "value",
"displayProperty": "label",
"schema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"label"
],
"properties": {
"label": {
"type": "string"
},
"description": {
"type": "string"
}
}
}
}Response
Successfully created a mapping data source.
Example response
{
"identifier": "mEFayXdO",
"name": "My supplier list",
"keyProperty": "value",
"displayProperty": "value",
"organization": "mewlkWEKL",
"workspace": "mewlkWEKL",
"schema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"label"
],
"properties": {
"label": {
"type": "string"
},
"description": {
"type": "string"
}
}
}
}Changes
- info
api tag
Data Sourcesadded - info
api tag
Document API - Mapping Data Sourcesremoved
- info
- info
added the new optional request property
- info
the request property
became nullable - info
the request property
became optional - info
added the required property
to the response with the status
- info