plain-lunch-50969
04/26/2024, 7:16 PMchilly-king-10285
04/26/2024, 7:16 PMchilly-king-10285
04/26/2024, 7:16 PMschema_id to reflect the schema you want to use for that identity. The trait key/values also depend on your schema. However, keep in mind that the command does not create a password or any other type of credential for the identity. For more details, you can refer to the [Ory documentation](https://www.ory.sh/docs/kratos/manage-identities/create-users-identities).plain-lunch-50969
04/26/2024, 7:17 PMchilly-king-10285
04/26/2024, 7:17 PMchilly-king-10285
04/26/2024, 7:18 PMschema_id in the request body. The schema_id should correspond to the identity schema you want to use for the new identity. Unfortunately, the exact API endpoint and request body format are not provided in the given knowledge sources. For detailed instructions, you should refer to the [Ory Kratos API documentation](https://www.ory.sh/docs/kratos/reference/api).plain-lunch-50969
04/26/2024, 7:18 PMchilly-king-10285
04/26/2024, 7:18 PMchilly-king-10285
04/26/2024, 7:18 PMplain-lunch-50969
04/26/2024, 7:19 PMchilly-king-10285
04/26/2024, 7:19 PMchilly-king-10285
04/26/2024, 7:20 PMpatchIdentity API to change the identity schema and traits directly. Here is an example of how to do this using a cURL command: bash curl --location --request PATCH "https://$<http://ORY_SLUG.projects.oryapis.com/admin/identities/$IDENTITY_ID|ORY_SLUG.projects.oryapis.com/admin/identities/$IDENTITY_ID>" \ --header "Authorization: Bearer $ORY_API_KEY" \ --header "Content-Type: application/json" \ --data-raw '[ { "op": "replace", "path": "/schema_id", "value": "{new-schema-id}" }, { "op": "remove", "path": "/traits/foo" }, { "op": "add", "path": "/traits/bar", "value": "barfoo" } ]' In this example, the schema_id is being replaced with a new schema id ({new-schema-id}). You can replace {new-schema-id} with the id of the schema you want to use. Please note that you need to replace $ORY_SLUG, $IDENTITY_ID, and $ORY_API_KEY with your actual Ory slug, identity id, and API key respectively. For more details, you can refer to the [Ory documentation](https://www.ory.sh/docs/identities/model/manage-identity-schema#update-identities-to-use-a-new-schema).plain-lunch-50969
04/26/2024, 7:21 PMchilly-king-10285
04/26/2024, 7:21 PMchilly-king-10285
04/26/2024, 7:21 PMplain-lunch-50969
04/26/2024, 7:38 PMchilly-king-10285
04/26/2024, 7:38 PMchilly-king-10285
04/26/2024, 7:38 PMplain-lunch-50969
04/26/2024, 7:51 PMchilly-king-10285
04/26/2024, 7:51 PMchilly-king-10285
04/26/2024, 7:51 PMplain-lunch-50969
04/26/2024, 7:52 PMchilly-king-10285
04/26/2024, 7:52 PMchilly-king-10285
04/26/2024, 7:53 PM