phonenumber. It is the same change as PUT /domains/{domain}/phonenumbers/{phonenumber}, with the number in the body instead of the path. Requires Site Manager, Office Manager, Reseller, or Super User scope. Scopes below Reseller change only their own domain, and a Reseller only the domains in its territory.202 means the change is accepted and applied shortly after, so a read made right away can still show the old values.sms-* fields to change the assignment, or dial-rule-translation-destination-user to give the number a dial rule.dial-rule-translation-destination-host, it must be its own domain, except with the to-connection and to-single-device applications, or the request answers 403. A number in neither place answers 404: add it with POST /domains/{domain}/phonenumbers.dial-rule-application to to-user, dial-rule-translation-destination-user to the user's extension, and dial-rule-translation-destination-host to your domain.dial-rule-application to to-callqueue and dial-rule-translation-destination-user to the queue's extension.dial-rule-application to any other application, such as to-connection-add-header-update-cdr-by-user for an off-net number. Put a header the application adds in dial-rule-parameter.dial-rule-application to available-number, the destination user and host to [*], and dial-rule-parameter to <NULL>. The number stays in this domain, ready to assign again.dial-rule-application out and send the fields to change: enabled, the description, the destination, the caller ID name, or the sms-* fields. Send sms-enabled false to remove the SMS assignment.phonenumber answers 400.Authorization: Bearer ********************curl --location --request PUT 'https://awqacore01.crexendocloud.com/ns-api/v2/domains/example.com/phonenumbers' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"phonenumber": "15555550123",
"dial-rule-application": "to-user",
"dial-rule-translation-destination-user": "1001",
"dial-rule-translation-destination-host": "example.com",
"dial-rule-description": "Front Desk"
}'{
"code": 202,
"message": "Accepted"
}