@@ -708,7 +708,7 @@ fga tuple **write** <user> <relation> <object> --store-id=<store-id>
708
708
* `--condition-context`: Condition context (optional)
709
709
* `--store-id`: Specifies the store id
710
710
* `--model-id`: Specifies the model id to target (optional)
711
- * `--file`: Specifies the file name, `json`, `yaml` and `csv` files are supported
711
+ * `--file`: Specifies the file name, `json`, `jsonl`, ` yaml` and `csv` files are supported
712
712
* `--max-tuples-per-write`: Max tuples to send in a single write (optional, default=1, or 40 if `--max-rps` is set and this flag is omitted)
713
713
* `--max-parallel-requests`: Max requests to send in parallel (optional, default=4, or `max-rps/5` if `--max-rps` is set and this flag is omitted)
714
714
* `--hide-imported-tuples`: When importing from a file, do not output successfully imported tuples in the command output (optional, default=false)
@@ -757,6 +757,14 @@ If using a `yaml` file, the format should be:
757
757
object: folder:product-2021Q1
758
758
` ` `
759
759
760
+ If using a `jsonl` file, the format should be :
761
+
762
+ ` ` ` jsonl
763
+ {"user": "user:anne", "relation": "owner", "object": "folder:product"}
764
+ {"user": "folder:product", "relation": "parent", "object": "folder:product-2021", "condition": {"name": "inOfficeIP", "context": {"ip_addr": "10.0.0.1"}}}
765
+ {"user": "user:beth", "relation": "viewer", "object": "folder:product-2021"}
766
+ ` ` `
767
+
760
768
If using a `json` file, the format should be :
761
769
762
770
` ` ` json
@@ -845,7 +853,7 @@ fga tuple **delete** <user> <relation> <object> --store-id=<store-id>
845
853
* `<object>`: Object
846
854
* `--store-id`: Specifies the store id
847
855
* `--model-id`: Specifies the model id to target (optional)
848
- * `--file`: Specifies the file name, `yaml` and `json ` files are supported
856
+ * `--file`: Specifies the file name, `yaml`, `json`, and `jsonl ` files are supported
849
857
* `--max-tuples-per-write`: Max tuples to send in a single write (optional, default=1)
850
858
* `--max-parallel-requests`: Max requests to send in parallel (optional, default=4)
851
859
0 commit comments