best-daybreak-48618
04/03/2025, 7:25 PMmagnificent-energy-493
ory patch identity-config --project ${project_id} \
--add '/courier/channels=[{"id":"sms","request_config":{"method":"PUT","body":"<base64://ZnVuY3Rpb24oY3R4KSB7DQpjdHg6IGN0eCwNCn0>=","url":"<https://your-sms-provider.com/api/send>"}}]'
You can also get and update the entire Ory Identities config:
ory update identity-config --project <project-id> --workspace <workspace-id> --file config.yaml
You can also use the "projects" API directly, see an example here.
https://www.ory.sh/docs/guides/manage-project-via-api#update-an-ory-network-project-configurationbest-daybreak-48618
04/03/2025, 10:03 PMbest-daybreak-48618
04/04/2025, 12:26 AMcurl --location --request PATCH "<https://api.console.ory.sh/projects/><PROJECT_ID>" \
-H "Authorization: Bearer <WORKSPACE_API_KEY>" \
-H "Content-Type: application/json" \
-d '[
{
"op": "replace",
"path": "/courier/channels",
"value": {
"id":"sms",
"request_config":{
"auth":{
"config":{
"password":"",
"user":""
},
"type":"basic_auth"
},
"body":"<unchanged Jsonnet url>",
"headers":{
},
"method":"POST",
"url":"<https://webhook.site/>"
},
"type":"http"
}
}
]' | jq
best-daybreak-48618
04/04/2025, 4:22 AMory patch identity-config --project <PROJECT_ID> \
--replace '/courier/channels=[{"id":"sms","request_config":{"auth":{"config":{ "password":"","user":""},"type":"basic_auth"},"body":"<https://storage.googleapis.com/bac-gcs-production/68dbe76c2f176b9bb0e10953d13c9d3fbf8c2baf240ee10304a9e84b78ade91c89bf7b110c88e9f06f682ff46ee9e7d70289a0a095597d8723ffbccc97838392.jsonnet>","headers":{},"method":"POST","url":"<https://webhook.site/94843be7-0c06-40e6-a2c0->"},"type":"http"}]'
best-daybreak-48618
04/04/2025, 6:20 AM