POST /api/v1/policies/{catalogName}
Add one rule to an existing catalog. This example grants a test group access to one table. Use a test catalog and group when trying it.
Access
Use this endpoint in a workspace that supports catalog governance through OAuth. Ask your admin to confirm availability for your workspace and use a client acting as itself. For scope-based access, request query_engine.policies:create. If your admin confirms that workspace permissions are active for management API calls, omit the management scope and ask for permission for this operation. Get a workspace access token.
Request
Replace {catalogName} with your existing catalog name.
Each rule uses name, type, and a resources array. Each resource can name a catalog, schema, table, or column. Use users or groups to identify who the rule applies to. For an access rule, set allow explicitly. A masking rule uses maskType and a row filter uses rowFilter. See data access policies.
Set WORKSPACE_URL to your HTTPS workspace origin and ACCESS_TOKEN to its OAuth token.
Response
HTTP 201. Example with sample values:
Read the saved set or list the catalog policies to check the result before testing with a user in the affected group.
If the workspace returns 409 CATALOG_FEATURE_UNAVAILABLE, ask your admin whether this catalog supports governance changes.
A duplicate policy name also returns 409. Read the existing rule before deciding whether to update it.
Platform-managed rules are protected. Use a catalog and rule that your team owns.
For 401, check the token and workspace URL. For 403, check the client’s scope or effective workspace permissions. Troubleshoot an API request.Last modified on December 2, 2026