Skip to content

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.

object
enabled
required

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.

boolean

Updated public-mode state

object
enabled
required

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.

boolean

Malformed request

object
error
required

Human-readable error summary

string
Example
the request could not be completed

Authentication required, missing, or invalid

object
error
required

Human-readable error summary

string
Example
the request could not be completed
Example
{
"error": "authentication required: sign in and retry with a valid session or API token"
}

Authenticated but missing required capabilities

object
error
required

Human-readable error summary

string
Example
the request could not be completed