Skip to main content
PUT
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-001: Someone saved this table’s Provider Policy after the revision the save names. Load the table’s Provider Policy again and make the change on top of it.
  • WA-PP-002: The Workspace’s catalog serves no Provider table with this key. Choose a table the catalog serves. A Policy on a table that is gone can only be cleared.
  • WA-PP-003: A condition does not compile against the table’s columns. Fix or remove each condition the problems name.
  • WA-PP-004: A rule names a role a Workspace administrator cannot assign in this Workspace. Bind only Workspace roles.
  • WA-PP-005: Two rules name the same role. Name each role in at most one rule of the table.
  • 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, so nothing was saved. Try again.
  • 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

Replaces one table's Provider Policy. A definition with no rules and Everyone else at All rows clears it; the row and its history stay.

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.

expectedRevision
integer<int64>
required

The revision the change starts from: 0 for a table with no Provider Policy yet. Another save in between refuses this one.

Required range: 0 <= x <= 9007199254740991

Response

Successful response

data
object
required

A table's stored Provider Policy.

meta
object
required