Preview a mutation

POST

Preview the results of a mutation

Headers

X-Disable-Hooks"true"Required

Request

This endpoint expects an object.
sheetIdstringRequired

Sheet ID

mutateRecordstringRequired

A JavaScript function that will be run on each record in the sheet, it should return a mutated record.

mutationIdstringOptional

If the mutation was generated through some sort of id-ed process, this links this job and that process.

snapshotLabelstringOptional

If specified, a snapshot will be generated with this label

snapshotIdstringOptional

The generated snapshotId will be stored here

filterenumOptional
Allowed values: validerrorallnone

Options to filter records

filterFieldstringOptional

Use this to narrow the valid/error filter results to a specific field

searchValuestringOptional

Search for the given value, returning matching rows. For exact matches, wrap the value in double quotes (“Bob”). To search for null values, send empty double quotes ("")

searchFieldstringOptional

Use this to narrow the searchValue results to a specific field

qstringOptional
idslist of stringsOptional

The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as ‘searchValue’, or a ‘filter’ of ‘valid’ | ‘error’ | ‘all’, the ‘ids’ param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the ‘ids’ param will limit the dataset to INCLUDE just those specific records

Response

This endpoint returns an object.
datalist of objects

List of DiffRecord objects