POST
/
v1
/
sms
/
routing
/
plans
/
{plan}
/
rules
/
split
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/sms/routing/plans/{plan}/rules/split \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "country_id": 123,
  "network_id": 123,
  "network_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_active": true,
  "priority": 123,
  "route_ids": [
    "<string>"
  ],
  "limit": 123
}'
{
  "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
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

plan
string<uuid>
required

The plan ID

Body

application/json

Response

201
application/json

SmsRoutingPlanRuleResource

The response is of type object.