Skip to main content
POST
Search and replace

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
environment_id
string
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Example:

"old-text"

replace
string
default:""
required
Example:

"new-text"

perform_replacement
boolean
default:false
Example:

false

is_clear_cache
boolean
default:false
Example:

false

Response

Search and replace action started. Check MyKinsta for status

operation_id
string
required
Example:

"environments:search-and-replace-54fb80af-576c-4fdc-ba4f-b596c83f15a1"

message
string
required
Example:

"Search and replace in progress"

status
number
required
Example:

202