Edit text on a live site
POST
Replace one literal piece of text on a live static site, without starting a coding run. Returns 202 when the edit was committed and 200 when it was already applied. While a run or landing holds the repository it is a 409 RUN_IN_FLIGHT naming the blocking run_id: wait, then retry. Requires coding:apps:publish.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
coding_repository_id*stringFormat
uuidcustomer_id?|nullapplication/json- body
after*stringLength
length <= 2000all?booleanDefault
falsebefore*stringLength
1 <= length <= 2000page*stringLength
1 <= length <= 2048request_id*stringFormat
uuidRequest accepted, processing continues off-line
application/json- response
commit_sha*stringdeployment_id?string|nullfile*stringstatus*stringcurl -X POST 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/text-edits' \ -H 'Content-Type: application/json' \ -d '{ "after": "string", "before": "string", "page": "string", "request_id": "266ea41d-adf5-480b-af50-15b940c2b846"}'Example Response
{ "commit_sha": "string", "deployment_id": "string", "file": "string", "status": "string"}