Skip to main content
POST
Export the entries of a card definition to a file

Authorizations

Authorization
string
header
required

Sign in with the existing Occtoo Studio identity and selected organization.

Path Parameters

cardId
string
required

Raw id of the card definition (e.g. products).

Body

application/json

Holds what to export from a card definition.

format
null | any

Format of the file. Required. See FileFormat.

Available options:
Excel,
CSV,
null
where
null | object

Selects the entries to export, in the form card entry search takes. Omitted or null exports every entry.

language
null | string

Language code where uses for localized card properties. Default en. It doesn't pick the exported languages.

properties
null | string[]

Ids of the card properties to export. Omitted or null exports every card property that isn't hidden.

languages
null | string[]

Language codes to export. Omitted or null exports the tenant's default language.

includeTimestamp
boolean
default:false

True adds each entry's timestamp to the file. Default false.

delimiter
null | string

Delimiter that joins list values in the file. Omitted or null uses each card property's own delimiter.

filename
null | string

Name of the file, without extension: the format adds it. Default: the card definition id.

Response

Accepted

An export of the entries of a card definition to a file. Read it until status is final.

id
string<uuid>
required

Id of the export (a UUID). Use with /v1/card-definitions/{cardId}/exports/{exportId}.

status
enum<string>
required

Where the export is. See CardExportStatus.

Available options:
Pending,
InProgress,
Completed,
Failed,
Cancelled
progress
required

Share of entries written, 0 to 100 (percent). Null while the entry count is unknown.

totalEntries
required

Entries the export matches.

processedEntries
required

Entries written to the file so far.

createdAt
string<date-time>
required

When the export was started (UTC).

updatedAt
string<date-time>
required

When the export last changed (UTC).

expiresAt
string<date-time>
required

When the export and its file stop being kept (UTC).

file
null | object
required

The file, once it is ready to download. Null until then, and null after expiresAt.