Put back what the latest preset changed, where not changed again since
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenants/{tid}/sites/{id}/permissions/undoPut back what the latest preset changed, where not changed again since
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
Example
{}Responses
200 OK
Content type: application/json
idstring requiredpresetstring requiredpathstring requiredtargetstring requiredAllowed values:"dir""file"fromstring requiredtostring requiredAllowed values:"read""write""blocked"reasonstring requiredresultstring optionalok, kept, or an error code (applied records only)
keptboolean optional
hardenarray<string> requiredhiddenarray<string> requiredcreated_atstring (date-time) requiredreverted_atstring (date-time) | null optional
Example
{
"id": "string",
"preset": "string",
"changes": [
{
"path": "string",
"target": "dir",
"from": "string",
"to": "read",
"reason": "string",
"result": "string",
"kept": true
}
],
"harden": [
"string"
],
"hidden": [
"string"
],
"created_at": "2026-01-01T00:00:00Z",
"reverted_at": "2026-01-01T00:00:00Z"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required