Zum Inhalt springen

CreateDataTableImporter

POST
/api/v1/t/{tenant}/data-tables/{tableKey}/importers
curl --request POST \
--url https://example.com/api/v1/t/example/data-tables/example/importers \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "source": { "kind": "dataSource", "key": "example", "path": "example", "paging": { "kind": "linkHeader" } }, "mapping": { "rows": { "jsonPath": "example", "sheet": "example", "delimiter": "example", "headerRow": 1 }, "columns": [ { "columnKey": "example", "sourcePath": "example", "conversion": { "kind": "text" } } ], "filters": [ { "sourcePath": "example", "operator": "Is", "values": [ "example" ] } ] }, "schedule": { "kind": "manual" }, "mode": "Replace" }'
tenant
required
string

Tenant slug

tableKey
required
string
Media typeapplication/json
object
name
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
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>
schedule
required
Any of: discriminator: kind
object
kind
required
string
Allowed values: manual
mode
Allowed values: Replace Upsert

Created

Media typeapplication/json
object
id
required
string format: uuid
name
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
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>
schedule
required
Any of: discriminator: kind
object
kind
required
string
Allowed values: manual
mode
required
Allowed values: Replace Upsert
ownerId
required
string format: uuid
state
required
Allowed values: Paused Active Failing
consecutiveFailures
required
integer format: int32
lastSucceededAt
required
null | string format: date-time
running
required
boolean
updatedAt
required
string format: date-time
version
required
integer format: uint32
Example
{
"source": {
"kind": "dataSource",
"paging": {
"kind": "linkHeader"
}
},
"mapping": {
"rows": {
"headerRow": 1
},
"columns": [
{
"conversion": {
"kind": "text"
}
}
],
"filters": [
{
"operator": "Is"
}
]
},
"schedule": {
"kind": "manual"
},
"mode": "Replace",
"state": "Paused"
}

Bad Request

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"
}

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

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"
}

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"
}