Skip to main content
POST /v1/tenants/{tenant_id}/bundle/write The Write Bundle endpoint stores named bundle definitions for a tenant. Each bundle describes a set of relationship and attribute write/delete operations parameterized with template variables. Bundles are executed via the Run Bundle endpoint (POST /v1/tenants/{tenant_id}/data/run-bundle), letting you atomically apply a predictable set of authorization data changes in response to application events (e.g. organization_created, user_invited).

Path Parameters

string
required
The tenant identifier. Use t1 for single-tenant deployments. Must match ^([a-zA-Z0-9_\-@\.:+]{1,128}|\*)$.

Request Body

array
required
One or more bundle definitions to write.

Response

array
The names of the bundles that were successfully written.

Example

Request body
Response

Error Codes