Skip to main content
POST
/
v2
/
patches
/
{id}
/
restore
Restore Patch
curl --request POST \
  --url https://app.textql.com/v2/patches/{id}/restore \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "expected_git_ref": "<string>"
}
'
{
  "success": true
}
Same authority as Deny Patch: the author, or a caller with OWNERS write authority on every changed path. Only a denied patch can be restored.

Authorizations

Authorization
string
header
required

API key or JWT token

Path Parameters

id
string
required

Patch ID

Body

application/json
expected_git_ref
string
required

The patch git_ref the caller reviewed; a stale value returns 409.

Response

Patch restored

success
boolean