---
updatedAt: 2026-09-02T17:35:26.000Z
agentTools:
  projectIndex: https://docs.go.v7labs.com/llms.txt
---

# Get default resource visibility settings

Returns the current default resource visibility settings for the workspace

# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Settings.DefaultResourceVisibilityResponse": {
        "additionalProperties": false,
        "description": "Default resource visibility settings for a workspace",
        "properties": {
          "default": {
            "description": "Workspace-level default applied to resource types with a public system default",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "effective_visibility": {
            "$ref": "#/components/schemas/Settings.EffectiveVisibility"
          },
          "overrides": {
            "description": "Per-resource-type overrides",
            "items": {
              "$ref": "#/components/schemas/Settings.ResourceVisibilityOverride"
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "default",
          "overrides",
          "effective_visibility"
        ],
        "title": "Settings.DefaultResourceVisibilityResponse",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Settings.DefaultResourceVisibilityResponse",
        "x-validate": null
      },
      "Common.APIErrorDetails": {
        "description": "Additional structured error context. Shape varies by error code.\n\n- For conflict errors: contains a `conflicts` array with conflicting resources\n- For other errors: may contain arbitrary error-specific context",
        "nullable": true,
        "oneOf": [
          {
            "$ref": "#/components/schemas/Common.ConflictErrorDetails"
          },
          {
            "additionalProperties": true,
            "description": "Generic error details for non-conflict errors",
            "type": "object",
            "x-struct": null,
            "x-validate": null
          }
        ],
        "title": "Common.APIErrorDetails",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.APIErrorDetails",
        "x-validate": null
      },
      "Common.APIError": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "example": "bad_request",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "details": {
            "$ref": "#/components/schemas/Common.APIErrorDetails"
          },
          "message": {
            "example": "Bad Request",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "Common.APIError",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.APIError",
        "x-validate": null
      },
      "Settings.EffectiveVisibility": {
        "additionalProperties": false,
        "description": "Resolved visibility per resource type (after applying overrides and defaults)",
        "properties": {
          "case": {
            "description": "Effective visibility for case resources",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "data_store": {
            "description": "Effective visibility for data_store resources",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "folder": {
            "description": "Effective visibility for folder resources",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "hub": {
            "description": "Effective visibility for hub resources",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "hub_file": {
            "description": "Effective visibility for hub_file resources",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "integration": {
            "description": "Effective visibility for integration resources",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "project": {
            "description": "Effective visibility for project resources",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "title": "Settings.EffectiveVisibility",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Settings.EffectiveVisibility",
        "x-validate": null
      },
      "Common.ConflictErrorDetails": {
        "additionalProperties": false,
        "description": "Details for conflict errors",
        "properties": {
          "conflicts": {
            "description": "List of conflicting resources",
            "items": {
              "additionalProperties": true,
              "type": "object",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "conflicts"
        ],
        "title": "Common.ConflictErrorDetails",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Common.ConflictErrorDetails",
        "x-validate": null
      },
      "Settings.ResourceVisibilityOverride": {
        "additionalProperties": false,
        "description": "A per-resource-type visibility override",
        "properties": {
          "access_type": {
            "description": "The visibility level for this resource type. Pass null to clear the override for a specific resource type.",
            "enum": [
              "public",
              "private",
              "read_only"
            ],
            "nullable": true,
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "resource_type": {
            "description": "The resource type to override",
            "enum": [
              "case",
              "data_store",
              "hub",
              "hub_file",
              "folder",
              "project",
              "integration"
            ],
            "type": "string",
            "x-struct": null,
            "x-validate": null
          }
        },
        "required": [
          "resource_type"
        ],
        "title": "Settings.ResourceVisibilityOverride",
        "type": "object",
        "x-struct": "Elixir.AgiDbWeb.Schemas.Settings.ResourceVisibilityOverride",
        "x-validate": null
      },
      "Common.UUID": {
        "example": "e23ff3f3-8f77-4e78-9e81-fdb25abfb781",
        "format": "uuid",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "title": "Common.UUID",
        "type": "string",
        "x-struct": null,
        "x-validate": null
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "in": "header",
        "name": "X-API-KEY",
        "type": "apiKey"
      },
      "BearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "V7 Go API",
    "version": "0.1.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/workspaces/{workspace_id}/default_resource_visibility": {
      "get": {
        "callbacks": {},
        "description": "Returns the current default resource visibility settings for the workspace",
        "operationId": "workspace-settings-default-resource-visibility-get",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "workspace_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Common.UUID"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Settings.DefaultResourceVisibilityResponse"
                }
              }
            },
            "description": "Settings.DefaultResourceVisibilityResponse"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Common.APIError"
                }
              }
            },
            "description": "Common.APIError"
          }
        },
        "summary": "Get default resource visibility settings",
        "tags": [
          "Workspace Settings"
        ]
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    },
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "description": "EU",
      "url": "https://go.v7labs.com",
      "variables": {}
    },
    {
      "description": "US",
      "url": "https://go.us.v7labs.com",
      "variables": {}
    },
    {
      "description": "UAE",
      "url": "https://go.uae.v7labs.com",
      "variables": {}
    }
  ]
}
```