prehistoric-lamp-17081
05/22/2023, 2:40 PMchilly-king-10285
05/22/2023, 2:40 PMchilly-king-10285
05/22/2023, 2:41 PMory patch command in combination with [JSON Patch](http://jsonpatch.com/) to target individual keys. The format of the patch is a JSON-Patch document. For more details, please check: <https://www.ory.sh/docs/reference/api#operation/patchProject> <https://jsonpatch.com> Here's an example of how to patch an array value: ory patch project <your-project-id> \ --replace '/path/to/array/0="new value"' In this example, replace <your-project-id> with your project's ID and /path/to/array/0 with the path to the array element you want to update. The 0 in the path represents the index of the array element you want to patch. For more complex array updates, you can use JSON Patch operations like add, remove, and replace. For example: ory patch project <your-project-id> \ --add '/path/to/array/-={"key": "value"}' This command adds a new object with the key-value pair {"key": "value"} to the end of the array. Remember to replace <your-project-id> with your project's ID and /path/to/array with the path to the array you want to update. For more information on using the Ory API to patch resources, refer to the [Ory documentation](https://www.ory.sh/docs/cli/ory-patch).prehistoric-lamp-17081
05/23/2023, 3:00 PM