Maintenance

Database-wide search and replace

Performs a find/replace across text content in contentlets, containers, templates, fields, and links. Only affects working/live versions. This is a dangerous, irreversible operation. Returns 200 with hasErrors=true if some tables failed — check the response body.

post/api/v1/maintenance/_searchAndReplace

Request body

searchStringstring required

Text to search for across all content tables. Must not be empty.

replaceStringstring required

Replacement text. Can be empty to delete all occurrences of searchString.

Example request

{
  "searchString": "http://old-domain.com",
  "replaceString": "https://new-domain.com"
}

Response

Search and replace completed

i18nMessagesMapobject
permissionsstring[]

Example response

{
  "entity": {
    "success": true
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.