Skip to main content
POST
Python SDK

Access

This operation needs a Parable token. An MCP token cannot call it. See Authentication for the kinds of token. Your roles must grant tenant.providerpolicies.manage.

Errors

  • WA-PP-006: The Policy is over a size limit or has a malformed rule. Keep a table to 50 rules, 100 conditions and 60 KiB of condition text.
  • WA-PP-007: Parable could not check the conditions. Try again.
  • WA-PP-008: A count reads the table past every Provider Policy, and your own Policies narrow it or your roles do not read it with SQL. Check the Policy without counting, or ask someone who reads every row of the table to count it.
  • WA-PP-010: A rule reads Source permissions on a table whose Provider does not say who can open each row. Choose All rows, Rows where or Hidden for this table.

Authorizations

Authorization
string
header
required

A personal access token, which starts with pat_. A Parable token can call each operation that the roles of its owner allow. An MCP token can call only the read operations that are open to agents. A SQL token does not work on this API.

Headers

X-Tenant
string

Workspace slug. Overrides subdomain-based workspace resolution when provided.

Example:

"acme"

X-Request-ID
string<uuid>

Optional request correlation ID echoed back in the response.

Example:

"550e8400-e29b-41d4-a716-446655440000"

Path Parameters

providerKey
string
required

providerKey parameter UUID v4 with automatic base62 encoding for client-facing APIs

tableKey
string
required

tableKey parameter UUID v4 with automatic base62 encoding for client-facing APIs

Body

application/json

A proposed Provider Policy for one table, checked and not saved.

count
boolean
required

Also count the rows each rule and Everyone else would read. Counting reads the table once; checking alone reads no row.

definition
object
required

A Provider Policy: which rows of one Provider table the people in each role read, in every read of the Workspace. A reader gets the union of every rule that names one of their roles; a reader no rule names gets everyoneElse. Parable also checks whole-table limits: a role in at most one rule, and at most 100 conditions and 60 KiB of condition text per table.

Response

Successful response

data
object
required
meta
object
required