Update extraction cells
const url = 'https://app.docstosheets.com/api/Extractions/cells';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"rowOperations":[{"extractionId":"example","op":"add","section":"example","index":1}],"changes":[{"extractionId":"example","fieldPath":"example","newValue":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.docstosheets.com/api/Extractions/cells \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "rowOperations": [ { "extractionId": "example", "op": "add", "section": "example", "index": 1 } ], "changes": [ { "extractionId": "example", "fieldPath": "example", "newValue": "example" } ] }'Batch-updates cell values across extractions in a mailbox.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”The mailbox ID (partition key).
Request Body required
Section titled “Request Body required ”The batch update request.
Request to update cell values in extractions (batch update). Row operations are applied before cell changes.
object
Section row additions/removals to apply (before cell changes).
Adds or removes a row within a repeating section of an extraction.
object
The extraction ID to update.
The section (group id) the row belongs to.
For remove: the row index to delete. For add: optional insert position (defaults to append).
List of cell changes to apply.
A single cell change in an extraction.
object
The extraction ID to update.
The field path to update: “Data.{key}” for header values or “Sections.{groupId}[{index}].data.{key}” for section rows.
The new value for the field.
Responses
Section titled “ Responses ”Summary of updates applied.
Result of a batch update operation.
object
Number of extractions successfully updated.
List of failed updates with error details.
Details about a failed update.
object
The extraction ID that failed to update.
Error message describing the failure.
Example generated
{ "successCount": 1, "failedUpdates": [ { "extractionId": "example", "error": "example" } ]}object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}