Playing with the Ory API around importing identiti...
# ory-network
s
Playing with the Ory API around importing identities on Ory Network and I have some questions about this endpoint: https://www.ory.sh/docs/reference/api#tag/identity/operation/batchPatchIdentities It says "Creates or delete multiple identities." but the body schema only lays out how to create. Is there a way to use this to bulk delete identities?
b
Not yet, the docs were prematurely added.
s
Okay thanks
Is there any way to do bulk deletes of identities? Like through the Ory CLI perhaps?
b
No that’s not possible yet
👍 1
h
Hey @bland-eye-99092, yesterday (2nd May) I was playing with Ory Permissions API through the CLI. And I was using the following two commands to clear and reload the relationships in an Ory Network project.
Copy code
ory delete relation-tuples --project $PROJECT_ID --all --force
ory create relation-tuples relationships.json --project $PROJECT_ID
as described https://www.ory.sh/docs/cli/ory-delete-relation-tuples and here https://www.ory.sh/docs/guides/permissions/overview#creating-relationships This afternoon there was a period (~2hours) that those commands stopped working, and now it works again. But I found no outage on Ory Status page. So what is the actual status on those commands? Is the docs ahead of the implementation? @sparse-father-97864 You might also want to take a look at those commands.
b
Permissions are different from identities. What do you mean by “stopped working”? What symptoms did you observe?
h
Ahh, sorry I misread the thread. During 2pm to 4pm today, I will always get the "Undefined response formatt error. I browsed the internet and Ory Slack, some people had the same issue before they went unreplied.
At the time "list relation-tuples" gave me the forementioned error, "list identities" was working fine. And I checked my Ory Cli is at latest version.