API referenceSections

Set what the site's code may do in a folder - read, write, or nothing

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}/files/access

Set what the site's code may do in a folder - read, write, or nothing (ADR 0034)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

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
  • path string required
  • access string required
    Allowed values: "read" "write" "blocked"
  • target string optional

    dir (default, ADR 0034) or file (ADR 0108)

    Allowed values: "dir" "file"
Example
{
  "path": "string",
  "access": "read",
  "target": "dir"
}

Responses

204 Done

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required