Update public/private visibility for a space route.
Toggle whether a route is accessible without authentication.
cURL
curl --request PUT \ --url https://api.zo.computer/space/routes/visibility \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "path": "<string>", "public": true } '
{ "success": true }
Zo API key (zo_sk_...)
Request body for updating route visibility.
Route path to update, e.g. '/api/hello'
New visibility state
Successful Response
True if the operation completed successfully