PreviewBulkGeneration
POST
/api/v1/t/{tenant}/generation/bulk/preview
const url = 'https://example.com/api/v1/t/example/generation/bulk/preview';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”tenant
required
string
Tenant slug
Request Bodyrequired
Section titled “Request Bodyrequired”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
fileId
null | string format: uuid
fileTypeId
null | string format: uuid
keyColumn
null | string
titlePattern
null | string
Responses
Section titled “ Responses ”OK
Media typeapplication/json
object
total
required
integer format: int32
documentsLeft
required
null | integer format: int64
keyField
required
null | string
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"}