Exactly what a preset would change now
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/previewExactly what a preset would change now
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
- no other properties
presetstring requiredAllowed values:"wordpress""laravel""readonly""default"
Example
{
"preset": "wordpress"
}Responses
200 OK
Content type: application/json
presetstring requiredAllowed values:"wordpress""laravel""readonly""default"appstring requiredwordpress, laravel or empty
pathstring 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> requiredWordPress Toolkit hardening items to turn on (ADR 0082)
hidearray<string> requiredPath segments IIS will answer 404 for
notesarray<string> requiredhashstring requiredSend back to apply exactly this plan
Example
{
"preset": "wordpress",
"app": "string",
"changes": [
{
"path": "string",
"target": "dir",
"from": "string",
"to": "read",
"reason": "string",
"result": "string",
"kept": true
}
],
"harden": [
"string"
],
"hide": [
"string"
],
"notes": [
"string"
],
"hash": "string"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required