You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/operations/bundle.mdx
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,50 +3,52 @@ icon: cube
3
3
title: Data Bundles
4
4
---
5
5
6
-
## What is Data Bundles
6
+
## What are Data Bundles
7
7
8
8
Ensuring that authorization data remains in sync with the business model is an important practice when using Permify.
9
9
10
10
Prior to Data Bundles, it was the responsibility of the services (such as [WriteData](../api-reference/data/write-data) API) to structure how relations are created and deleted when actions occur on resources.
11
11
12
-
With the Data Bundles, you be able to bundle and model the creation and deletion of relations and attributes when specific actions occur on resources in your applications.
12
+
With the Data Bundles, you can model the creation and deletion of relations and attributes when specific actions occur on resources in your applications.
13
13
14
-
We believe this functionality will streamline managing authorization data as well as managing this in a central place increase visibility around certain actions/triggers that end up with data creation.
14
+
This functionality streamlines managing authorization data, allows you to manage it in a central place, and increases visibility around certain actions/triggers that create data.
15
15
16
-
## How Bundles Works
16
+
## How Bundles Work
17
17
18
-
Let's examine how Bundles operates with basic example.
18
+
Let's examine how Bundles operate.
19
19
20
-
Let's say you want to model how data will be created when an organization created in your application. For this purpose, you can utilize the [WriteBundle](../../api-reference/bundle/write-bundle) API endpoint. This API enables users to define or update data bundles, each distinguished by a unique name.
20
+
Let's say you want to model how data will be created when an organization is created in your application. For this purpose, you can utilize the [WriteBundle](../../api-reference/bundle/write-bundle) API endpoint. This API enables users to define or update data bundles, each distinguished by a unique name.
21
21
22
22
Here's an example body for WriteBundle in this scenario:
Operations represent actions that can be performed on relationships and attributes, such as adding or deleting relationships when certain events occur.
48
50
49
-
Let's say user:564 creates an organization:789 in your application. According to your authorization logic, this will result in the creation of several authorization data, including relational tuples and attributes, respectively.
51
+
Let's say user:564 creates an organization:789 in your application. According to your authorization logic, this will result in the creation of several pieces of authorization data, including relational tuples and attributes:
50
52
51
53
- organization:789#admin@user:564
52
54
- organization:789#manager@user:564
@@ -57,13 +59,11 @@ Instead of using the [WriteData](../../api-reference/data/write-data) endpoint,
57
59
An example request of [RunBundle](../../api-reference/data/run-bundle) for this scenario:
0 commit comments