dial-rule-matching-to-uri and dial-rule-translation-destination-user. The dial plan and domain come from the path. The response is 202: the change is published, not yet applied, so a read straight after it may not show the change yet. Send synchronous=yes to wait up to 2 seconds and get 200 with the created rule instead.409. To change a rule's match fields later, delete it and create a new one: PUT updates only the other fields.Authorization: Bearer ********************synchronous=yes: the created rule, once applied.curl --location 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//dialplans//dialrules' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"dial-rule-matching-to-uri": "sip:611@*",
"dial-rule-application": "to-callqueue",
"dial-rule-translation-destination-user": "2500",
"dial-rule-translation-destination-host": "example.com",
"dial-rule-description": "611 - Customer Service Direct Dial"
}'{
"domain": "example.com",
"dial-rule-dial-plan": "example.com",
"dial-rule-matching-to-uri": "sip:611@*",
"dialrule": "c2lwOjYxMUAq",
"enabled": "yes",
"dial-rule-matching-from-uri": "*",
"dial-rule-matching-day-of-week": "*",
"dial-rule-matching-start-date": "*",
"dial-rule-matching-end-date": "*",
"dial-rule-matching-start-time": "*",
"dial-rule-matching-end-time": "*",
"dial-rule-application": "to-callqueue",
"dial-rule-parameter": "",
"dial-rule-translation-destination-scheme": "sip:",
"dial-rule-translation-destination-user": "2500",
"dial-rule-translation-destination-host": "example.com",
"dial-rule-translation-source-name": "[*]",
"dial-rule-translation-source-scheme": "[*]",
"dial-rule-translation-source-user": "[*]",
"dial-rule-translation-source-host": "[*]",
"dial-rule-description": "611 - Customer Service Direct Dial"
}