<@U04UQ68083H> the documentation says this: &gt; T...
# ory-copilot
b
@chilly-king-10285 the documentation says this:
The Write APIs offer multiple ways to insert and delete relationships. Please head over to the gRPC API reference or REST API reference to read more about the available methods for each client type.
It's preferred to use the transaction based methods over repeatedly calling simple methods for bulk updates
Which transaction based methods is it referring to?
c
A message from kapa.ai
The transaction-based methods referred to in the documentation are part of the WriteService in Ory Keto. These methods allow you to perform multiple operations in a single transaction, which can be more efficient and provide stronger consistency guarantees than performing multiple individual operations. There are two transaction-based methods mentioned in the extracts: 1. `TransactRelationTuples`: This method writes one or more relationships in a single transaction. It takes a
TransactRelationTuplesRequest
and returns a
TransactRelationTuplesResponse
. The request includes a list of
RelationTupleDelta
objects, each representing a change to a relationship. The action for each
RelationTupleDelta
can be
ACTION_INSERT
to insert a new relationship, or
ACTION_DELETE
to delete an existing relationship. If the action is unspecified, the
TransactRelationTuples
RPC ignores that
RelationTupleDelta
. [source](https://www.ory.sh/docs/keto/reference/proto-api#writeservice) 2. `DeleteRelationTuples`: This method deletes relationships based on a relation query. It takes a
DeleteRelationTuplesRequest
and returns a
DeleteRelationTuplesResponse
. [source](https://www.ory.sh/docs/keto/reference/proto-api#writeservice) These methods are part of the [write-APIs](https://www.ory.sh/docs/keto/concepts/api-overview#write-apis) in Ory Keto.
b
@chilly-king-10285 are there equivalent methods for the REST API?
c
A message from kapa.ai
I'm sorry, but the extracts provided do not contain information about equivalent transaction-based methods for the REST API in Ory Keto. For detailed information, you may want to refer to the [Ory Keto REST API documentation](https://www.ory.sh/docs/keto/reference/rest-api).