Undo a text edit
POST
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.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
coding_repository_id*stringFormat
uuidcommit_sha*stringcustomer_id?|nullRequest 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/string/undo'Example Response
{ "commit_sha": "string", "deployment_id": "string", "file": "string", "status": "string"}