Syndai Docs

Undo a text edit

POST
/api/v1/external/coding/repos/{coding_repository_id}/text-edits/{commit_sha}/undo

Revert a text edit by its commit SHA, restoring the exact file from before the edit as long as nothing has changed it since. Returns 202 when the undo was committed. An unknown edit is a 404. Requires the coding:apps:publish scope.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

coding_repository_id*string
Formatuuid
commit_sha*string

Query Parameters

customer_id?|null

Response Body

Request accepted, processing continues off-line

application/json
  1. response
commit_sha*string
deployment_id?string|null
file*string
status*string
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/text-edits/string/undo'
Example Response
{  "commit_sha": "string",  "deployment_id": "string",  "file": "string",  "status": "string"}