Skip to content

ProposeImporterMapping

POST
/api/v1/t/{tenant}/intelligence/import-mapping
curl --request POST \
--url https://example.com/api/v1/t/example/intelligence/import-mapping \
--header 'Content-Type: application/json' \
--data '{ "tableKey": "example", "source": { "kind": "dataSource", "key": "example", "path": "example", "paging": { "kind": "linkHeader" } }, "rows": { "jsonPath": "example", "sheet": "example", "delimiter": "example", "headerRow": 1 } }'
tenant
required
string

Tenant slug

Media typeapplication/json
object
tableKey
required
string
source
required
Any of: discriminator: kind
object
kind
required
string
Allowed values: dataSource
key
required
string
path
required
string
paging
One of:
null
rows
One of:
null

OK

Media typeapplication/json
object
mapping
required
object
rows
required
object
jsonPath
null | string
sheet
null | string
delimiter
null | string format: char
>= 1 characters <= 1 characters
headerRow
integer format: int32
default: 1
columns
required
Array<object>
object
columnKey
required
string
sourcePath
required
null | string
conversion
required
Any of: discriminator: kind
object
kind
required
string
Allowed values: text
filters
required
Array<object>
object
sourcePath
required
string
operator
required
Allowed values: Is IsIn IsNotEmpty
values
required
Array<string>
dropped
required
integer format: int32
credits
required
integer format: int32
withheld
integer format: int32
0
Example
{
"mapping": {
"rows": {
"headerRow": 1
},
"columns": [
{
"conversion": {
"kind": "text"
}
}
],
"filters": [
{
"operator": "Is"
}
]
},
"withheld": 0
}

Bad Request

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
errors
object
key
additional properties
Array<string>
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

Forbidden

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Conflict

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Payload Too Large

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Unprocessable Entity

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Too Many Requests

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Service Unavailable

Media typeapplication/problem+json
object
type
null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}