Logo of FrontifyDeveloper portalArrow to the right
GraphQL reference
Mutation

ingestCatalogRows():IngestCatalogRows
Beta

Ingests rows into a Catalog using an upsert approach. Send the requests for one Catalog one after the other: parallel requests can create duplicate rows. Send the JSON body as UTF-8 without Unicode escape sequences: an escaped body can be up to 3 times larger than its values, and a very large body fails before the size limits are checked.

All mutations have exactly one input field called input with a unique input and return type. This is useful to write mutations with variables, so there is always one single variable per mutation. This makes it easier to use and reuse them.

Input fields of IngestCatalogRowsInput
catalogId: ID!
Beta

The id of the Catalog to ingest rows into.

columnIds: [ID!]!
Beta

CatalogColumn IDs defining the order of values in each row. The columns must all be part of the Catalog. Each column may appear only once, and at most 100 columns are allowed.

rowValues: [[[String!]!]!]!
Beta

Row values positionally aligned with columnIds. Each cell is a list of strings: single-valued columns use a one-element list, multi-valued columns use N elements, and an empty list clears the cell. Each value has at most 4000 characters. One request accepts at most 200000 cells, where a cell with several values counts as one cell for each value, and at most 104857600 bytes (100 MiB) of values in UTF-8. Split larger data into several requests.

Fields of IngestCatalogRows
created:Int!
Beta

Number of new CatalogRow created.

updated:Int!
Beta

Number of existing CatalogRow updated.

skipped:Int!
Beta

Number of CatalogRow skipped (null primary key values).