v4

latestOpenAPI 3.0.3MIT2026-08-054021,2895.8 MB
Admin

Updates whether the specified view is publicly shared, if the requesting user is staff. This works even if the requesting user is not a member of the workspace the view belongs to, and can for example be used to unshare a publicly shared view that's being abused.

patch/api/database/admin/views/{view_id}/

Path parameters

view_idinteger required

The id of the view to update.

Request body

publicboolean

Indicates whether the view must be publicly shared.

Response

idinteger required
namestring required
slugstring

The unique slug where the view can be accessed publicly on.

typestring required
table_idinteger required
table_namestring required
database_idinteger required
database_namestring required
workspace_idinteger required
workspace_namestring required
publicboolean

Indicates whether the view is publicly accessible to visitors.

public_view_has_passwordboolean required
owned_by_idinteger required
owned_by_usernamestring required
ownership_typestring

Indicates how the access to the view is determined. By default, views are collaborative and shared for all users that have access to the table.

created_onstring date-time required