<@U04UQ68083H> when using the batchcrateidentites ...
# ory-copilot
f
@chilly-king-10285 when using the batchcrateidentites api. will all creations fail when one has a conflict due to already exising email?
c
A message from kapa.ai
The Ory Kratos API does not provide a specific
batchCreateIdentities
endpoint. However, it does provide a
batchPatchIdentities
endpoint. The behavior of this endpoint in the case of a conflict is not explicitly stated in the provided knowledge sources. However, in the context of Ory Kratos' handling of credentials, it is mentioned that if an attempt is made to create or update an identity with an identifier (such as an email) that already exists, the system would reject the request with a 409 Conflict state. This suggests that if a conflict occurs due to an existing email, the operation for that specific identity would fail. It's not clear from the provided information whether this would cause all operations in a batch to fail, or just the operation for the conflicting identity. For a definitive answer, you may need to refer to more detailed documentation or test the API's behavior. [Source](https://www.ory.sh/docs/kratos/concepts/credentials)
f
@chilly-king-10285 batchPatchIdentities will fail if one has a conflict?
c
A message from kapa.ai
The provided knowledge sources do not explicitly state the behavior of the
batchPatchIdentities
endpoint in the case of a conflict. However, it is mentioned that in the case of a conflict, a 409 Conflict status is returned along with a JSON API Error Response. This suggests that if a conflict occurs, the operation for that specific identity would fail. The error response includes details such as the status code, debug information, error details, error ID, error message, reason for the error, request ID, and status description. However, it's not clear from the provided information whether this would cause the entire batch operation to fail, or just the operation for the conflicting identity. For a definitive answer, you may need to refer to more detailed documentation or test the API's behavior. [Source](https://www.ory.sh/docs/kratos/reference/api)