Skip to main content
POST
Replace a string in a file

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

Body

application/json
path
string
required

Workspace path to edit.

old_string
string
required

Exact text to replace. Must match once unless replace_all is set.

new_string
string
required

Replacement text.

replace_all
boolean

Replace every occurrence instead of the first.

Response

Successful response

The response is of type object.