Zum Inhalt springen

PreviewBulkGeneration

POST
/api/v1/t/{tenant}/generation/bulk/preview
curl --request POST \
--url https://example.com/api/v1/t/example/generation/bulk/preview \
--header 'Content-Type: application/json' \
--data '{ "idempotencyKey": "example", "templateDocumentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "tableKey": "example", "mapping": [ { "column": "example", "targetKey": "example" } ], "filing": { "kind": "None", "fileId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "fileTypeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "keyColumn": "example" }, "titlePattern": "example" }'
tenant
required
string

Tenant slug

Media typeapplication/json
object
idempotencyKey
required
string
templateDocumentId
required
string format: uuid
tableKey
required
string
mapping
required
Array<object>
object
column
required
string
targetKey
required
string
filing
required
object
kind
required
Allowed values: None Fixed ByKey
fileId
null | string format: uuid
fileTypeId
null | string format: uuid
keyColumn
null | string
titlePattern
null | string

OK

Media typeapplication/json
object
total
required
integer format: int32
documentsLeft
required
null | integer format: int64
keyField
required
null | string
rows
required
Array<object>
object
index
required
integer format: int32
rowKey
required
string
title
required
string
values
required
file
required
One of:
null
failure
required
One of:
null
Example
{
"rows": [
{
"failure": "RowMissing"
}
]
}

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

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