POST
/
v1
/
domains
/
plans
/
{domainPlan}
/
rules
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/domains/plans/{domainPlan}/rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "country_id": 123,
  "sms_route_id": "<string>",
  "team_id": "<string>",
  "company_id": "<string>",
  "meta": {
    "tld_name": "com",
    "max_sms_per_domain": 50000,
    "number_of_domains_in_rotation": 3,
    "number_of_domains_in_backlog": 0,
    "domain_name_pattern": "<string>"
  },
  "priority": 0
}'
{
  "data": {
    "id": "<string>",
    "country_id": 123,
    "sms_route_id": "<string>",
    "team_id": "<string>",
    "company_id": "<string>",
    "meta": {
      "tld_name": "com",
      "max_sms_per_domain": 50000,
      "number_of_domains_in_rotation": 3,
      "number_of_domains_in_backlog": 0,
      "domain_name_pattern": "<string>"
    },
    "priority": 0
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

domainPlan
string<uuid>
required

The domain plan ID

Body

application/json

DomainPlanRuleDataRequest

The body is of type object.

Response

201
application/json

DomainPlanRuleData

The response is of type object.