importPreview Mutation
Description
Shows a preview of items for import from a provided JSON array and associates it with a specific upload job.
mutation importPreview($rows: JSON!, $id: String!) {
importPreview(rows: $rows, id: $id) {
timeEstimate
rows {
fields
error
newItem
newListing
listingId
itemId
}
}
}
Variables
{
"rows": {},
"id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"
}
Response
{
"importPreview": {
"timeEstimate": 42,
"rows": [
{
"fields": {},
"error": "example",
"newItem": true,
"newListing": true,
"listingId": 1.23,
"itemId": 1.23
}
]
}
}
Arguments
| Name | Type | Description |
|---|---|---|
rows | JSON! | Array of item data to preview before import. |
id | String! | Unique identifier for the import job. |