bland-finland-95044
06/25/2025, 10:01 PMbrief-egg-61061
06/25/2025, 10:01 PMbrief-egg-61061
06/25/2025, 10:01 PMPOST /relation-tuples/batch/check
You need to send a JSON body with an array of tuples, each specifying the namespace, object, relation, and subject (either subject_id or subject_set). Here’s the structure for the request body: json { "tuples": [ { "namespace": "example_namespace", "object": "example_object", "relation": "example_relation", "subject_id": "example_subject" }, { "namespace": "another_namespace", "object": "another_object", "relation": "another_relation", "subject_id": "another_subject" } // ... more tuples ] }
While the knowledge sources provide the API specification and mention SDKs, they do not include a direct Golang code example for the batch check operation. However, you can use the Ory Go SDK's Permission API to call this endpoint by constructing the appropriate request body and invoking the batch check method. For more details on the API structure, see the [Ory Keto API reference](https://www.ory.sh/docs/keto/concepts/api-overview). If you need a code example, you may refer to the auto-generated documentation for the Go SDK or the [API reference for batchCheckPermission](https://www.ory.sh/docs/keto/concepts/api-overview), but the knowledge sources do not provide a ready-to-use code snippet for this specific operation. Summary: - Use the POST /relation-tuples/batch/check
endpoint. - Construct a JSON body with the tuples you want to check. - Use the Ory Go SDK's Permission API to call this endpoint. If you need further details or a code example, please consult the SDK documentation or request an example from the Ory team, as the knowledge sources do not provide a direct code sample for this use case.bland-finland-95044
06/25/2025, 10:16 PMbrief-egg-61061
06/25/2025, 10:16 PMbrief-egg-61061
06/25/2025, 10:17 PMmax-depth
parameter when checking permissions, the system will use the global max-depth value. However, the exact numeric value of the global default is not specified in the provided sources. The documentation states: > If the value is less than 1 or greater than the global max-depth then the global max-depth will be used instead. This is to ensure low latency and limit the resource usage per request. But it does not define what the global max-depth actually is. You may need to check your Ory Keto configuration or the official documentation for the specific default value in your deployment [API overview](https://www.ory.sh/docs/keto/concepts/api-overview).bland-finland-95044
06/25/2025, 11:11 PMbrief-egg-61061
06/25/2025, 11:11 PMbrief-egg-61061
06/25/2025, 11:12 PM