Enable or disable anonymous access to the public surface
PATCH /admin/system/public-mode
Turns anonymous access to the public read surface on or off.
Requires the system.config.write capability. The change takes
effect on the next request without a restart, and is recorded
as an admin.system.public_mode_updated audit event.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
When true, anonymous callers may reach the public read surface (assets, collections, search, IIIF). When false — the default, and the state of any install that has never set it — those routes return 401 to anonymous callers.
Responses
Section titled “ Responses ”Updated public-mode state
object
When true, anonymous callers may reach the public read surface (assets, collections, search, IIIF). When false — the default, and the state of any install that has never set it — those routes return 401 to anonymous callers.
Malformed request
object
Human-readable error summary
Example
the request could not be completedAuthentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completed