careful-kangaroo-59324
03/30/2023, 1:19 PMory patch identity-config {project-id} \
--add "/selfservice/flows/registration/after/hooks/0=$(cat webhook-action.json)" \
--format yaml
What does the the "0" mean here? Is that a hook id? As in if you wanted to create another hook on the same trigger you'd change it to "1" instead?steep-lamp-91158
steep-lamp-91158
careful-kangaroo-59324
03/30/2023, 1:27 PMcareful-kangaroo-59324
03/30/2023, 1:38 PMsteep-lamp-91158
ory patch
command, so it controls what you get on the terminalcareful-kangaroo-59324
03/30/2023, 1:51 PM:>
magnificent-energy-493
ory list projects
export project_id=
export project_name=
Get the current project configuration
ory get identity-config $project_id --format json-pretty > ory-identity-config-$project_name.json
Add your webhook to the json config.
Update the project again:
ory update identity-config $project_id --file ory-identity-config-$project_name.json
careful-kangaroo-59324
03/30/2023, 2:25 PM