Skip to main content

Replace text

The following example will show you how to replace text in a spreadsheet using key/value pairs.

Spreadsheets are any documents that follow the presentation OpenXML schema (Microsoft Excel, OpenOffice Math).

You can view the full Swagger documentation here.

Request

curl --location 'https://spreadsheet-api.doclabs.cloud/api/v1/MyDocumentName.xlsx/text/replace?storageName=MyBucketName' \
--header 'Content-Type: application/json' \
--header 'x-api-key: MY_API_KEY' \
--data '{
"data": {
"textIWantToFind": "replace with this",
"foo": "bar"
}
}'

Response

{
"bucketName": "MyBucketName",
"contentPathName": "CopyOfTheOriginal.xlsx"
}