cURL
curl --request PUT \ --url https://api.comm.com/api/v1/sms/routing/plans/{plan}/rules/{rule} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "action": "send", "sms_route_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "country_id": 123, "network_id": 123, "network_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "is_active": true, "priority": 123, "action_vars": "<string>" } '
{ "data": { "id": "<string>", "sms_route_id": "<string>", "sms_routing_plan_id": "<string>", "country_id": 123, "network_id": 123, "network_brand_id": "<string>", "is_active": true, "priority": 123, "action": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "action_vars": { "route_ids": [ "<string>" ], "limit": 123 } } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The plan ID
The rule ID
To create a split rule please check POST ./route/split endpoint.
send
split
drop
filter
SmsRoutingPlanRuleResource
Show child attributes
Optional action vars for split action