Changes a rule's permission-mode and permission-reason. The name resolves to the domain's own policy first, then to the shared one under * or admin-only. Requires Office Manager scope or higher for a policy the domain owns, Reseller scope for a domain in its territory, or Super User scope, which a shared policy always needs.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Body Params application/json
Examples
Responses
🟢202Accepted
application/json
The change is accepted and applied shortly after.
Bodyapplication/json
🟠400Bad Request
🟠401Authentication Required
🟠404Record not found
🟠403Forbidden
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//dialpolicy//permission/c2lwOisxOTAwPz8_Pz8_P0Aq' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data'{
"permission-mode": "permit",
"permission-reason": "Allowed for billing"
}'